check_ping error: You need more args!!!

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.
Locked
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

check_ping error: You need more args!!!

Post 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?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked