Hi again, On Thu, Sep 08, 2005 at 10:21:58AM -0400, sean finney wrote: > > On Thu, Sep 08, 2005 at 03:50:49PM +0200, [EMAIL PROTECTED] wrote: > > --- CUT --- > > servmediup:~# printenv |grep LC_ > > [EMAIL PROTECTED] > > 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%
doesn't work. > je pense que oui--je voudrais bien savoir ci ça marche :) cela ne marche pas :-) en fait, LC_NUMERIC seems to be sufficient, as long as LC_ALL is unset. If I do : $ export LC_NUMERIC=POSIX $ /usr/lib/nagios/plugins/check_ping -H 134.59.53.14 -w 10,15% -c 15,20% it fails. but then : $ unset LC_ALL (here LC_NUMERIC is still defined to be POSIX since we're in the same session) $ /usr/lib/nagios/plugins/check_ping -H 134.59.53.14 -w 10,15% -c 15,20% it works hth Jerome Alet
signature.asc
Description: Digital signature