Bug#327212: [Pkg-nagios-devel] Bug#327212: nagios-common: locale problem breaks ping plugin

sean finney seanius at debian.org
Thu Sep 8 14:21:58 UTC 2005


hey jerome,

On Thu, Sep 08, 2005 at 03:50:49PM +0200, alet at unice.fr wrote:
> --- CUT ---
> servmediup:~# printenv |grep LC_
> LC_ALL=fr_FR at euro
> servmediup:~# /usr/lib/nagios/plugins/check_ping -H 134.59.53.14 -w 10,15% -c 15,20%
> /bin/ping -n -U -w 10 -c 5 134.59.53.14
> CRITIQUE - Impossible d'interpréter le réponse de la commande ping
> servmediup:~# export LC_NUMERIC=POSIX
> servmediup:~# /usr/lib/nagios/plugins/check_ping -H 134.59.53.14 -w 10,15% -c 15,20%
> /bin/ping -n -U -w 10 -c 5 134.59.53.14
> CRITIQUE - Impossible d'interpréter le réponse de la commande ping
> servmediup:~# export LC_ALL=POSIX    
> servmediup:~# /usr/lib/nagios/plugins/check_ping -H 134.59.53.14 -w 10,15% -c 15,20%
> PING OK - Packet loss = 0%, RTA = 0.29 ms
> servmediup:~# 
> --- CUT ---

okay, looks like it's LC_TIME that's doing it.  try

export LC_NUMERIC
export LC_TIME
LC_NUMERIC=POSIX
LC_TIME=POSIX
/usr/lib/nagios/plugins/check_ping -H 134.59.53.14 -w 10,15% -c 15,20%

> the lines beginning with "CRITIQUE" are the error message translated
> into French. I guess the original is something like :
> 
>         "CRITICAL - Impossible to parse the answer of the ping command"
>         
> hoping this helps

je pense que oui--je voudrais bien savoir ci ça marche :)



	sean

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20050908/d0d678c8/attachment.pgp


More information about the Pkg-nagios-devel mailing list