How do I setup a Serverscheck sensor with Nagios xi?

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
gglassman
Posts: 9
Joined: Wed Feb 23, 2011 3:40 pm

How do I setup a Serverscheck sensor with Nagios xi?

Post 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
scottwilkerson
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?

Post 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'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
gglassman
Posts: 9
Joined: Wed Feb 23, 2011 3:40 pm

Re: How do I setup a Serverscheck sensor with Nagios xi?

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do I setup a Serverscheck sensor with Nagios xi?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
gglassman
Posts: 9
Joined: Wed Feb 23, 2011 3:40 pm

Re: How do I setup a Serverscheck sensor with Nagios xi?

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do I setup a Serverscheck sensor with Nagios xi?

Post by lmiltchev »

Run the command again and after this run the following command and show us the output:

Code: Select all

echo $?
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
gglassman
Posts: 9
Joined: Wed Feb 23, 2011 3:40 pm

Re: How do I setup a Serverscheck sensor with Nagios xi?

Post by gglassman »

lmiltchev wrote:Run the command again and after this run the following command and show us the output:

Code: Select all

echo $?
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
scottwilkerson
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?

Post 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....
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
gglassman
Posts: 9
Joined: Wed Feb 23, 2011 3:40 pm

Re: How do I setup a Serverscheck sensor with Nagios xi?

Post by gglassman »

I already contacted the MFG and they stated I had to get support from Nagios and basically brushed me off.....
scottwilkerson
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?

Post 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..
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart