[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.

#!/bin/csh
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
pp`
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>
  <TABLE>
    <TR><TD>System:</TD><TD>xx.xx</TD></TR>
    <TR><TD>MRTG by whatever at whatever.com</TD><TD></TD></TR>
    <TR><TD>PPPOE sessions in Use</TD><TD></TD></TR>
   </TABLE>
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??

THanks,

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