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
How do I setup a Serverscheck sensor with Nagios xi?
-
- Posts: 9
- Joined: Wed Feb 23, 2011 3:40 pm
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: How do I setup a Serverscheck sensor with Nagios xi?
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'
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'
-
- Posts: 9
- Joined: Wed Feb 23, 2011 3:40 pm
Re: How do I setup a Serverscheck sensor with Nagios xi?
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?
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?
You do not have the required permissions to view the files attached to this post.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: How do I setup a Serverscheck sensor with Nagios xi?
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 9
- Joined: Wed Feb 23, 2011 3:40 pm
Re: How do I setup a Serverscheck sensor with Nagios xi?
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
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
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: How do I setup a Serverscheck sensor with Nagios xi?
Run the command again and after this run the following command and show us the output:
Run:
and show us the output.
Also run the following command and show the output of it:
Code: Select all
echo $?
Code: Select all
ls -l /usr/local/nagios/libexec | grep check_sensor.pl
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 9
- Joined: Wed Feb 23, 2011 3:40 pm
Re: How do I setup a Serverscheck sensor with Nagios xi?
Ran above code and reply is: SNMPv2-SMI: : enterprises.17095.3.6.0 = Hex-STRING: 00lmiltchev wrote:Run the command again and after this run the following command and show us the output:I ran the echo $? and it returned: 2Code: Select all
echo $?
Run:and show us the output.Code: Select all
ls -l /usr/local/nagios/libexec | grep check_sensor.pl
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
Thank you for your continued help.
Greg
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: How do I setup a Serverscheck sensor with Nagios xi?
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....
The sample setup I explained used the info from their plugin download here, but this may not be correct....
-
- Posts: 9
- Joined: Wed Feb 23, 2011 3:40 pm
Re: How do I setup a Serverscheck sensor with Nagios xi?
I already contacted the MFG and they stated I had to get support from Nagios and basically brushed me off.....
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: How do I setup a Serverscheck sensor with Nagios xi?
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..
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..