Package: smokeping
Version: 2.3.6-1
Severity: important

Hello!

Just installed smokeping on this machine, and the init-script fails to
start it:

Starting latency logger daemon: smokepingResetting LC_NUMERIC failed -
try removing LC_ALL from the environment at
/usr/share/perl5/smokeping/Smokeping.pm line 31.
Compilation failed in require at /usr/sbin/smokeping line 7.
BEGIN failed--compilation aborted at /usr/sbin/smokeping line 7.
..

I can make sense from this error message, but: if smokeping can't run
with LC_ALL set, I feel like the init script or smokeping itself should 
unset LC_ALL (and maybe reset the whole environment). Otherwise one will
get lots of spurious failures, as the init script may run from different
environments (think: bootup, cron, manual invocation from a root shell
 or even sudo).
AFAIK, LC_ALL gets set by /etc/environment, which gets created by the
debian installer; therefore it will usually be present on any
conventional system - and smokeping will break on any of these.


The apache2 init script does something similar to get a "sane"
environment for the httpd daemon:
[...]
ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"
APACHE2CTL="$ENV /usr/sbin/apache2ctl"
[...]
   start) [...]
      $APACHE2CTL start
[...]


Maybe you can consider this for the (current) version in lenny?


Greetings,
Christian Hofstaedtler


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.25.10-pooch (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages smokeping depends on:
ii  adduser                 3.108            add and remove users and groups
ii  debianutils             2.28.4           Miscellaneous utilities specific t
ii  exim4                   4.69-5           meta-package to ease Exim MTA (v4)
ii  exim4-daemon-heavy [mai 4.69-5+b1        Exim MTA (v4) daemon with extended
ii  fping                   2.4b2-to-ipv6-15 sends ICMP ECHO_REQUEST packets to
ii  libdigest-hmac-perl     1.01-7           create standard message integrity 
ii  librrds-perl            1.2.27-2+b1      Time-series data storage and displ
ii  libsnmp-session-perl    1.12-1           Perl support for accessing SNMP-aw
ii  liburi-perl             1.35.dfsg.1-1    Manipulates and accesses URI strin
ii  libwww-perl             5.812-1          WWW client/server library for Perl
ii  lsb-base                3.2-12           Linux Standard Base 3.2 init scrip
ii  perl                    5.10.0-11        Larry Wall's Practical Extraction 
ii  perl-modules [libnet-pe 5.10.0-11        Core Perl modules
ii  speedy-cgi-perl         2.22-9+b1        speed up perl scripts by making th
ii  ucf                     3.007            Update Configuration File: preserv

Versions of packages smokeping recommends:
ii  apache2                       2.2.9-2    Apache HTTP Server metapackage
ii  apache2-mpm-worker [httpd]    2.2.9-2    Apache HTTP Server - high speed th
ii  dnsutils                      1:9.4.2-10 Clients provided with BIND
ii  echoping                      6.0.2-2+b1 A small test tool for TCP servers
ii  libsocket6-perl               0.20-1     Perl extensions for IPv6

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to