[mrtg] Re: MRTG query and Dividing by 10

Denny Snyder DSnyder at suscom.com
Mon Jan 6 22:09:33 MET 2003


Awesome!!  I wonder why this isn't listed anywhere in the MRTG docs or
howtos....


Thanks a boatload!!

Denny Snyder
Network Engineer
Susquehanna Communications
1050 E. King St
York, PA 17403
Office: (717)771-2613
Fax:    (717)843-5400
dsnyder at suscom dot com
dsnyder at suscom dot net

Registered Linux User 280537

"The final evolutionary step of a 'geek'
is 'guru' - unfortunately, most 'geeks'
never survive the metamorphasis."

>>> Jerry Heidtke <jheidtke at fmlh.edu> 01/03/03 05:40PM >>>
Add the following to the end of the Target line. No quotes, spaces are
important.

" / 10"

Jerry

-----Original Message-----
From: Denny Snyder [mailto:DSnyder at suscom.com] 
Sent: Friday, January 03, 2003 4:27 PM
To: mrtg at list.ee.ethz.ch 
Subject: [mrtg] MRTG query and Dividing by 10



Hello all,

I'm pulling signal to noise (SNR) ratios from my Cisco UBR 7200s and I
get results just great.  Unfortunately cisco gives the outputs in
tenths
of a dB...  So if my current SNR was 28.4dB it would come out as 284
when I query the OID.  Is there a way to tell mrtg to divide by 10 on
the results?

Here's my snippet of my mrtg.cfg for this particular query:

Target[nn.nn.nn.nn-snr_35]:
.1.3.6.1.2.1.10.127.1.1.4.1.5.12&.1.3.6.1.2.1.10.127.1.1.4.1.5.12:community@
nn.nn.nn.nn:161:90:5:3:2
SetEnv[nn.nn.nn.nn-snr_35]: MRTG_INT_IP="nn.nn.nn.nn"
MRTG_INT_DESCR="Cable 3 Upstream 5 SNR in tenths dBs"
Directory[nn.nn.nn.nn-snr_35]: nn.nn.nn.nn
YLegend[nn.nn.nn.nn-snr_35]: SNR
ShortLegend[nn.nn.nn.nn-snr_35]: tenth dBs
MaxBytes[nn.nn.nn.nn-snr_35]: 400
Options[nn.nn.nn.nn-snr_35]: nopercent, gauge, unknaszero, growright
Unscaled[nn.nn.nn.nn-snr_35]: dwmy
Legend1[nn.nn.nn.nn-snr_35]: SNR dB
Legend2[nn.nn.nn.nn-snr_35]: .
Legend3[nn.nn.nn.nn-snr_35]: Max value per interval on graph
Legend4[nn.nn.nn.nn-snr_35]: .
LegendI[nn.nn.nn.nn-snr_35]: SNR dB:
LegendO[nn.nn.nn.nn-snr_35]: .
Title[nn.nn.nn.nn-snr_35]: York uBR1 Blade 3 Upstream 5 SNR
Colours[nn.nn.nn.nn-snr_35]:
GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[nn.nn.nn.nn-snr_35]: ymw
PageTop[nn.nn.nn.nn-snr_35]: <H1>York uBR1 Cable 3 Upstream 5 SNR</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>ubr1.yrk1 in York, PA</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Denny Snyder (doh!)</TD></TR>
   <TR><TD>Description:</TD><TD>uBR1 Cable 3 Upstream 5 SNR 
</TD></TR>
   <TR><TD>Ip:</TD>         <TD>nn.nn.nn.nn (nn.nn.nn.nn)</TD></TR>
 </TABLE>


As I said..  This works great for those that can understand what the
output really is.....  I put a MaxBytes of 400 in due to a bug in
Cisco
that when quering this particular OID you get bizarrely high numbers
at
times (such as 18450) - which MRTG will drop quite nicely.  For anyone
that might be interested in using this - you need a recent IOS load...

mine's 12.1(12c)EC.

If I could get a divide by ten to go somehow - I'd be golden!!

Thanks for any help in advance!!



Denny Snyder
Network Engineer
Susquehanna Communications
1050 E. King St
York, PA 17403
Office: (717)771-2613
Fax:    (717)843-5400
dsnyder at suscom dot com
dsnyder at suscom dot net

Registered Linux User 280537

"The final evolutionary step of a 'geek'
is 'guru' - unfortunately, most 'geeks'
never survive the metamorphasis."

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe 
Archive     http://www.ee.ethz.ch/~slist/mrtg 
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 


Confidentiality Notice: This e-mail message, including any attachments,
is 
for the sole use of the intended recipient(s) and may contain
confidential 
and privileged information.  Any unauthorized review, use, disclosure
or 
distribution is prohibited.  If you are not the intended recipient,
please 
contact the sender by reply e-mail and destroy all copies of the
original 
message.


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list