error on service check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post 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.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

Also I meant to post this in the general Nagios core not he student. How can I get this moved?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: error on service check

Post 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.
Former Nagios employee
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post by DeanM »

Hello,

Does anyone elso have an idea or question that may help?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error on service check

Post 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?
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: error on service check

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: error on service check

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
DeanM
Posts: 17
Joined: Wed Sep 25, 2013 7:38 am

Re: error on service check

Post 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
Locked