From: Dirk Koopman Date: Sat, 22 Sep 2007 15:13:07 +0000 (+0200) Subject: fix mrtg script to use LANG=C X-Git-Tag: 1.55~67 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=b616b2bf1123af004983b1217bf682243827327f;p=spider.git fix mrtg script to use LANG=C --- diff --git a/Changes b/Changes index 167d28b4..5fab0cfd 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,8 @@ +22Sep07======================================================================= +1. fix mrtg script so that it sets LANG='C', in addition, it appears that you +will need to create a /var/lock/mrtg and /var/lib/mrtg directory, both with +chmod 01777 /var/lock/mrtg /var/lib/mrtg. They may already exist but without +the correct permissions. 15Sep07======================================================================= 1. Add *optional* INET6 connectivity. In order to use this you must load IO::Socket::INET6 and its dependencies from CPAN or get the distro's packaged diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index 9e6112c6..93adf332 100644 --- a/cmd/mrtg.pl +++ b/cmd/mrtg.pl @@ -142,5 +142,11 @@ if ($want{wcy} || $want{all}) { # # do the mrtg thing # -my @out = $mc->run unless $want{nomrtg}; + +my @out; +{ +local %ENV; +$ENV{LANG} = 'C'; +@out = $mc->run unless $want{nomrtg}; +} return (1, @out);