[hobbit] bbmrtg.pl & hobbit
Marco Avvisano
marco.avvisano at regione.toscana.it
Thu Dec 29 14:12:22 CET 2005
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&xgtype=d&page=image"
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.
>
> 1) The link to the daily traffic is incorrect:
>
> http://my.server/hobbit-cgi/bb-hostsvc.sh?HOSTSVC=router_directory/router_name.traffic
>
> 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";
>
> 2) 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
>
> 3) 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
>
More information about the Xymon
mailing list