Xymon Mailing List Archive search

Display Cached Memory

5 messages in this thread

list Jonathan B. Horen · Fri, 19 Feb 2010 10:49:55 -0900 ·
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
user-12d4882938ba@xymon.invalid
http://biotech.inbre.alaska.edu
list Ralph Mitchell · Fri, 19 Feb 2010 20:43:30 -0500 ·
quoted from Jonathan B. Horen
On Fri, Feb 19, 2010 at 2:49 PM, Jonathan B. Horen <user-12d4882938ba@xymon.invalid>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
list Jonathan B. Horen · Mon, 22 Feb 2010 12:58:26 -0900 ·
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.
quoted from Ralph Mitchell

On Fri, Feb 19, 2010 at 4:43 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
On Fri, Feb 19, 2010 at 2:49 PM, Jonathan B. Horen <user-12d4882938ba@xymon.invalid>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
list Ralph Mitchell · Mon, 22 Feb 2010 18:03:45 -0500 ·
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
quoted from Jonathan B. Horen


On Mon, Feb 22, 2010 at 4:58 PM, Jonathan B. Horen <user-12d4882938ba@xymon.invalid>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 <user-00a5e44c48c0@xymon.invalid>wrote:
On Fri, Feb 19, 2010 at 2:49 PM, Jonathan B. Horen <user-12d4882938ba@xymon.invalid>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
list Thomas Eckert · Sat, 27 Feb 2010 09:28:19 +0100 (CET) ·
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 ---
quoted from Jonathan B. Horen

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: +XX (X)XXX/ XXX XXXX
|                     | Germany                  | http://www.it-eckert.de/