[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 \
CISCO-RTTMON-MIB::rttMonLatestHTTPOperTCPConnectRTT.50 = Gauge32: 32

My mrtg.cfg file contains this target:

Target[ezwf]: rttMonLatestHTTPOperTCPConnectRTT.50:public at
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:
SNMPv1_Session (remote host: "" [].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
 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.


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?


			"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