On Fri, Mar 10, 2017 at 04:13:32PM +0100, Olivier Berger wrote: > > Having installed icinga2 on a jessie system, I get a critical error on > the localhost with check_ping : > > *** End of the template - remove these template lines *** > Host Status: DOWN > (for 0d 0h 52m 19s) > Status Information: /bin/ping -n -U -w 30 -c 5 127.0.0.1 > CRITIQUE - Impossible d'interpr�ter le r�ponse de la commande ping >
I reconfigured so as to have # sudo -u nagios locale LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= but the problem is now : # sudo -u nagios '/usr/lib/nagios/plugins/check_ping' '-4' '-H' '127.0.0.1' '-c' '200,15%' '-w' '100,5%' /bin/ping -n -U -w 10 -c 5 127.0.0.1 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 ? Thanks in advance. Best regards, -- 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)