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
> LegendO[t1cpe--]: Noise
> Unscaled[t1cpe--]: ymwd
>
_______________________________________________
Karlnet mailing list
Karlnet@WISPNotes.com
http://lists.wispnotes.com/mailman/listinfo/karlnet
|