Nagios and APC Netbotz 200

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stefant
Posts: 2
Joined: Wed Mar 14, 2012 7:42 am

Nagios and APC Netbotz 200

Post by stefant »

Hello nagios forum,

Currently i have a windows domain up and running with one linux client, which runs Nagios Core.
It is fully configured and works. Recently i purchased a APC Netbotz 200 which can monitor Humidity and Temperature inside of the server rack/server room.
This hardware is now fully configured and works, Also it mails when certain events occur.

Now what im trying to do is get Nagios to show the temperature and humidity as a service.
I have searched the internet and found a plugin called check_apcext.pl, the README file acknowledges that this plugin supports APC Netbotz
With 3 parameters:
- nbmstemp
- nbmshum
- nbmsairflow

Im testing this plugin by executing the plugin from the command line, but it responds with a 'SNMP:Error connecting to ..' message.
The command i'm executing is:

Code: Select all

./check_apcext.pl -H 192.x.x.x -C nagios -p nbmstemp -w 25 -c 28
On the netbotz machine i configured that it uses SNMP version 1, with community string nagios.

I also configured SNMP Traps,
A receiver is our nagios server and it uses the community name nagios.
But to my understanding this sends information to the nagios server, whereas the check command tries to retrieve?

I tried to troubleshoot, but i haven't come much farther the last couple of hours.
I hope someone can help me with this problem.

Yours sincerely,
Stefan
stefant
Posts: 2
Joined: Wed Mar 14, 2012 7:42 am

Re: Nagios and APC Netbotz 200

Post by stefant »

After some time i finally came to the conclusion that the plugin wasn't really working for me.

So what i did is find a workaround to let check_snmp talk with the netbotz 200.
It works, and i am very happy with the result i must say!

For anyone who has this problem this is how i fixed it:

First i went to the plugin folder and tried to make contact with the netbotz 200, But i didn't have a correct OIDs.
I searched the web on how to find those OIDs, but first came up with some tools which only work locally.
After that i found that inside linux theres a tool called SNMPwalk. This allows you to scan all the OIDs of the netbotz.
It came out with an amazing list, but after some time filtering everything out (and searching for the current temperature (around 18-19 degrees)
i found 3 OIDs under each other.
1 was 22, 1 was 18 and 1 was 39 ; it seemed those where the 3 i needed. Sensor 1 was 22 degrees, Sensor 2 was 18 degrees and Sensor 1 (which has a humidity sensor) was 39%.
I copied the OIDs and had to add this to the command line.
The actual command was: (please recheck, because im not sure about the capitals.)
check_snmp -C <communityname> -H <hostaddress> -o <OID> -w <warningdegr> -c <critdegr> -m none
The m stands for MIB database, defaultly it should use none, but mine gave as output in verbose that it was using ALL, and then it kept doing 'something' forever.
so i ctrl+c'd and retried with -m none and it worked.

Hope this helps for anyone who has this problem.
Thread closed :)
Locked