[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: snmp & tunnel interfaces ...



* H. Steuer <steuer@virtualaudio.de> [001116 09:24] wrote:
> Hello out there,
> 
> i have an OpenBSD 2.8 (snapshot) machine with 2 NICs, one connected to the
> intranet, one to an DSL modem.  The Provider uses pppoe, so the link to the
> world is tun0. Im trying to set up mrtg for gathering statistics on network
> usage. But it seems that snmp cant handle the tunnel interface. Quering the
> snmpd it says "interfaces.ifTable.ifEntry.ifAdminStatus.9 = down(2)" which is
> tun0.  snmpset cant set this interface to "up".  Cause its marked "down", mrtg
> is not able to use this interface for its work.
> 
> Any ideas how to get this one working ?

Have you tried setting the target OID's manually? You can get mrtg to
graph arbitrary OID's be specifying them properly in the config file
(CPU, load average, or anything else supported by the MIB (and for that
matter, you can get also graph anything you can get with a shell script,
but I digress)). 

Obviously, you'd have to find out which OID's mrtg uses; I don't remember
off hand what those are. But you can set them directly with something
like this:

Target[OBSD.box]: .1.3.6.1.111.0&.1.3.6.1.112.0:notpublic@172.16.1.1

Substitute the appropriate OID's for .1.3.1.1.111.0 and .1.3.1.1.112.0.
--Michael