[mrtg] problem reporting on True Memory available (memAvailReal + memCached ) versus memTotalReal

Damien Graves dgraves at rentokilinitial.com.au
Fri May 2 05:30:05 CEST 2008


 

Cannot seem to report the true memory available on linux boxes of true
memory available.

 

#

# Memory Monitoring (Percentage usage)

# This seems to work for the Percentage of memory available around 95%

 

#

Title[mybox.mempercentcache]: Percentage Free Memory

PageTop[mybox.mempercentcache]: <h1>Percentage Free Memory TranTest</h1>

Target[mybox.mempercentcache]: (
memAvailReal.0&memAvailReal.0:mrtg at mybox +
memCached.0&memCached.0:mrtg at mybox ) * 100 / (
memTotalReal.0&memTotalReal.0:mrtg at mybox )

options[mybox.mempercentcache]: growright,gauge,transparent,nopercent

Unscaled[mybox.mempercentcache]: ymwd

MaxBytes[mybox.mempercentcache]: 100

YLegend[mybox.mempercentcache]: Memory %

ShortLegend[mybox.mempercentcache]: Percent

LegendI[mybox.mempercentcache]: Free

LegendO[mybox.mempercentcache]: Free

Legend1[mybox.mempercentcache]: Percentage Free Memory

Legend2[mybox.mempercentcache]: Percentage Free Memory

 

 

 

 

 

Target[mybox.memorycache]: ( memTotalReal.0&memIndex.0:mrtg at mybox -
memCached.0&memIndex.0:mrtg at mybox )&memTotalReal.0:mrtg at mybox

Title[mybox.memorycache]: Free Memory

PageTop[mybox.memorycache]: <h1>Free Memory TranTest with Cache</h1>

MaxBytes[mybox.memorycache]: 100000000000

ShortLegend[mybox.memorycache]: B

YLegend[mybox.memorycache]: Bytes

LegendI[mybox.memorycache]: Free

LegendO[mybox.memorycache]: Total

Legend1[mybox.memorycache]: Free memory, not including swap, in bytes

Legend2[mybox.memorycache]: Total memory

Options[mybox.memorycache]: gauge,growright,nopercent

kMG[mybox.memorycache]: k,M,G,T,P,X

 

 

but this doesn't seem to work no matter what I try.

Have tried all the following syntax but still no success

 

Target[mybox.memorycache]: ( memTotalReal.0:mrtg at mybox -
memCached.0:mrtg at mybox - memAvailReal.0:mrtg at mybox
)&memTotalReal.0:mrtg at mybox

 

Target[mybox.memorycache]: ( memCached.0:mrtg at mybox +
memAvailReal.0:mrtg at mybox )&memTotalReal.0:mrtg at mybox

 

 

Not sure what I'm doing wrong

 

please help

 

 

Regards,
Damien

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080502/be278450/attachment.html 


More information about the mrtg mailing list