projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f4c467
)
fix mrtg script to use LANG=C
author
Dirk Koopman
<djk@tobit.co.uk>
Sat, 22 Sep 2007 15:13:07 +0000
(17:13 +0200)
committer
Dirk Koopman
<djk@tobit.co.uk>
Sat, 22 Sep 2007 15:13:07 +0000
(17:13 +0200)
Changes
patch
|
blob
|
history
cmd/mrtg.pl
patch
|
blob
|
history
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
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 9e6112c64fb142c627d8bf3253dfa11b3e756104..93adf33233f69526bc9a8258c46b7b0b7f0f8952 100644
(file)
--- a/
cmd/mrtg.pl
+++ b/
cmd/mrtg.pl
@@
-142,5
+142,11
@@
if ($want{wcy} || $want{all}) {
#
# do the mrtg thing
#
#
# 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);
return (1, @out);