[mrtg] Re: OID, MIB, SNMP -what for eth0 ??

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Feb 12 10:39:31 MET 2001


mailserv wrote:

> My thought is that I should do an snmpwalk to find the available OID for the
> NIC card, then use that with configmaker.  From the example below I do not
> see an OID for eth0 and web searches for "netgear mib" does not produce an
> OID.

Do snmpwalk on 1.3.6.1.2.1, if this doesn't return much data then
there's something wrong with you ACL.

> I am not sure if I should graph the output from cat /proc/net/dev as an
> older post stated. If so, how.

/proc/net/dev gives you packet and byte counters per interface.
Something like  awk -F'[: ]*' '/eth0/{print $3"\n"$11}' < /proc/net/dev
will provide you with the byte counters. You can use this with the
external program interface (see faq.mrtg.org).

I guess you need to modify your ACL ("view" in /etc/snmpd.conf)
and everything will be OK.

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