Page 2 of 4

Re: error on service check

Posted: Tue Oct 01, 2013 7:09 am
by DeanM
Also this now seems to be hit or miss without any changes some of the status info is being populated.

This is correct.
OK - 10.23.110.2: rta 17.983ms, lost 0%

On some other statuses I still get.
(No output on stdout) stderr

I have not seen any pattern as to what will work and what will not.

Re: error on service check

Posted: Tue Oct 01, 2013 7:20 am
by DeanM
Also I meant to post this in the general Nagios core not he student. How can I get this moved?

Re: error on service check

Posted: Tue Oct 01, 2013 1:40 pm
by tmcdonald
DeanM wrote:Also I meant to post this in the general Nagios core not he student. How can I get this moved?
Taken care of.

Re: error on service check

Posted: Fri Oct 04, 2013 9:46 am
by DeanM
Hello,

Does anyone elso have an idea or question that may help?

Re: error on service check

Posted: Fri Oct 04, 2013 9:53 am
by slansing
Hmm, do you have the plugins for all of the checks displaying (No output on stdout) stderr? Also, do you know what version of the nagios plugins you are running?

Re: error on service check

Posted: Fri Oct 04, 2013 10:05 am
by DeanM
sample of a screen
Default route OK 10-04-2013 10:57:17 1d 7h 48m 18s 1/1 10.22.116.1
PING OK 10-04-2013 10:57:31 1d 6h 55m 29s 1/2 OK - 10.22.116.2: rta 14.241ms, lost 0%
pal Security Panel OK 10-04-2013 10:50:33 8d 0h 7m 47s 1/2 (No output on stdout) stderr:
pal UpTime OK 10-04-2013 10:48:53 39d 6h 11m 57s 1/1 SNMP OK - Timeticks: (1980313936) 229 days, 4:52:19.36
palbrub1 Server OK 10-04-2013 10:54:21 1d 6h 53m 28s 1/2 OK - 10.22.16.21: rta 12.450ms, lost 0%
palsw OK 10-04-2013 10:57:27 1d 7h 48m 17s 1/2 OK - 10.22.16.11: rta 18.157ms, lost 0%
palsw UpTime OK 10-04-2013 10:48:27 1d 7h 39m 12s 1/1 SNMP OK - Timeticks: (1980342597) 229 days, 4:57:05.97

The Panel and Server are a check_ping the route and uptime are snmp calls. other hosts and services under them have a mix of proper output and stderr.

The version of plugins is nagios-plugins-1.4.16

Re: error on service check

Posted: Fri Oct 04, 2013 2:15 pm
by sreinhardt
The only one that seems to be throwning an error here is:

pal Security Panel OK 10-04-2013 10:50:33 8d 0h 7m 47s 1/2 (No output on stdout) stderr:

However that seems to really only be saying that there was no output aside from an expected exit code. You will get unknown or critical if it is not 0 for ok. Were you saying that this is check_ping?

Re: error on service check

Posted: Tue Oct 08, 2013 7:18 am
by DeanM
Yes, this is a check_ping as posted above. The services under each host have a mix of the proper output and not. It is hit or miss as to what one will have the proper output I have 100 host with the 5 or 6 services under them ether a ping or snmp call.

Re: error on service check

Posted: Tue Oct 08, 2013 4:38 pm
by abrist
Can you run the following check from the cli?

Code: Select all

pal Security Panel OK 10-04-2013 10:50:33 8d 0h 7m 47s 1/2 (No output on stdout) stderr: 
I would like to see how it fails.

Re: error on service check

Posted: Wed Oct 09, 2013 6:45 am
by DeanM
From the command line I have always had the correct output as posted before.

[root@plctpapp9 libexec]# ./check_ping -H 10.22.116.2 -w 1000,80% -c 2000,100% -p 5
PING OK - Packet loss = 0%, RTA = 28.24 ms|rta=28.237000ms;1000.000000;2000.000000;0.000000 pl=0%;80;100;0