[mrtg] How would you handle this?

Pavleck, Jeremy D. Jeremy.Pavleck at capella.edu
Sat Sep 24 00:41:35 MEST 2005

 So I'm currently graphing a bunch of counters for Bea Weblogic. The way
I have to do it now is by taking the exact OID like
"" and
graphing it. Problem is, when you add nodes, move priorities around,
reboot in a different order, etc those OIDs will break. 
 So I've been trying to graph it by just calling the name instead of the
exact oid, like "executeQueueRuntimeServicedRequestTotalCount". That's
where my problem lies. Unless I call an explicit OID I get the following
bash-2.05$ ./snmpwalk -m /usr/local/mrtg-2/mibs/BEA-WEBLOGIC-MIB.txt -v
1 -c community server executeQueueRuntimeExecuteThreadCurrentIdleCount
59f3e90f9a8ec69a056ed628f204" = INTEGER: 2
468d50bafdf68313c6ab15a48187" = INTEGER: 2
3ff38dd4b7cb7ecdcf25797f7663" = INTEGER: 0
d2b65d55eb6091fac3997ac501aa" = INTEGER: 15
a42b8dfc610f33d37a3c2b0c7007" = INTEGER: 5
902e239129c0936e3c6018841481" = INTEGER: 25
b42f890704604484a5d3201e8fc1" = INTEGER: 3

So of course this freaks MRTG out. If I run it with --debug="snpo" is
comes up with:
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID:
SNMPv1_Session (remote host: "SERVER" [].161)
                  community: "community"
                 request ID: 1938696303
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for executeQueueRuntimeExecuteThreadCurrentIdleCount
executeQueueRuntimeServicedRequestTotalCount on
community at server:161:::::v4only
--snpo: SNMPfound -- 'undef', 'undef'
ERROR: Target[infwctweb31-threads][_IN_] ' $target->[0]{$mode} ' did not
eval into defined data
ERROR: Target[infwctweb31-threads][_OUT_] ' $target->[0]{$mode} ' did
not eval into defined data

Now really, all those numbers represent is a particular queue. In my
current setup, I have to take each very long OID and do a lot of
444&3333 + 5555&6666 + 7777&8888 etc etc. I'm not really sure if there's
a way to get MRTG to just add up all those numbers and graph THAT value.
I did see the conversion code section of the manual (I keep drifting
back to it). I don't know enough perl unfortunately to test it, but I
was wondering if I had some perl that basically cut the
"f943b42f890704604484a5d3201e8fc1" part out of the returned
""f943b42f890704604484a5d3201e8fc1" = INTEGER: 3" and added up the
integers if that would work. I'm assuming MRTG is taking in what's being
returned via SNMP, but displays the above message because it's not
solely an integer. If that's true that conversion code would work, I'd
really appreciate it if I could get a little help out with it - a good
start to go on or something.

I'm mainly retouching on this subject because we finally got this system
to move from Win to Sun, and I'm trying to make it more bulletproof to
further ram the point home.

Thanks very much everyone!

Jeremy D. Pavleck
Network Engineer
System Management
Direct Line: 612-977-5881
Toll Free: 1-888-CAPELLA ext. 5881
Fax: 612-977-5060

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