[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bbmrtg.pl help
- To: hobbit (at) hswn.dk
- Subject: bbmrtg.pl help
- From: Jared Hoskinson <jhoskinson (at) 1stel.com>
- Date: Wed, 17 Jun 2009 14:05:34 -0500
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Hello all
I need to alarm on bandwidth thresholds so I have added bbmrtg.pl
using this guide, http://www.pleiades.com/mrtgbb/. Everything is
working expect when bbmrtg.pl runs it reports "In: bytes/sec (0.0%)
Out: bytes/sec (0.0%)". When look at the graph produced by mrtg-rrd.cgi,
it reports the correct usage which in case is "Current In: 68.8 Mb/s
Current Out: 25Mb/s". It is as if bbmrgt.pl is not reading the rrd file.
Here is what my mrtg.cfg file looks like.
### Global Config Options
# for UNIX
# WorkDir: /home/http/mrtg
# for Debian
WorkDir: /var/www/mrtg
LogFormat: rrdtool
LibAdd: /usr/lib/perl5/
IconDir: /mrtg
# or for NT
# WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
EnableIPv6: no
Target[bb-hostname_Vl1]: #Vl1:public (at) host:
# bb* = Big Brother info
bb*host[bb-hostname_Vl1]: bb-hostname
bb*svc[bb-hostname_Vl1]: int49-56
bb*althost[bb-hostname_Vl1]: Internet link.
bb*altsvc[bb-hostname_Vl1]: traffic
bb*yellow[bb-hostname_Vl1]: 9%
bb*red[bb-hostname_Vl1]:10%
bb*unit[bb-hostname_Vl1]: bits/sec
bb*in[bb-hostname_Vl1]:In
bb*out[bb-hostname_Vl1]: Out
SetEnv[bb-hostname_Vl1]: MRTG_INT_IP="1.1.1.1" MRTG_INT_DESCR="Interface
to internet link."
Options[bb-hostname_Vl1]: growright, bits
MaxBytes[bb-hostname_Vl1]: 125000000
Title[bb-hostname_Vl1]: Traffic Analysis for Vl1 -- bb-hostname.foo.com
PageTop[bb-hostname_Vl1]: <h1>Traffic Analysis for Vl1 --
bb-hostname.foo.com</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>bb-hostname.foo.com in FOO</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>foo (at) foo.com</td>
</tr>
<tr>
<td>Description:</td>
<td>internet link </td>
</tr>
<tr>
<td>ifType:</td>
<td>propVirtual (53)</td>
</tr>
<tr>
<td>ifName:</td>
<td>Vl1</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>125.0 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>1.1.1.1()</td>
</tr>
</table>
</div>
Here is the output when I bbmrtg.pl by hand
localhost status internet.traffic green Wed Jun 17 13:59:04 2009
&green<A
HREF="http://foo.com/cgi-bin/mrtg-rrd.cgi/br2-cci_vl1.html">Traffic
Analysis for Vl1 -- bb-hostname.1stel.com:</A> *In: bits/sec (0.0%)
Out: bits/sec (0.0%*) <CENTER><BR><A
HREF="http://foo.com/cgi-bin/mrtg-rrd.cgi/bb-hostname_vl1.html"><IMG
SRC="http://foo.com/cgi-bin/mrtg-rrd.cgi/bb-hostname_vl1-day.png"
ALT="Last 24 Hours" BORDER=0></A><BR></CENTER>
<TABLE BORDER=1 ALIGN=CENTER>
<TR>
<TH COLSPAN=6><B>Rules</B></TH>
</TR>
<TR>
<TD><FONT COLOR=#00eb0c><B>In</B></FONT></TD>
<TD BGCOLOR=red><FONT COLOR=black><B>< 0.0%</B></FONT></TD>
<TD BGCOLOR=yellow><FONT COLOR=black><B>< 0.0%</B></FONT></TD>
<TD BGCOLOR=green><FONT COLOR=black><B>0.0% - 9.0%</B></FONT></TD>
<TD BGCOLOR=yellow><FONT COLOR=black><B>> 9.0%</B></FONT></TD>
<TD BGCOLOR=red><FONT COLOR=black><B>> 10.0%</B></FONT></TD>
</TR>
<TR>
<TD><FONT COLOR=#1000ff><B>Out</B></FONT></TD>
<TD BGCOLOR=red><FONT COLOR=black><B>< 0.0%</B></FONT></TD>
<TD BGCOLOR=yellow><FONT COLOR=black><B>< 0.0%</B></FONT></TD>
<TD BGCOLOR=green><FONT COLOR=black><B>0.0% - 9.0%</B></FONT></TD>
<TD BGCOLOR=yellow><FONT COLOR=black><B>> 9.0%</B></FONT></TD>
<TD BGCOLOR=red><FONT COLOR=black><B>> 10.0%</B></FONT></TD>
</TR>
</TABLE>
<BR>
Thanks in advance
--
Jared Hoskinson
1stel, Inc.
Desk 817.357.1013
FAX 817.357.1513