Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've put in all the Nagios settings to monitor this but my commands are timing out:

./check_snmp -H 10.100.0.20 -o READYNAS-MIB::volumeStatus.1 -C public -P 2c

I noticed that I don't have the MIB for the ReadyNAS's snmp. ReadyNAS publishes a text file with this information here:

http://wiki.comdivision.com/display/cdconstech/Nagios+Config+to+monitor+ReadyNAS+Devices

I'm using Ubuntu. I put this .txt file in /usr/share/snmp/. I suspect that isn't correct.

On my Netgear I have it set to use snmp "public" and allow my nagios server access:

http://i.imgur.com/SNMBl.png

When I run that check_snmp command it just times out. Any ideas on how to troubleshoot this? I'm something of a nagios and snmp noob. Thanks.

share|improve this question
    
From your server does "snmpwalk -v1 -c public 10.100.0.20" or "snmpwalk -v2c -c public 10.100.0.20" return anything? –  3dinfluence Feb 2 '12 at 23:34
    
Yes, it outputs a lot of data. It looks like snmp is working on the netgear. –  DrZaiusApeLord Feb 3 '12 at 0:23
add comment

3 Answers

The default search path for mibs probably doesn't include /usr/share/snmp, nor /usr/share/snmp/mibs, depending on which Ubuntu flavor you're dealing with.

I believe the "correct" place for any recent release would be /usr/share/mibs/site/, which should cause it to be auto-discovered by the snmp tools.

You should avoid using human-readable OID references with nagios, as a general rule; it is a performance hit, and is easy to break (as you've discovered).

Once you have the MIBs, and you discover which OIDs you're interested in, use snmptranslate, or add "-On" to snmpwalk/snmpget, to get the numeric OIDs. You could also find them via a MIB browser.

There are several existing plugins for checking ReadyNAS devices, on Nagios Exchange: http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS

You might want to give one of those a try, instead of fighting with the stock check_snmp plugin, or re-inventing the wheel.

share|improve this answer
add comment

On Ubuntu, READYNAS-MIB.txt should go into /usr/share/snmp/mibs and not /usr/share/snmp

Then if you run

 snmptranslate -Td  READYNAS-MIB::volumeStatus.1

it should show you the definition of volumeStatus. If it doesn't work, try removing /usr/share/snmp/mibs/.index and trying again.

To see all of the SNMP data on the ReadyNAS that may be worth monitoring, run

snmpwalk -v1 -cpublic 10.100.0.20 .1 > somefile

the ".1" will give you everything the ReadyNAS has for SNMP OIDs.

share|improve this answer
add comment

Try using OID Value instead name ... instead of READYNAS-MIB::volumeStatus.1 uste the number ( i dont know the OID value of it but should be something like 1.23.5.45.56.67 bla bla ) just to insure that snmpt works ok, and if it gave you the results its the mib problem, if not try to see if the ports are open for SNMP ( if you using firewall )

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.