From jhoskinson@1stel.com Wed Jun 24 08:18:45 2026 From: jhoskinson@1stel.com To: xymon@xymon.com Subject: bbmrtg.pl help Date: Wed, 17 Jun 2009 14:05:34 -0500 Message-ID: <4A393E7E.1080008@1stel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6334401229042219158==" --===============6334401229042219158== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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]:

Traffic Analysis for Vl1 -- bb-hostname.foo.com

System: bb-hostname.foo.com in FOO
Maintainer: foo at foo.com
Description: internet link
ifType: propVirtual (53)
ifName: Vl1
Max Speed: 125.0 MBytes/s
Ip: 1.1.1.1()
Here is the output when I bbmrtg.pl by hand localhost status internet.traffic green Wed Jun 17 13:59:04 2009 &greenTraffic Analysis for Vl1 -- bb-hostname.1stel.com: *In: bits/sec (0.0%) Out: bits/sec (0.0%*)

Last 24 Hours
Rules
In < 0.0% < 0.0% 0.0% - 9.0% > 9.0% > 10.0%
Out < 0.0% < 0.0% 0.0% - 9.0% > 9.0% > 10.0%

Thanks in advance -- Jared Hoskinson 1stel, Inc. Desk 817.357.1013 FAX 817.357.1513 --===============6334401229042219158==-- From dan.mcdonald@austinenergy.com Wed Jun 24 08:18:45 2026 From: "Dan.McDonald@austinenergy.com" To: xymon@xymon.com Subject: [hobbit] bbmrtg.pl help Date: Thu, 18 Jun 2009 08:06:44 -0500 Message-ID: <1245330404.7135.6.camel@mcdonalddj-dc.austin-energy.net> In-Reply-To: <4A393E7E.1080008@1stel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3424241960583775121==" --===============3424241960583775121== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wed, 2009-06-17 at 14:05 -0500, Jared Hoskinson wrote: > 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. It's a timing problem - the rrd is being written after bbmrtg reads it, so it's returning NaN. I had to add a call to RRDs::last to make it work right: } elsif ($BACKEND eq 'RRD') { $last = RRDs::last($targetLog); my $first = $last - 300; my ($start, $step, $names, $data) = RRDs::fetch "-s $first","-e $last", $targetLog, 'AVERAGE'; foreach my $dat (@$data) { if (defined($$dat[0])) { $i_now=($factor * $$dat[0]); } if (defined($$dat[1])) { $o_now=($factor * $$dat[1]); } } warn "last: $last, i_now: $i_now, o_now: $o_now\n" if $tron; Sorry, I don't have the original code to do a proper diff... -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX www.austinenergy.com --===============3424241960583775121==-- From bgmilne@staff.telkomsa.net Wed Jun 24 08:18:45 2026 From: bgmilne@staff.telkomsa.net To: xymon@xymon.com Subject: [hobbit] bbmrtg.pl help Date: Fri, 19 Jun 2009 09:15:27 +0200 Message-ID: <200906190915.27292.bgmilne@staff.telkomsa.net> In-Reply-To: <4A393E7E.1080008@1stel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8294781742909797697==" --===============8294781742909797697== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wednesday 17 June 2009 21:05:34 Jared Hoskinson wrote: > Hello all > > I need to alarm on bandwidth thresholds Have you considered using devmon for this instead? Regards, Buchan --===============8294781742909797697==-- From Paul.Root@qwest.com Wed Jun 24 08:18:45 2026 From: Paul.Root@qwest.com To: xymon@xymon.com Subject: [hobbit] bbmrtg.pl help Date: Fri, 19 Jun 2009 07:11:02 -0500 Message-ID: <2685F464D7BC7C4DA88845C97AEB5F5330F22B990C@qtomaexmbm22.AD.QINTRA.COM> In-Reply-To: <200906190915.27292.bgmilne@staff.telkomsa.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8540440072090673117==" --===============8540440072090673117== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Devmon works pretty well. We're having a bit of trouble with it concerning ac= curate estimation of load for some interfaces. I'm not the router guy, so I'm= not sure of what's what. Can I put devmon in the hobbitlaunch.cfg? ________________________________________ From: Buchan Milne [bgmilne at staff.telkomsa.net] Sent: Friday, June 19, 2009 2:15 AM To: hobbit at hswn.dk Cc: Jared Hoskinson Subject: Re: [hobbit] bbmrtg.pl help On Wednesday 17 June 2009 21:05:34 Jared Hoskinson wrote: > Hello all > > I need to alarm on bandwidth thresholds Have you considered using devmon for this instead? Regards, Buchan To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk --===============8540440072090673117==-- From dan.mcdonald@austinenergy.com Wed Jun 24 08:18:45 2026 From: "Dan.McDonald@austinenergy.com" To: xymon@xymon.com Subject: [hobbit] bbmrtg.pl help Date: Fri, 19 Jun 2009 08:40:50 -0500 Message-ID: <1245418850.14689.24.camel@mcdonalddj-dc.austin-energy.net> In-Reply-To: <200906190915.27292.bgmilne@staff.telkomsa.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2597164729264931070==" --===============2597164729264931070== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Fri, 2009-06-19 at 09:15 +0200, Buchan Milne wrote: > On Wednesday 17 June 2009 21:05:34 Jared Hoskinson wrote: > > Hello all > > > > I need to alarm on bandwidth thresholds > > Have you considered using devmon for this instead? I've considered devmon in the past, but it doesn't meet my needs because: 1. template system isn't as flexible as mrtg's 2. no support for snmp v3 -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX www.austinenergy.com --===============2597164729264931070==-- From bgmilne@staff.telkomsa.net Wed Jun 24 08:18:45 2026 From: bgmilne@staff.telkomsa.net To: xymon@xymon.com Subject: [hobbit] bbmrtg.pl help Date: Fri, 19 Jun 2009 16:25:48 +0200 Message-ID: <200906191625.48550.bgmilne@staff.telkomsa.net> In-Reply-To: <1245418850.14689.24.camel@mcdonalddj-dc.austin-energy.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5792362686557704221==" --===============5792362686557704221== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Friday 19 June 2009 15:40:50 McDonald, Dan wrote: > On Fri, 2009-06-19 at 09:15 +0200, Buchan Milne wrote: > > On Wednesday 17 June 2009 21:05:34 Jared Hoskinson wrote: > > > Hello all > > > > > > I need to alarm on bandwidth thresholds > > > > Have you considered using devmon for this instead? > > I've considered devmon in the past, but it doesn't meet my needs > because: > 1. template system isn't as flexible as mrtg's I think there are a fair number of templates that show the opposite as well. Feel free to mention exactly what features are missing regarding templates. > 2. no support for snmp v3 Since there is no support in SNMP_Session for SNMPv3 ... I am considering switching to net-snmp's SNMP module instead. Of course, patches are welcome. You neglected to note any advantages devmon has over mrtg though .... Regards, Buchan --===============5792362686557704221==-- From dan.mcdonald@austinenergy.com Wed Jun 24 08:18:45 2026 From: "Dan.McDonald@austinenergy.com" To: xymon@xymon.com Subject: [hobbit] bbmrtg.pl help Date: Fri, 19 Jun 2009 10:16:56 -0500 Message-ID: <1245424616.14689.37.camel@mcdonalddj-dc.austin-energy.net> In-Reply-To: <200906191625.48550.bgmilne@staff.telkomsa.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0020612955269607475==" --===============0020612955269607475== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Fri, 2009-06-19 at 16:25 +0200, Buchan Milne wrote: > On Friday 19 June 2009 15:40:50 McDonald, Dan wrote: > > On Fri, 2009-06-19 at 09:15 +0200, Buchan Milne wrote: > > > On Wednesday 17 June 2009 21:05:34 Jared Hoskinson wrote: > > > > Hello all > > > > > > > > I need to alarm on bandwidth thresholds > > > > > > Have you considered using devmon for this instead? > > > > I've considered devmon in the past, but it doesn't meet my needs > > because: > > 1. template system isn't as flexible as mrtg's > > I think there are a fair number of templates that show the opposite as well. Well, that's the problem. You need a template for each type of gear in devmon. So, my Cat 3750-48PS-E would need a different template than a Cat 3750G-24PS-E, and every combination of stack would need yet another template. Instead, I can write a generic template in mrtg to cover pretty much anything that runs IOS - it's just perl, so I can query mibs and optionally include sections as I see fit. Ditto for UPS - I have 4 major flavors of UPS, just one template. > > Feel free to mention exactly what features are missing regarding templates. > > > 2. no support for snmp v3 > > Since there is no support in SNMP_Session for SNMPv3 ... > > I am considering switching to net-snmp's SNMP module instead. Yes, I spliced in net_SNMP_Session as a "drop-in" replacement for SNMP_Session in mrtg. Took a couple of months, but I made it work. I had to design new syntax, and messed with much of the guts of mrtg. > Of course, patches are welcome. Of course. But that's a whole new program for me to wrap my head around and do deep-dive coding. Not enough spare grey cells or contiguous seconds to do that. > You neglected to note any advantages devmon has over mrtg though .... I've not been able to use it, because of no support for SNMP v3. devmon was first released after I had fixed mrtg. But the main advantage is easier integration with xymon, although bbmrtg.pl works fine if you patch it. -- Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX www.austinenergy.com --===============0020612955269607475==--