monitors:zonemem

This is an old revision of the document!


zonemem.ksh

Author Vernon Everett
Compatibility Xymon 4.2
Requirements It monitors zones, so I guess Solaris is pretty important.
Download None
Last Update 2013-08-02

I wanted a single unified view of zone memory utilsation, to assist with resource allocation improvements.
Then I added the swap utilisation, and then added graphing too, just for the hell of it.
Under certain circumstances, the graphing is useful, under others, not so much.
Then I added alerting for when thresholds were breached.

NOTE : Only runs in the global zone.

Client side

Copy script to $XYMONCLIENTHOME/ext in the normal way. Make sure it's executable.

Server side

If you want graphing, add the following to xymonserver.cfg

SPLITNCV_zmem="*:GAUGE"

And add the following to TEST2RRD=

zmem=ncv

and GRAPHS=

zmem::4

also in xymonserver.cfg

And add the following to graphs.cfg

[zmem]
    FNPATTERN ^zmem,(.*).rrd
    TITLE Zone %Memory Utilisation
    YAXIS %
    -l 0
    -u 100
    DEF:p@RRDIDX@=@RRDFN@:lambda:AVERAGE
    LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@
    GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)
    GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)
    GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)
    GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
    

Show Code ⇲

Hide Code ⇱


  • YYYY-MM-DD
    • Initial release
  • monitors/zonemem.1375422003.txt.gz
  • Last modified: 2013/08/02 05:40
  • by vernon