From b616b2bf1123af004983b1217bf682243827327f Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Sat, 22 Sep 2007 17:13:07 +0200 Subject: [PATCH] fix mrtg script to use LANG=C --- Changes | 5 +++++ cmd/mrtg.pl | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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); -- 2.43.0