Page 1 of 2

Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 12:45 pm
by hillhealthcenter
Hi,

I've been trying for several days to configure a SNMP check that will display the current temperature of the internal sensor of a WatchDog 100.

I've performed the steps in the "How to Integrate SNMP Traps With Nagios XI" document
I've uploaded the MIB file into NagiosXI.
I have access to the WatchDog 100 MIB table. I also have access to the data via XML

The closet that I've gotten to getting it to work is a "SNMP OK - Such Object available on this agent at this OID" status for the check. I need to pull the actual temperature reading.

Here's the OID I'm trying to capture.
internalTemp 1.3.6.1.4.1.17373.4.1.2.1.5 read-only Integer32(-40..200) 0.1 Degrees

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 1:37 pm
by lmiltchev
Can you show us the actual command that you are running along with the output of it? (Hide sensitive info).

BTW, there are some plugins on the Nagios Exchange that might do the job for you:

http://exchange.nagios.org/directory/Pl ... se/details

http://exchange.nagios.org/directory/Pl ... 15/details

Have you checked any of these?

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 2:00 pm
by hillhealthcenter
COMMAND: /usr/local/nagios/libexec/check_snmp -H 192.168.xxx.xxx -o 1.3.6.1.4.1.17373.4.1.2.1.5 -C public -P 2c -w 72 -c 82
OUTPUT: No valid data returned (Such Object available on this agent at this OID)

I did read the info related to both scripts but opted not to use them as they received no votes from other users.

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 2:33 pm
by tgriep
Did you upload the MIB file for the Watchdog 100 on the XI server?

This can be done through the XI interface by browsing to the Admin → Manage MIBs page via the top
navigation bar, browsing to the MIB to be added, then click Upload MIB.

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 2:38 pm
by hillhealthcenter
Yes, I uploaded the WatchDog 100 MIB file to NagiosXI.

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 2:59 pm
by scottwilkerson
Can you walk the device from the Nagios XI CLI?

Code: Select all

snmpwalk -v 2c -c public 192.168.xxx.xxx 1.3.6.1.4.1.17373.4.1.2.1
If that doesn't work, lets try

Code: Select all

snmpwalk -v 2c -c public 192.168.xxx.xxx 1
we are just trying to verify we can actually make the connection from your XI Server to that OID first, and then to the server at all if that doesn't work

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 3:27 pm
by hillhealthcenter

Code: Select all

[root@nagiosxi ~]# snmpwalk -v 2c -c public 192.168.xxx.xxx 1.3.6.1.4.1.17373.4.1.2.1
SNMPv2-SMI::enterprises.17373.4.1.2.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.17373.4.1.2.1.2.1 = STRING: "170004A3F25F2EC3"
SNMPv2-SMI::enterprises.17373.4.1.2.1.3.1 = STRING: "WatchDog 100"
SNMPv2-SMI::enterprises.17373.4.1.2.1.4.1 = Gauge32: 1
SNMPv2-SMI::enterprises.17373.4.1.2.1.5.1 = INTEGER: 650
SNMPv2-SMI::enterprises.17373.4.1.2.1.6.1 = INTEGER: 13
SNMPv2-SMI::enterprises.17373.4.1.2.1.7.1 = INTEGER: 129
SNMPv2-SMI::enterprises.17373.4.1.2.1.8.1 = INTEGER: 99
SNMPv2-SMI::enterprises.17373.4.1.2.1.9.1 = INTEGER: 99
SNMPv2-SMI::enterprises.17373.4.1.2.1.10.1 = INTEGER: 99
SNMPv2-SMI::enterprises.17373.4.1.2.1.11.1 = INTEGER: 100
SNMPv2-SMI::enterprises.17373.4.1.2.1.12.1 = Gauge32: 0
SNMPv2-SMI::enterprises.17373.4.1.2.1.12.1 = No more variables left in this MIB View (It is past the end of the MIB tree)

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 3:53 pm
by abrist
It looks like .5 does not exist, but .5.1 does:

Code: Select all

SNMPv2-SMI::enterprises.17373.4.1.2.1.5.1 = INTEGER: 650
Although I am unsure how to read this, does it mean 65.0 degrees?

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Fri Feb 13, 2015 4:36 pm
by hillhealthcenter
That is it! I need to get decimal place in there. (divide 650 by 10)

Re: Need To Pull WatchDog 100 Temperature Via SNMP or XML

Posted: Mon Feb 16, 2015 9:07 am
by cmerchant
If you use check_temp_watchdog15.sh, it has the tempature divided by 10 in the script.