Nagios check fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krishnar
Posts: 13
Joined: Sun Nov 06, 2016 4:08 pm

Nagios check fails

Post by krishnar »

Hello Guys,

I have a nagios check configured like this.

Code: Select all

$USER1$/check_snmp -H $HOSTADDRESS$ -C "$_HOSTSNMP_COMMUNITY$" -o .1.3.6.1.4.1.2636.3.40.1.4.1.1.1.3.$ARG1$  -s 1 -c 6
I am expecting the return value of 1 from the device. But when I check the GUI, I see that the check fails. The aguement that I am passing the the switch num.

This is what I see in the GUI

Code: Select all

SNMP CRITICAL - *1* 
Manual check is working as expected.

Code: Select all

[root@server plugins]# ./check_snmp -H 10.10.x.x -o .1.3.6.1.4.1.2636.3.40.1.4.1.1.1.3.0 -C xxxxxx
SNMP OK - 3 | iso.3.6.1.4.1.2636.3.40.1.4.1.1.1.3.0=1
Anyone see this before? Any help would be appreciated!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios check fails

Post by scottwilkerson »

in the top command, you have

Code: Select all

-s 1
Which means string returned needs to be

Code: Select all

1

I believe that needs to be removed
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked