Page 2 of 3

Re: snmp mib checks

Posted: Tue Dec 30, 2014 1:53 pm
by abrist
You need to identify the oid that you wish to check. It may be better to dump the walk's output to a file from the cli and then attach it to your next post so that we can look at the walk and help you identify the oid you are looking for:
V1:

Code: Select all

snmpwalk -v1 -c <community> <device ip> > /tmp/walk.txt
V2c:

Code: Select all

snmpwalk -v2c -c <community> <device ip> > /tmp/walk.txt
Attach /tmp/walk.txt to your next post.

Re: snmp mib checks

Posted: Tue Dec 30, 2014 2:14 pm
by JohnFLi
Ok, got the file, and attached

This device has 7 external temperature sensors and 16 External Switch Sensors.
The external Switch's need to alert when the state is 'Closed' (they are currently all open----good)

the temperature settings should alert at 65.

Re: snmp mib checks

Posted: Tue Dec 30, 2014 2:48 pm
by abrist
Well, that walk was *very* spartan.

Is there a chance that these values/oids are not pollable, and are only reported as events through snmp traps?

Re: snmp mib checks

Posted: Tue Dec 30, 2014 2:54 pm
by JohnFLi
Hopefully, this will help
Using iReasoning MIB Browser, I was able to find this:

Re: snmp mib checks

Posted: Tue Dec 30, 2014 2:57 pm
by abrist
Well, we can try to snmpget those oids:

Code: Select all

snmpget -c <community> <device ip> 1.3.6.1.4.1.20916.1.8.1.3.1
snmpget -c <community> <device ip> 1.3.6.1.4.1.20916.1.8.1.2.1.1

Re: snmp mib checks

Posted: Tue Dec 30, 2014 3:02 pm
by JohnFLi
[root@localhost tmp]# snmpget -c public 10.100.3.121 1.3.6.1.4.1.20916.1.8.1.2.1.1
No log handling enabled - turning on stderr logging
snmpget: Timeout

Re: snmp mib checks

Posted: Tue Dec 30, 2014 3:50 pm
by tmcdonald
My guess is access control on the device:

http://www.net-snmp.org/wiki/index.php/ ... t#Timeouts

Specifically, if there is a web interface where you can configure the device I would look around for something like "Access List" or "Blocklist" or something similar where you can allow the Nagios IP to query.

Re: snmp mib checks

Posted: Tue Dec 30, 2014 3:58 pm
by JohnFLi
but the snmp walk that nagios does do, the fact that it returns info shows its responding isn't it?

Re: snmp mib checks

Posted: Tue Dec 30, 2014 4:02 pm
by tmcdonald
It might be configured to allow certain OIDs to all IPs, but others must be allowed e.g. for security-related gets.

Re: snmp mib checks

Posted: Tue Dec 30, 2014 4:02 pm
by abrist
Or these oids are only event-based traps. Can you contact the vendor for clarification?