[mrtg] How would you handle this?

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


Greetings,
 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
"1.3.6.1.4.1.140.625.180.1.40.32.102.57.52.51.98.52.50.102.56.57.48.55.4
8.52.54.48.52.52.56.52.97.53.100.51.50.48.49.101.56.102.99.49" 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
response:
bash-2.05$ ./snmpwalk -m /usr/local/mrtg-2/mibs/BEA-WEBLOGIC-MIB.txt -v
1 -c community server executeQueueRuntimeExecuteThreadCurrentIdleCount
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."24fc
59f3e90f9a8ec69a056ed628f204" = INTEGER: 2
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."27f9
468d50bafdf68313c6ab15a48187" = INTEGER: 2
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."5b52
3ff38dd4b7cb7ecdcf25797f7663" = INTEGER: 0
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."a13d
d2b65d55eb6091fac3997ac501aa" = INTEGER: 15
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."a45a
a42b8dfc610f33d37a3c2b0c7007" = INTEGER: 5
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."b391
902e239129c0936e3c6018841481" = INTEGER: 25
BEA-WEBLOGIC-MIB::executeQueueRuntimeExecuteThreadCurrentIdleCount."f943
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: 1.3.6.1.4.1.140.625.180.1.25)
SNMPv1_Session (remote host: "SERVER" [123.123.123.123].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