SNMP Centos
How do I find the OID code for a physical volume. I managed to get it to work with our snmp monitoring software to alert me when disk space was < 10% but the computer which was running the SNMP monitoring died. For the life of me I can't remeber how I got it to work.
I have 4 partitions 1 has 88% free /etc/mapper/volgroup00 2 has 21% free /boot 3 nfsd 0 bytes 4 sunrpc 0 bytes Here is a copy of the OID I'm using 1.3.6.1.2.1.25.2.3.1.5.1 I change the last number to resemble the drive but i'm testing using 8% and they each return an error drive space low which is what the VB script tells it to do. I know the script works as I use it on Windows Servers no problems. I do an SNMPWALK on the server and it validates the above OID with HOST-RESOURCES-MIB::hrStorageSize so I know thats valid. But thats where I'm stuck. What value should I see if I were to use this OID 1.3.6.1.2.1.25.2.3.1.6.1 which is for free disk space. atb Alex |
OK heres the fix
Run snmpwalk -v2c destip -c ####### .iso.org.dod.internet.mgmt.mib-2.host.hrStorage
This wil list the contents for the storage aswell as listing for integer for volumes. Amend OID as per integer. Run a couple of times whilst copying files about and monitor usage integer to confirm. I'm running this VB script on a windows box which appears to work out 5% more usage than said server. I've compensated for this in my alerts. |
All times are GMT -5. The time now is 11:58 PM. |