Your message dated Sun, 1 Nov 2009 11:24:09 +0100
with message-id <[email protected]>
and subject line Re: mrtgindx.cgi doesn't handle Directory[]
has caused the Debian Bug report #43949,
regarding mrtgindx.cgi doesn't handle Directory[]
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
43949: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=43949
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mrtg
Version: 2.5.4c-1
mrtgindx.cgi doesn't handle the Directory[] router specific option.
Here's a patch:
- Tom
*** mrtgindx.cgi.orig Wed Jun 23 20:29:32 1999
--- mrtgindx.cgi Wed Sep 1 16:40:25 1999
***************
*** 89,103 ****
open(In, $cfg = shift @config_files) ||
die "Can't open $cfg. Check \...@config_files array.\n";
while(<In>){
next unless /^Title\[(.*)\]:\s*(.+)$/; # Look for a title keyword
$router = lc $1;
- Stat("$router-day.gif");
- @$router = ($st_mtime, $2); # Save the mod date and title
push @routers, $router; # Remember the router name so we can find above
info
- $gifdone = $st_mtime if $st_mtime > $gifdone; # Find the newest file
}
close In;
}
# Time the next update to occur a little while after the next interval
completes
--- 89,108 ----
open(In, $cfg = shift @config_files) ||
die "Can't open $cfg. Check \...@config_files array.\n";
while(<In>){
+ if(m/^Directory\[(.*)\]:\s*(.+)$/) {
+ $Dir{lc $1}="$2/";
+ }
next unless /^Title\[(.*)\]:\s*(.+)$/; # Look for a title keyword
$router = lc $1;
push @routers, $router; # Remember the router name so we can find above
info
}
close In;
+ foreach $router (@routers) {
+ Stat("$Dir{$router}$router-day.gif");
+ @$router = ($st_mtime, $2); # Save the mod date and title
+ $gifdone = $st_mtime if $st_mtime > $gifdone; # Find the newest file
+ }
}
# Time the next update to occur a little while after the next interval
completes
***************
*** 163,169 ****
TR(td({-align=>"left",-width=>"20\%"}, "$mv_up $mv_dn"),
td({-align=>"left"}, b($$router[1]), " $time")));
! print a({-href=>"$router.html"}, img{-src=>"$router-day.gif"});
}
--- 168,174 ----
TR(td({-align=>"left",-width=>"20\%"}, "$mv_up $mv_dn"),
td({-align=>"left"}, b($$router[1]), " $time")));
! print a({-href=>"$Dir{$router}$router.html"},
img{-src=>"$Dir{$router}$router-day.gif"});
}
--- End Message ---
--- Begin Message ---
I'm sorry, this bug is too old, and the patch is out of sync with
current mrtg code I can't apply it -> closing.
If you still want this to be fixed, please open a new bug, attaching a
unified diff (-u diff option) against the current version of mrtg.
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
--- End Message ---