[Nagiosplug-help] check_ping critical you need more args could not pipe

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Jan 18 01:02:46 CET 2007


On 17/01/07 04:03 AM, Andreas Ericsson wrote:
> Thomas Guyot-Sionnest wrote:
>> On 17/01/07 12:32 AM, Don Munyak wrote:
>>> On 1/16/07, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
>>>> I can't even see the text "You need more args" in  check_ping.c.
>>>>
>>>
>>> Please clarify "are your sure I'm using nagios-plugins". I installed
>>> Nagios from ports system from within FreeBSD using make, make install
>>> clean with the folder /usr/ports/net-mgmt/nagios.
>>
>> Your problem seems to be specific with Ports and you should rather see
>> if there's a maintainer for the Nagios package of the Ports system.
>>
> 
> "You need more args" could also come from /bin/ping on the system he's
> using, as check_ping works by forking and executing the system ping binary.
> 

I played with check_ping a little bit, and as far as I know it writes
something like "Could not interpret result from ping" when there's
something wrong...

I'm wondering how the output of ping could end up on check_ping's output
since the child's stdout AND stderr are both grabbed bt check_ping...

Don Munyak, if you want to verify whenever the actual ping ran and with
which args, you can add "-vvv" to the check_ping command and running it
from the command line. You should (shouldn't in your particular case)
get something like this:

$ plugins/check_ping -H localhost -w1000,10% -c2000,20% -p1 -vvv
CMD: /bin/ping -n -U -w 10 -c 1 localhost
Output: PING localhost (127.0.0.1) 56(84) bytes of data.
Output: 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.037 ms
Output:
Output: --- localhost ping statistics ---
Output: 1 packets transmitted, 1 received, 0% packet loss, time 0ms
Output: rtt min/avg/max/mdev = 0.037/0.037/0.037/0.000 ms
PING OK - Packet loss = 0%, RTA = 0.04 ms
1000.000000:10% 2000.000000:20%
$


Thomas




More information about the Help mailing list