Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-18-2011, 11:15 AM   #1
LQ Newbie
Registered: May 2011
Posts: 5

Rep: Reputation: Disabled
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 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 which is for free disk space.

Old 05-19-2011, 09:35 AM   #2
LQ Newbie
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
OK heres the fix

Run snmpwalk -v2c destip -c #######

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Centos net-snmp rpm problem Wim Sturkenboom Red Hat 2 04-13-2010 02:57 AM
Assistance with SNMP on Redhat/CentOS stuaz Linux - Newbie 2 12-11-2008 10:46 AM
[CentOS] SNMP working on localhost, failing remotely Colosus Linux - Networking 3 03-24-2007 01:45 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 11:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration