OK I need to do this:
I have 3 drives on my system. I am doing an SNMP walk. Now I get the values back for all 3 drives in this setup. What I need to do is say:
Drive C - Used Space OID = 1.2.3.4.5.1
Drive C - Size OID = 1.2.3.4.6.1
Drive C - Max Size = 200000
Drive C - Alocation Units = 4096
Drive E - Used Space OID = 1.2.3.4.5.3
Drive E - Size OID = 1.2.3.4.6.3
Drive E - Max Size = 230000
Drive E - Alocation Units = 4096
Drive F - Used Space OID = 1.2.3.4.5.4
Drive F - Size OID = 1.2.3.4.6.4
Drive F - Max Size = 230000
Drive F - Alocation Units = 4096
Virtual Mem - Used Space OID = 1.2.3.4.5.5
Virtual Mem - Size OID = 1.2.3.4.6.5
Virtual Mem - Max Size = 2000
Virtual Mem - Alocation Units = 1024
If you notice you will see that the OID's differance's are the last number referring to the Unit. So 1 is Drive C, 2 is Drive D, 3 is Drive E and so forth. Now I need to be able to get that info and then recall it to make a config file for MRTG. Any suggestions on how to dumb the data to an array or something and then recall it depending on which drive i am looking at??/
-----------------------
Billy S.
Slinar Hardtail - Hand of Dane
Datal Ephialtes - Guildless
RallosZek.Net Admin/WebMaster
perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat!
+\n"; } else { print "Thats a dog\n"; } print "\n";'