Page 1 of 1
How do I setup a Serverscheck sensor with Nagios XI?
Posted: Tue Jul 10, 2012 2:41 pm
by gglassman
Hello all,
I need to monitor temperature sensors within Nagios XI. We have purchased several Serverscheck sensors due to the fact that
there is a plug-in for it that works with Nagios.
View here:
http://www.serverscheck.com/sensors/nagios.asp
I'm so confused on how to actually add it into Nagios XI.
Please any step by step guide or some guidance. The text file is very vague.
Thank you,
Greg
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Tue Jul 10, 2012 3:00 pm
by scottwilkerson
I'll give it a whirl but I am not familiar with this...
Upload check_sensor.pl plugin Admin -> Manage Plugins
Add command:
Configure -> CCM -> Commands
command_name=check_sensor
command_line=$USER1$/check_sensor.pl -h $HOSTADDRESS$ $ARG1$
command type=check command
Add Host
Configure -> CCM -> Hosts
Add Service
Configure -> CCM -> Services
Select check_sensor from Check command*
$ARG1$='-c public -p 161 -o 1.3.6.1.4.1.17095.3.6.0 -d 68 -u 75'
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 11, 2012 12:44 pm
by gglassman
Scott,
Thank you for the information. I think I'm almost there....
Added
Add command:
Configure -> CCM -> Commands
command_name=check_sensor
command_line=$USER1$/check_sensor.pl -h $HOSTADDRESS$ $ARG1$
command type=check command
Added
Add Host
Configure -> CCM -> Hosts
Added
Add Service
Configure -> CCM -> Services
Select check_sensor from Check command*
$ARG1$='-c public -p 161 -o 1.3.6.1.4.1.17095.3.6.0 -d 68 -u 75'
Issue: I've check the temperature sensor and it is running at 69 F so I adjusted the ARG command to be -d 55 -u 75 and
I'm getting the following error. "Return code of 255 is out of bounds)
I've also uploaded the screen capture as well.
Any ideas?
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 11, 2012 1:17 pm
by lmiltchev
What is the output of the command when you run it in the command line?
Code: Select all
/usr/local/nagios/libexec/check_sensor.pl -h <host_IP> -c public -p 161 -o 1.3.6.1.4.1.17095.3.6.0 -d 68 -u 75
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 11, 2012 1:47 pm
by gglassman
Hi,
I just ran that command on the command line and added the IP address of the sensor. After I hit
enter nothing came back, no error just the root@servername `]# prompt.
Greg
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 11, 2012 2:18 pm
by lmiltchev
Run the command again and after this run the following command and show us the output:
Run:
Code: Select all
ls -l /usr/local/nagios/libexec | grep check_sensor.pl
and show us the output.
Also run the following command and show the output of it:
Code: Select all
snmpwalk -v 2c -c public <host_IP> 1.3.6.1.4.1.17095.3.6.0
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 18, 2012 7:23 am
by gglassman
lmiltchev wrote:Run the command again and after this run the following command and show us the output:
I ran the echo $? and it returned: 2
Run:
Code: Select all
ls -l /usr/local/nagios/libexec | grep check_sensor.pl
and show us the output.
I ran the above line: no output, but I then ran the echo $? line again and the output was: 127
Also run the following command and show the output of it:
Code: Select all
snmpwalk -v 2c -c public <host_IP> 1.3.6.1.4.1.17095.3.6.0
Ran above code and reply is: SNMPv2-SMI: : enterprises.17095.3.6.0 = Hex-STRING: 00
Thank you for your continued help.
Greg
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 18, 2012 9:31 am
by scottwilkerson
This is the point that we will have to turn you over to the manufacturer to find out what the correct SNMP OID's and community strings are.
The sample setup I explained used the info from their plugin download
here, but this may not be correct....
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 25, 2012 7:50 am
by gglassman
I already contacted the MFG and they stated I had to get support from Nagios and basically brushed me off.....
Re: How do I setup a Serverscheck sensor with Nagios XI?
Posted: Wed Jul 25, 2012 8:11 am
by scottwilkerson
Hmm, this might be where I would return the device.
There is no way for us to know what the SNMP community string is for the device... or the OID the device is using for various things..