fix mrtg script to use LANG=C
authorDirk Koopman <djk@tobit.co.uk>
Sat, 22 Sep 2007 15:13:07 +0000 (17:13 +0200)
committerDirk Koopman <djk@tobit.co.uk>
Sat, 22 Sep 2007 15:13:07 +0000 (17:13 +0200)
Changes
cmd/mrtg.pl

diff --git a/Changes b/Changes
index 167d28b43ecc242414fcdcf14f8b2c97b9db4417..5fab0cfd0a06ccca2151c9b78c4d6cfafaabfe93 100644 (file)
--- 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
index 9e6112c64fb142c627d8bf3253dfa11b3e756104..93adf33233f69526bc9a8258c46b7b0b7f0f8952 100644 (file)
@@ -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);