Has anyone patched Xymon so that cached memory is displayed together with real, actual, and swap?
We have need of this (cluster compute nodes), and were wondering what it would take to do so.
-- JONATHAN B. HOREN Systems Administrator UAF Life Science Informatics Center for Research Services jbhoren at alaska.edu http://biotech.inbre.alaska.edu
On Fri, Feb 19, 2010 at 2:49 PM, Jonathan B. Horen <jbhoren at alaska.edu>wrote:
Has anyone patched Xymon so that cached memory is displayed together with real, actual, and swap?
We have need of this (cluster compute nodes), and were wondering what it would take to do so.
Custom tests really don't require patching Xymon. As long as you have a method for extracting whatever information you wish to monitor, you can report it to Xymon. You can see plenty of examples of custom code here:
http://xymonton.trantor.org/doku.php/monitors
Ralph Mitchell
Not exactly. We're not looking for a *custom* test; rather, we want cached memory to be *added* to the current display/graphs of physical, actual, and swapped. Really wouldn't make much sense to have cached memory dealt with apart from the rest.
On Fri, Feb 19, 2010 at 4:43 PM, Ralph Mitchell <ralphmitchell at gmail.com>wrote:
On Fri, Feb 19, 2010 at 2:49 PM, Jonathan B. Horen <jbhoren at alaska.edu>wrote:
Has anyone patched Xymon so that cached memory is displayed together with real, actual, and swap?
We have need of this (cluster compute nodes), and were wondering what it would take to do so.
Custom tests really don't require patching Xymon. As long as you have a method for extracting whatever information you wish to monitor, you can report it to Xymon. You can see plenty of examples of custom code here:
OK, but you could do a custom test that would include physical, actual, swapped and cached all in one lump. Yes, that reinvents part of the wheel, but you can do it with Xymon as it currently stands. You wouldn't need to wait on someone patching Xymon to include cached memory.
Ralph Mitchell
On Mon, Feb 22, 2010 at 4:58 PM, Jonathan B. Horen <jbhoren at alaska.edu>wrote:
Not exactly. We're not looking for a *custom* test; rather, we want cached memory to be *added* to the current display/graphs of physical, actual, and swapped. Really wouldn't make much sense to have cached memory dealt with apart from the rest.
On Fri, Feb 19, 2010 at 4:43 PM, Ralph Mitchell <ralphmitchell at gmail.com>wrote:
On Fri, Feb 19, 2010 at 2:49 PM, Jonathan B. Horen <jbhoren at alaska.edu>wrote:
Has anyone patched Xymon so that cached memory is displayed together with real, actual, and swap?
We have need of this (cluster compute nodes), and were wondering what it would take to do so.
Custom tests really don't require patching Xymon. As long as you have a method for extracting whatever information you wish to monitor, you can report it to Xymon. You can see plenty of examples of custom code here:
Hi Jonathan,
the "cached" memory is already collected by Xymon (via "vmstat") and graphed in vmstat.rrd. Unfortunately there seems to be no default graphing-defintion to display the collected values. As a quick hack the attached graphing-definition at the bottom can be used (see the comment in the file for some details).
If you want to trigger an event based on the value of cached memory you can fetch the collected values with the bb(1) "clientlog"-command and feed them to a rrd: $ ~/server/bin/bb localhost "clientlog name-of-the-host section=vmstat" [vmstat] procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 0 120 24664 245736 42392 0 0 0 8 40 48 1 1 98 0 0 0 120 25704 245736 42376 0 0 0 7 42 49 1 1 98 0
HTH,
Thomas
graphing-definition hack: --- snipp ---
graphing defintion to display of cached memory (based on [vmstat6] from
Xymon-4.3.0_beta2)
use by appending "TRENDS:*,vmstat:vmstat_cach" in bb-hosts for the hosts to
display cached memory for:
[vmstat_cach] # This graph only works on some OS'es (Solaris) TITLE Memory (cache) Utilization YAXIS Size kB -b 1024 DEF:free=vmstat.rrd:mem_free:AVERAGE CDEF:fr=free,1024,* DEF:cached=vmstat.rrd:mem_cach:AVERAGE CDEF:cach=cached,1024,* LINE2:fr#0000ff:Size of the free list LINE2:cach#00FF00:Size of cached memory COMMENT:\n GPRINT:fr:LAST:Size of the free list \: %5.1lf%s (cur) GPRINT:fr:MAX: \: %5.1lf%s (max) GPRINT:fr:MIN: \: %5.1lf%s (min) GPRINT:fr:AVERAGE: \: %5.1lf%s (avg)\n GPRINT:cach:LAST:Currently cached memory \: %5.1lf%s (cur) GPRINT:cach:MAX: \: %5.1lf%s (max) GPRINT:cach:MIN: \: %5.1lf%s (min) GPRINT:cach:AVERAGE: \: %5.1lf%s (avg)\n --- snipp ---
On Fri, 19 Feb 2010, Jonathan B. Horen wrote:
Has anyone patched Xymon so that cached memory is displayed together with real, actual, and swap?
We have need of this (cluster compute nodes), and were wondering what it would take to do so.
| IT-Beratung Eckert | Hartkirchweg 54 | fon: +49 (0)761/ 594 9898 | Thomas Eckert | 79111 Freiburg i.Br. | fax: +49 (0)761/ 594 9899 | | Germany | http://www.it-eckert.de/
participants (3)
-
jbhoren@alaska.edu
-
ralphmitchell@gmail.com
-
thomas.eckert@IT-Eckert.de