check_ping don't work after update from 1.4.14-r2 to 1.4.16-r{2,3}. Reproducible: Always Steps to Reproduce: 1. /usr/lib/nagios/plugins/check_ping -H 127.0.0.1 -w 3000.0,80% -c 5000.0,100% -p5 Actual Results: CRITICAL - You need more args!!! Could not open pipe: Expected Results: PING OK - Packet loss = 0%, RTA = 0.10 ms|rta=0.103000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
Created attachment 330058 [details] emerge --info nagios-plugins
working for me :| net-analyzer/nagios-plugins-1.4.16-r3 ls -lZ /usr/lib/nagios/plugins/check_ping -rwxr-x---. 1 root nagios system_u:object_r:nagios_services_plugin_exec_t 55632 Nov 20 09:43 /usr/lib/nagios/plugins/check_ping /usr/lib/nagios/plugins/check_ping -H 127.0.0.1 -w 3000.0,80% -c 5000.0,100% -p5 PING OK - Packet loss = 0%, RTA = 0.09 ms|rta=0.092000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
I found that the problem occurs when building nagios-plugins in chroot. Chroot is PORTAGE_BINHOST for target host (comment 1: it is from target host). If rebuld nagios-plugins on target host, check_ping work fine.
Created attachment 330088 [details] emerge --info nagios-plugins (from chroot)
I noticed the chroot one doesn't have user=root (probably a good idea for a chroot). can you do an md5 of both binaries (chroot built and not) and show both permissions (ls -l)?
not chroot 70876e8d4b7dada1a4df063b9c0cd9df /usr/lib/nagios/plugins/check_ping -rwxr-x--- 1 root nagios 59736 Nov 20 22:04 /usr/lib/nagios/plugins/check_ping chroot 5fb4a73bf818a75fb54aa25cb8711d92 /usr/lib/nagios/plugins/check_ping -rwxr-x--- 1 root nagios 59736 Nov 20 22:15 /usr/lib/nagios/plugins/check_ping
Maybe a bit late, but.. can you check to see if this is still a problem with nagios-plugins-2.1.1?
Ping... we need to know if it's still a problem with the latest nagios-plugins.
Works for me. Thanks!