[mrtg] PPOE sessions from Redback

Keith Olmstead kolmstea at centurytel.net
Mon Oct 8 21:52:21 MEST 2001

Hey all,

Just helping out alittle more,

Here is a script that I wrote that will gather pppoe sessions on a 
Redback.  You have to use this script and also a config file.  This is on a 
BSD box.

set host=$1
set SNMPQUERY="/usr/local/bin/snmpwalk"
set usage=`$SNMPQUERY -v 1 -t 15 $host Publicstring 
interfaces.ifTable.ifEntry.ifType | grep -c p
echo 0
echo $usage

with this little script you can use it as the target in your cfg file like so:

Target[xx.xx]: `/home/mrtg/rb.sc xx.xx`
Maxbytes[xx.xx]: 3048
Ylegend[xx.xx]: # of Connections
LegendI[xx.xx]: PPPOE
LegendO[xx.xx]: PPPOE Sessions
Title[xx.xx]: PPPOE sessions in Use
PageTop[xx.xx]: <H1>PPPOE sessions in Use</H1>
    <TR><TD>MRTG by whatever at whatever.com</TD><TD></TD></TR>
    <TR><TD>PPPOE sessions in Use</TD><TD></TD></TR>
Options[xx.xx]: gauge

Just point mrtg to this config and your sessions will be polled.
If some can help, it seems that there is an extra lines in the graph, ie 
max pppoe, average pppoe, and current pppoe. that is displaying 0.  Is 
there anyway to remove or correct this??


Keith Olmstead
CenturyTel Network

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