snmp mib checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: snmp mib checks

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: snmp mib checks

Post 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.
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: snmp mib checks

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: snmp mib checks

Post by JohnFLi »

Hopefully, this will help
Using iReasoning MIB Browser, I was able to find this:
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: snmp mib checks

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: snmp mib checks

Post 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
Everybody is somebody else’s weirdo
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: snmp mib checks

Post 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.
Former Nagios employee
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: snmp mib checks

Post by JohnFLi »

but the snmp walk that nagios does do, the fact that it returns info shows its responding isn't it?
Everybody is somebody else’s weirdo
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: snmp mib checks

Post by tmcdonald »

It might be configured to allow certain OIDs to all IPs, but others must be allowed e.g. for security-related gets.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: snmp mib checks

Post by abrist »

Or these oids are only event-based traps. Can you contact the vendor for clarification?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked