LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-18-2011, 10:15 AM   #1
albye
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 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
 
Old 05-19-2011, 08:35 AM   #2
albye
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


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 01:57 AM
Assistance with SNMP on Redhat/CentOS stuaz Linux - Newbie 2 12-11-2008 09:46 AM
[CentOS] SNMP working on localhost, failing remotely Colosus Linux - Networking 3 03-24-2007 12:45 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 11:13 AM.

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