I now have a Nagios setup running on a vserver, but am getting some weird reports… All nodes are being checked with check_alive, but that gives the state of ‘CRITICAL - You need more args!!!’ on all of them!
When I run the check_ping from the command line, I get:
CRITICAL - You need more args!!!
Could not open pipe:
When I attempt a normal ping the hosts respond normally though…
Try check_fping. It looks like it compiled poorly, since my check_ping returns “Could not parse arguments” when I give it no args whatsoever.
ex:
./check_ping
check_ping: Could not parse arguments
Usage: check_ping -H <host_address> -w ,% -c ,%
-p packets] -t timeout] -L] -4|-6]
./check_fping --help
check_fping (nagios-plugins 1.4) 1.24
Copyright (c) 1999 Didi Rieder <[email protected]>
Copyright (c) 2000-2004 Nagios Plugin Development Team
<[email protected]>
This plugin will use the /bin/fping command to ping the specified host
for a fast check if the host is alive.
Note that it is necessary to set the suid flag on fping.
Usage: check_fping <host_address>
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
-H, --hostname=HOST
Name or IP Address of host to ping (IP Address bypasses name lookup,
reducing system load)
-w, --warning=THRESHOLD
warning threshold pair
-c, --critical=THRESHOLD
critical threshold pair
-b, --bytes=INTEGER
Size of ICMP packet (default: 56)
-n, --number=INTEGER
Number of ICMP packets to send (default: 1)
-v, --verbose
Show details for command-line debugging (Nagios may truncate output)
THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel
time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the
percentage of packet loss to trigger an alarm state.
Send email to [email protected] if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to [email protected]
check_ping is what you stated you are having trouble with, but you gave output from check_fping --help so I’m wondering what you get for output from check_ping --help. I suspect that check_ping is compiled poorly and won’t even give you help output.