[mrtg] Re: OID Math
Jerry Heidtke
jheidtke at fmlh.edu
Mon Aug 12 22:45:07 MEST 2002
You need to have two OIDs on both sides of the mathematical operator. Find
an OID that always returns 0, and use that.
Eg.:
Total_Mem_OID&Total_Mem_OID:public at 192.168.15.85 -
Some_OID_returns_0&Free_Mem_OID:public at 192.168.15.85
Jerry
-----Original Message-----
From: Robert Gahl [mailto:bgahl at fireclick.com]
Sent: Monday, August 12, 2002 3:30 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] OID Math
I've read much of the documentation on doing math on the OIDs but I can't
seem to come up with the proper syntax for doing it properly.
We are able to query JVM (Java Virtual Machine) Total Memory and Free
Memory (OIDs 1.3.6.1.4.1.2021.51.101.4 and 1.3.6.1.4.1.2021.51.101.3) from
some SNMP code we wrote, and I can query these and get data from them.
The problem I'm facing is that I want to display Total Memory and Used
Memory, so I would like to have one graph be Total Memory and the other
graph be Total Memory minus Free memory (i.e., Used Memory). I've tried the
following definition in MRTG:
Target[mem]:
1.3.6.1.4.1.2021.51.101.4:public at 192.168.15.85&1.3.6.1.4.1.2021.51.101.4:pub
lic at 192.168.15.85
- 1.3.6.1.4.1.2021.51.101.3:public at 192.168.15.85:
but it doesn't work. Any suggestions on what I can do or how to reorganize
this to make it work? I'm lost on what the exact syntax should be.
Thanks.
===
Bob Gahl Bicycle (Ryan Vanguard) Mobile || @
ARPA/Internet: bgahl at fireclick.com || !_ \
URL: http://www.fireclick.com/ || (*)-~--+--(*)
"If you're trying to be politically correct you're like a chameleon
in front of a mirror. What can you say that won't be offensive to
somebody?" Robin Williams
--
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
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
--
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