| | I have found a bug with rrd.cgi. If the StatName ($item) has the directory ($item{directory}) as part of its name, then the resulting html page would be incorrect. It can be fixed by removing the global (g) option. I think only the first occurrence needs to be removed, rather than all. eg:
Directory[item1-stat]: item1 $item will become '-stat' instead of 'item1-stat'.
--- rrd.cgi.ori 2006-12-08 18:40:37.000000000 +1030 +++ rrd.cgi 2006-12-13 16:12:24.000000000 +1030 @@ -1288,7 +1288,7 @@ # anonymous hash and push onto the array @graphs my $item_relative = $item; # strip any directories from $item - $item_relative =~ s/$targets{$item}{directory}\/?//g; + $item_relative =~ s/$targets{$item}{directory}\/?//; push @graphs, {item => $item_relative, name => $itemname}; if( (exists $targets{$item}{suppress} && $targets{$item}{suppress} =~ /d/ && |
| | Posted 12/19/2006 12:13 PM - 7 Views - 0 eProps - 0 comments
- recommend
    - recs0
- share
- email
 - sent0
Give eProps or Post a Comment |