[mrtg] Interface counter

MiikaT mlist.mrtg at inlan.inmics.fi
Tue Jul 15 19:56:18 MEST 2003


I am trying to create a mrtg graph, which displays the amount of
active switch interfaces (status=up). Is this something, which can
be done with mrtg alone, or do I need additional software/shell scripts
to achieve this. So far I've tried something like this:

Target[count]: 1.3.6.1.2.1.2.2.1.8.101:public at 10.20.20.254 + 1.3.6.1.2.1.2.2.1.
8.102:public at 10.20.20.254 + 1.3.6.1.2.1.2.2.1.8.103:public at 10.20.20.254 + 1.3.6.
1.2.1.2.2.1.8.104:public at 10.20.20.254
MaxBytes[count]: 4
Title[count]: 3Com 4900
PageTop[count]: <H1>ports used</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>3Com SuperStack 4900</TD></TR>
 </TABLE>
Options[count]: growright, gauge, nopercent, integer

The OID value returns this, when status is up:

IF-MIB::ifOperStatus.101 = INTEGER: up(1)

and when down:

IF-MIB::ifOperStatus.103 = INTEGER: down(2)

So far I haven't got anythin with the values that mrtg
manages to draw :-(

-MiikaT

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