Page 1 of 1

Nagios check fails

Posted: Wed Jun 27, 2018 3:15 pm
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!

Re: Nagios check fails

Posted: Thu Jun 28, 2018 7:28 am
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