[mrtg] Need help with

Marcel Lammerse lammerse at xs4all.nl
Mon Mar 22 13:03:43 MET 2004


Hi there,

I apologize in advance if this question has been asked before. I've been
pulling out my hair for over a week now (I am thus now bald) and I would
really appricate some advice here.

I would like to get mrtg to graph the values of a specific SNMP variable
in the Cisco RTTMON mib. I have no problem doing the query using snmpget
or snmpwalk, but when I construct a target for mrtg to monitor, I get an
error, which I don't understand.

bash-2.05# snmpget -v 2c -c public 212.189.28.62 \
rttMonLatestHTTPOperTCPConnectRTT.50
CISCO-RTTMON-MIB::rttMonLatestHTTPOperTCPConnectRTT.50 = Gauge32: 32
bash-2.05#

My mrtg.cfg file contains this target:

Target[ezwf]: rttMonLatestHTTPOperTCPConnectRTT.50:public at 212.189.28.62
MaxBytes[ezwf]: 10000
Title[ezwf] : test title

When I run mrtg, I get:

bash-2.05# cat /tmp/mrtglog
2004-03-22 10:46:15 -- Started mrtg
2004-03-22 10:46:20 -- SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.50)
SNMPv1_Session (remote host: "212.189.28.62" [212.189.28.62].161)
                  community: "public"
                 request ID: 865634633
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/apache/htdocs/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 487
2004-03-22 10:46:20 -- SNMPGET Problem for ifInOctets.50 ifOutOctets.50
sysUptime sysName on public at 212.189.28.62::::::v4only
 at /usr/local/apache/htdocs/mrtg/bin/mrtg line 1835
2004-03-22 10:46:47 -- ERROR: Target[ezwf][_IN_]
'rttMonLatestHTTPOperTCPConnectRTT. $target->[18]{$mode} ' (eval):
Bareword "rttMonLatestHTTPOperTCPConnectRTT" not allowed while "strict
subs" in use at (eval 42) line 1.

2004-03-22 10:46:47 -- ERROR: Target[ezwf][_OUT_]
'rttMonLatestHTTPOperTCPConnectRTT. $target->[18]{$mode} ' (eval):
Bareword "rttMonLatestHTTPOperTCPConnectRTT" not allowed while "strict
subs" in use at (eval 43) line 1.

bash-2.05#

For one, I don't understand why it's polling ifInOctets and ifOutOctets.
I just want to graph rttMonLatestHTTPOperTCPConnectRTT.50.

What am I doing wrong?

Regards,
Marcel

--
			"Life is all about timing"

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