I solved problems (2,3), changing bbmrtg.pl from:
= RRDs::fetch "-s $last","-e $last", $targetLog, 'AVERAGE';
to: = RRDs::fetch "-s $start_time","-e $last", $targetLog, 'AVERAGE'; and add :
my $start_time = $last - 300;
I try to use routers2.cgi but i have this problem:
when i monitor two interfaces, on the page is always show the first interface The html generated for the second interface is:
&green<A HREF="http://my.server/hobbit-cgi/routers2.cgi?rtr=mrtg.cfg&bars=Cami&page=graph&xgtype=dwmy&xgstyle=l2&if=fastethernet2&xmtype=options">Traffic for 2 interface</A> In: 2468 bits/sec (0.0%) Out: 12061 bits/sec (0.1%) <CENTER><BR><A HREF="http://my.server/hobbit-cgi/routers2.cgi?rtr=mrtg.cfg&bars=Cami&page=graph&xgtype=dwmy&xgstyle=l2&if=fastethernet2&xmtype=options"><IMG SRC="http://my.server/hobbit-cgi/routers2.cgi?rtr=mrtg.cfg&if=fastethernet2&xgtyp..." ALT="Last 24 Hours" BORDER=0></A><BR></CENTER> <TABLE BORDER=1 ALIGN=CENTER>
Anyone have the same problem?
Marco
----- Original Message ----- From: "Marco Avvisano" <marco.avvisano at regione.toscana.it> To: <hobbit at hswn.dk> Sent: Wednesday, December 21, 2005 2:39 PM Subject: [hobbit] bbmrtg.pl & hobbit
Hi all,
i have installed bbmrtg.pl (last version) + 14all.cgi on my hobbit server. I have 3 problems.
- The link to the daily traffic is incorrect:
http://my.server/hobbit-cgi/bb-hostsvc.sh?HOSTSVC=router_directory/router_na...
I use the directive Directory: in my mrtg cfg file. I solved change
from :
if ($MRTGCGI eq '14all.cgi') { $imgUrl = "$MRTGBASEURL/$IMGDIR?log=$target&$IMGTYPE=daily"; $htmlUrl = "$MRTGBASEURL/$HTMLDIR?log=$target"; to:
if ($MRTGCGI eq '14all.cgi') { $imgUrl = "$MRTGBASEURL/$IMGDIR?log=$routers2_target&$IMGTYPE=daily"; $htmlUrl = "$MRTGBASEURL/$HTMLDIR?log=$routers2_target";
I try to change the general threshold (in bbmrtg.pl), but nothing change on the traffic page (on the rules), and no warning or critical colour is displayed
No value are for current traffic (In: xxx Out: xxx)
someone have the same problems ?
M.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk