mrtg help

Net Llama! netllama
Mon Nov 15 09:00:17 PST 2004


On Mon, 15 Nov 2004, David Bandel wrote:
> On Sun, 14 Nov 2004 18:34:00 -0800, Net Llama! <netllama at linux-sxs.org> wrote:
> > Good evening,
> > I'm trying to get mrtg working, and i'm stuck on getting snmpd working.
> >     Each time I try to run mrtg, i'm seeing this error:
> > SNMP Error:
> > no response received
> >
> > In snmpd.conf, i've got:
> > com2sec readonly localhost public
> >
> > What am i missing?
>
> not sure, but try this:
> first, run snmpwalk from the localhost:
> snmpwalk -v 2c -c public localhost
> then try the same thing from the same host, but use the hostname that
> refers to your ethernet card.
> Then go to your mrtg system and try to run snmpwalk against the remote host.
> If the first two work, but the last one doesn't, make sure that your
> mrtg host is requesting the data from the near ethernet card and not
> the far card.
> Explanation:
> Most routers have more than one ethernet (or other) interface.  The
> mrtg host will normally be pointed to the hostname of the router, but
> that may resolve to an interface IP that goes _through_ the router
> rather than hitting the nearest (via routing) interface.
> Because SNMP uses UDP, if you request data from an interface that is
> logically on the other side of the router, you'll get your answer back
> from the near side interface and snmpwalk isn't expecting that, so
> discards that data (or netfilter blocks it as not RELATED).
>
> If the first two snmpwalks don't work on the localhost, keep looking
> at your snmpd.conf security settings.

I guess i should have mentioned that i'm doing all of this on localhost.
There is no remote host.  I spent about 3 hours last night sorting through
assorted snmp and mrtg documentation, and then only thing that i learned
is that there's a ton of conflicting information out there.

Any tips on how to do a barebones, very minimal snmpd.conf ?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                                netllama at linux-sxs.org
Linux Step-by-step & TyGeMo                  http://netllama.ipfox.com


More information about the Linux-users mailing list