[mrtg] Re: SNMPv3?
Robert Huff
roberthuff at rcn.com
Sat Jun 24 00:35:08 MEST 2006
Daniel J McDonald writes:
> > and mrtg does not exit.
>
> Due to the RunAsDaemon setting...
Logical, Captain.
> > Daemonizing MRTG ...
> > SNMPopen failed: Invalid argument '-privpassphrase' at /usr/local/bin/mrtg line 1986
> > SNMPGET Problem for jerusalem at 127.0.0.1:::::3:v4only at /usr/local/bin/mrtg line 1986
> > ERROR: Target[jerusalem][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
> > ERROR: Target[jerusalem][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
>
> The correct parameter is -privpassword.
Got it,
The documentation at
"http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html" does indeed
say "privpassowrd". My bad.
Thinking back, I may have looted this from the documentation to
snmp,
> I'm trying to remember
> where I checked for that... Ah, I did the parser consistency
> checks in cfgmaker, not in mrtg-lib...
May I suggest a config file check is something one should be
able to ask for at merg startup?
That seemd to have fixed the start-up problem.
Which leads to Round 4:
Daemonizing MRTG ...
SNMPGET Problem for ifHCInOctets.2 ifHCOutOctets.2 sysUptime sysName on jerusalem at 127.0.0.1:::::3:v4only : No response from remote host '127.0.0.1' at /usr/local/bin/mrtg line 1986
ERROR: Target[jerusalem][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[jerusalem][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
My analysis: mrtg asked for
ifHCInOctets.2
ifHCOutOctets.2
sysUptime
sysName
and didn't get anything back. Either the names don't map
correctly to OIDs, or the OIDs don't exist.
Let's see:
huff at jerusalem>> snmpget localhost ifHCInOctets.2
IF-MIB::ifHCInOctets.2 = No Such Object available on this agent at this OID
huff at jerusalem>> snmpwalk localhost | grep ifHCInOctets.2
HOST-RESOURCES-MIB::hrSWRunParameters.76477 = STRING: "ifHCInOctets.2"
Now I'm confused again.
Robert Huff
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list