Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 444022

Summary: net-analyzer/nagios-plugins-1.4.16-r{2,3}: check_ping CRITICAL - You need more args!!!
Product: Gentoo Linux Reporter: Alexandr Tiurin <alexanderyt>
Component: Current packagesAssignee: Michael Orlitzky <mjo>
Status: RESOLVED WORKSFORME    
Severity: normal CC: gentoo.bugs, sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info nagios-plugins
emerge --info nagios-plugins (from chroot)

Description Alexandr Tiurin 2012-11-20 11:44:49 UTC
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
Comment 1 Alexandr Tiurin 2012-11-20 11:50:31 UTC
Created attachment 330058 [details]
emerge --info nagios-plugins
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2012-11-20 14:45:42 UTC
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
Comment 3 Alexandr Tiurin 2012-11-20 18:28:13 UTC
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.
Comment 4 Alexandr Tiurin 2012-11-20 18:29:30 UTC
Created attachment 330088 [details]
emerge --info nagios-plugins  (from chroot)
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2012-11-21 05:35:33 UTC
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)?
Comment 6 Alexandr Tiurin 2012-11-21 09:27:19 UTC
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
Comment 7 Michael Orlitzky gentoo-dev 2015-08-31 23:37:11 UTC
Maybe a bit late, but.. can you check to see if this is still a problem with nagios-plugins-2.1.1?
Comment 8 Michael Orlitzky gentoo-dev 2017-02-26 22:35:48 UTC
Ping... we need to know if it's still a problem with the latest nagios-plugins.
Comment 9 Alexandr Tiurin 2017-02-27 17:03:39 UTC
Works for me. Thanks!