[mrtg] extended math in a Target definition

Quinlan D DanielQ at mfl.co.uk
Wed Nov 14 14:45:35 MET 2001


hi,

 I'm trying to graph memory in use using the Compaq Foundation Agents on NT
servers.  the agents only report how much memory is free, however management
want a graph of memory in use.  so i've been using the target below

Target[db-ent]:
cpqHoPhysicalMemorySize.0&cpqHoPagingMemorySize.0:public at db-ent -
cpqHoPhysicalMemoryFree.0&cpqHoPagingMemoryFree.0:public at db-ent

which works fine as long as the box has <= 2Gb of RAM.
cpqHoPhysicalMemorySize only reports what the OS sees and NT Server can't
address more than 2Gb of RAM in userspace (it splits it 2/2
userspace/kernelspace).

I've found another OID in the MIBs that reports the true amount of physical
RAM, but it reports it in kilobytes whereas cpqHoPhysicalMemoryFree reports
megabytes.

soooo....

I tried this

Target[db-ent]: (cpqSeTotalMem.0 /
1024)&cpqHoPagingMemorySize.0:public at db-ent -
cpqHoPhysicalMemoryFree.0&cpqHoPagingMemoryFree.0:public at db-ent

but MRTG barfs with syntax errors, doesn't work without the brackets either.

The config file is automatically generated by our Inventory system so I
could just put in pre-calculated numbers for the sizes of the Physcial
Memory and Paging file. so I tried

Target[db-ent]: 4096&3963 -
cpqHoPhysicalMemoryFree.0&cpqHoPagingMemoryFree.0:public at db-ent

MRTG doesn't complain but I just get zeros in the log file and an empty
graph.

any ideas???

thanks,
Daniel Quinlan




***************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify postmaster at mfl.co.uk immediately.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.
***************************************************************************************

--
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