[mrtg] Re: Add incoming and outgoing bits.

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Jan 20 00:44:58 MET 2001


Craig J Suchland wrote:

> Now, what I'd REALLY like to do is have, for example, one line equal "out" and
> the second equal "in+out" - but I haven't been able to figure out if it's
> possible, and if so, what the proper syntax would be.

If you can find an interface that does not carry any data but that is
visible in the snmp tree, you can use that:

Target[x]: ifInOctets.2&ifOutOctets.1:public at device \
         + ifOutOctets.1&ifInOctets.1:public at device

where interface 1 does carry data and interface 2 does not carry data.

Try the loopback interface for instance:

[alex at home ~/try]$ snmpget cisco public 2.2.1.10.5 2.2.1.16.5 2.2.1.2.5
interfaces.ifTable.ifEntry.ifInOctets.5 = 0
interfaces.ifTable.ifEntry.ifOutOctets.5 = 0
interfaces.ifTable.ifEntry.ifDescr.5 = "Loopback0"

You can SNMPwalk the interface table (snmpwalk x y .1.3.6.1.2.1.2.2.1)
to find such an interface.

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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