[Pkg-nagios-devel] Bug#857366: monitoring-plugins-basic: check_ping cannot parse output under certain locale settings

Olivier Berger olivier.berger at telecom-sudparis.eu
Fri Mar 10 16:07:40 UTC 2017

On Fri, Mar 10, 2017 at 04:43:03PM +0100, Olivier Berger wrote:
> but the problem is now :
> # sudo -u nagios '/usr/lib/nagios/plugins/check_ping' '-4' '-H' '' '-c' '200,15%' '-w' '100,5%'
> /bin/ping -n -U -w 10 -c 5
> CRITICAL - Could not interpret output from ping command
> It seems a workaround is to chmod u+s /bin/ping ...
> Maybe the nagios user isn't setup properly ? I used to run nagios3 on that system, and that may explain why ?

The culprit is more around iputils-ping, since capabilities seem to have been missing for /bin/ping

The correct setting should be :
# getcap /bin/ping 
/bin/ping = cap_net_raw+ep

Otherwise, doing this will solve it :
# apt-get install --reinstall iputils-ping

Not sure exactly what led to an upgraded system where that was missing... but maybe the workaround will be useful for some others.

Hope this helps,

Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)

More information about the Pkg-nagios-devel mailing list