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

alet at unice.fr alet at unice.fr
Thu Sep 8 14:38:39 UTC 2005


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, 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%

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
-------------- 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/71be2dce/attachment.pgp


More information about the Pkg-nagios-devel mailing list