check_ping error: You need more args!!!

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_ping error: You need more args!!!

Postby jssingh » Tue May 23, 2017 12:46 pm

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:

I checked the usage for check_ping and it appears I'm using all the args. What does that error mean?
User avatar
Posts: 107
Joined: Mon Apr 29, 2013 4:55 pm

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

Postby tgriep » Tue May 23, 2017 3:08 pm

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Posts: 7297
Joined: Thu Oct 30, 2014 9:02 am

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests