Xymon Mailing List Archive search

enhancement request: memory usage in real values

4 messages in this thread

list Stef Coene · Mon, 25 Feb 2019 11:44:44 +0100 ·
Hi,

We need an historic graph of the real values of Physical, Actual and 
Swap memory usage.

But only the percent values are stored in the rrd files.
Has someone already patched the sources to create rrd files with the 
real values? If so, can I have the patch :)
Otherwise I have to brush up my C knowledge and do it myself.


Stef
list Andy Smith · Mon, 25 Feb 2019 18:49:04 +0000 ·
quoted from Stef Coene

On 25/02/19 10:44, Stef Coene wrote:
Hi,

We need an historic graph of the real values of Physical, Actual and Swap memory usage.

But only the percent values are stored in the rrd files.
Has someone already patched the sources to create rrd files with the real values? If so, can I have the patch :)
Otherwise I have to brush up my C knowledge and do it myself.
Are you needing Windows or Unix boxes?  If Unix you are in luck, you are probably already collecting mem_free in vmstat.rrd, in fact if you are looking at Solaris, there is already a standard graph definition (vmstat6) you can configure in TRENDS.  This doesnt work óut of the box'on the vmstat.rrd collected by linux servers, but you could probably create a version that gives you something.
__
Andy
list Stef Coene · Tue, 26 Feb 2019 08:32:22 +0100 ·
quoted from Andy Smith
On 25/02/19 19:49, Andy Smith wrote:

On 25/02/19 10:44, Stef Coene wrote:
Hi,

We need an historic graph of the real values of Physical, Actual and Swap memory usage.

But only the percent values are stored in the rrd files.
Has someone already patched the sources to create rrd files with the real values? If so, can I have the patch :)
Otherwise I have to brush up my C knowledge and do it myself.
Are you needing Windows or Unix boxes?  If Unix you are in luck, you are probably already collecting mem_free in vmstat.rrd, in fact if you are looking at Solaris, there is already a standard graph definition (vmstat6) you can configure in TRENDS.  This doesnt work óut of the box'on the vmstat.rrd collected by linux servers, but you could probably create a version that gives you something.
It's for windows boxes.


Stef
list Stef Coene · Thu, 7 Mar 2019 16:08:20 +0100 ·
Hi,

In case someone is interested, I created a patch for this:

- renamed function get_mem_percent to get_percent

- created new function get_percent
	-> this searches for the 3 values for used, total and percent

- renamed function do_memory_rrd_update to do_memory_rrd_update_pct

- created new function do_memory_rrd_update
	-> the rrd created start with absolute-memory and contains the used and 
total values


Stef