Author | Vernon Everett |
---|---|
Compatibility | Xymon, Solaris 10, Solaris 11, Solaris 11.2 (not tested on others) |
Requirements | Solaris 10, 11, 11.2, rrdtool 1.2.x or later |
Download | None |
Last Update | |
A simple graph to indicate what's using memory on Solaris 10. Can be set to alert.
Really cool for keeping an eye on the size of that ZFS cache and kernel memory usage.
The problem of the graphs not working for systems without ZFS has been resolved with SPLITNCV.
For Solaris 11, or sites with restrictions on using setUID, ensure that the Xymon user has the ability to run getmemstat.ksh using sudo
Or
Set up getmemstat.ksh with setUID
chown root getmemstat.ksh chmod 4755 getmemstat.ksh
This is because getmemstat runs mdb, and requires root access to do so.
Add this to xymonserver.cfg
TEST2RRD="blah,blah,blah,memstat=ncv" GRAPHS="whatever was there, memstat::8" SPLITNCV_memstat="*:GAUGE"
Add this to graphs.cfg [memstat]
FNPATTERN memstat,(.*).rrd TITLE Kernel Memory Allocation YAXIS % -l 0 -u 100 DEF:p@RRDIDX@=@RRDFN@:lambda:AVERAGE AREA:p@RRDIDX@#@COLOR@:@RRDPARAM@:@STACKIT@ 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
* Special thanks to Henrik not just for writing Xymon, but also showing me how to create stack graphs with SPLITNCV data.
echo “::memstat” | mdb -k
on Solaris 11.2.