Karlnet
[Top] [All Lists]

RE: [Karlnet] Karlnet 4.31 - MIB MRTG help - SNR FOR sats!!!

To: Karlnet Mailing List <karlnet@wispnotes.com>
Subject: RE: [Karlnet] Karlnet 4.31 - MIB MRTG help - SNR FOR sats!!!
From: Peter Dordik <dordik@presov.viapvt.sk>
Reply-to: Karlnet Mailing List <karlnet@WISPNotes.com>
Date: Sat, 21 Feb 2004 11:21:17 +0100
List-post: <mailto:karlnet@WISPNotes.com>
Hi,

i think, that more important SNR values are from ISP Base, but there is a 
problem with changing order of satellites in SNMP tree after reboot of ISP 
Base. We can not use fixed last "NUMBERS" in mrtg.cfg.

So, here is my VERY DIRTY script, I use.

Regards
        Peter

------------------------------------------------------------


#!/bin/sh
#
#  Signal/Noise ISP Base script example for MRTG
#
#  usage: /usr/local/bin/sn ip_of_isp_base sat_name name_of_read_comunity
#
NUMBER=`/usr/local/bin/snmpwalk $1 $3 .1.3.6.1.4.1.762.2.5.2.1.3  | /bin/grep 
$2 | /usr/bin/cut -c 27-28`
#
/usr/local/bin/snmpget $1 $3 .1.3.6.1.4.1.762.2.5.2.1.7.$NUMBER | /usr/bin/cut -
c 40-41
/usr/local/bin/snmpget $1 $3 .1.3.6.1.4.1.762.2.5.2.1.8.$NUMBER | /usr/bin/cut -
c 40-41

----------------------------------------------------------------

mrtg.cfg example:

# SN for Satellite1
# ----------------
Title[sn]: Signal and Noise for Satellite1
PageTop[sn]: <H1>Signal and Noise for Satellite1</H1>
Target[sn]: `/usr/local/bin/sn 192.168.0.100 Satellite1 public`
ShortLegend[sn]: %
YLegend[sn]: Signal Noise %
LegendI[sn]: Signal
LegendO[sn]: Noise
MaxBytes[sn]: 100
Options[sn]: growright, nopercent, gauge

---------------------------------------------------------------- 

> This works on remote cpes for SNR, it is a percentage though, if you can
> get into dbm's I'd like to see it -
> 
> MaxBytes[t1cpe--]: 100
> Target[t1cpe--nbgd]:.1.3.6.1.4.1.762.2.5.2.1.7.1&.1.3.6.1.4.1.762.2.5.2.
> 1.8.1:pass@x.x.x.x
> Title[t1cpe--]: Signal & Noise - t1cpe
> PageTop[t1cpe--]: <H1>T1-Signal</H1>
> Options[t1cpe--]: gauge, nopercent, growright
> YLegend[t1cpe--]: Signal/Noise
> ShortLegend[t1cpe--]: %
> LegendI[t1cpe--]: Signal&nbsp;
> LegendO[t1cpe--]: Noise&nbsp;
> Unscaled[t1cpe--]: ymwd
> 


_______________________________________________
Karlnet mailing list
Karlnet@WISPNotes.com
http://lists.wispnotes.com/mailman/listinfo/karlnet

<Prev in Thread] Current Thread [Next in Thread>