Page 1 of 1

check_ping error: You need more args!!!

PostPosted: Tue May 23, 2017 12:46 pm
by jssingh
I installed the latest plugins (v2.2.1) on a sles12 system and was testing them. I get the following error for check_ping:

Code: Select all
-bash-4.3$ ./check_ping -H pfe27 -w 100.0,20% -c 500.0,60% -p 1 -t 30 -4
CRITICAL - You need more args!!!
Could not open pipe:
-bash-4.3$


I checked the usage for check_ping and it appears I'm using all the args. What does that error mean?

Re: check_ping error: You need more args!!!

PostPosted: Tue May 23, 2017 3:08 pm
by tgriep
Try running the plugin as the root user and see if it works.
If it does, the plugin needs to have the superuser bit set to run so login as root and run the following to set it.
Code: Select all
chmod ug+s check_ping

Try that and see if it works.

Another reason for the plugin to fail is most likely it's because your system is starved of file-descriptors. You could try either upping the ulimit -n value of Nagios or use check_icmp instead. check_icmp uses a single socket rather than a pipe (two file-descriptors fewer per check). It's also a lot faster, so resources aren't hogged so long.