Need To Pull WatchDog 100 Temperature Via SNMP or XML

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Need To Pull WatchDog 100 Temperature Via SNMP or XML

Post 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
You do not have the required permissions to view the files attached to this post.
Thanks so much,
Tom
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

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

Post 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.
Thanks so much,
Tom
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

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

Post by hillhealthcenter »

Yes, I uploaded the WatchDog 100 MIB file to NagiosXI.
Thanks so much,
Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

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

Post 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)
Thanks so much,
Tom
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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?
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.
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

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

Post by hillhealthcenter »

That is it! I need to get decimal place in there. (divide 650 by 10)
Thanks so much,
Tom
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

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

Post by cmerchant »

If you use check_temp_watchdog15.sh, it has the tempature divided by 10 in the script.
Locked