[mrtg] OID Math

Robert Gahl bgahl at fireclick.com
Mon Aug 12 22:29:33 MEST 2002

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 and 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]: at at 
- at

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.


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

More information about the mrtg mailing list