NetXMS Support Forum

English Support => General Support => Topic started by: lmanfield on July 21, 2007, 01:52:42 AM

Title: Percent Free Physical Memory
Post by: lmanfield on July 21, 2007, 01:52:42 AM
Is there any way I can monitor the percent of free physical memory?  Would be most helpful for applying to templates. Thank you. 
Title: Re: Percent Free Physical Memory
Post by: weec on July 21, 2007, 01:59:04 PM
nxagent is not support this feature, please use external(shell) scripts
Title: Re: Percent Free Physical Memory
Post by: Victor Kirhenshtein on July 23, 2007, 09:49:39 AM
Hello!

There is one way to do this, however it's not universal (i.e. you will not be able to use this in generic templates). You can define DCI which collect free physical memory in bytes, and than convert it to percents using transformation script - however, you will need to hardcode total amount of physical memory on target machine into this script. For example, if you have 1GB of memory on your server, you can write the following transformation script for parameter System.Memory.Physical.Free:

($1 / 1073741824) * 100

where $1 represents current  DCI value (which is free physical memory in bytes), 1073741824 is a total amount of physical memory in bytes.

Best regards,
Victor
Title: Re: Percent Free Physical Memory
Post by: lmanfield on July 23, 2007, 07:09:32 PM
Thanks.  I'll use that workaround.  Hope to see this added in a future release.d 
Title: Re: Percent Free Physical Memory
Post by: surya on November 14, 2007, 06:41:08 AM
is this feature available in the latest release NetXMS 0.2.19 ?
if present ?can you list the steps to configure ?
thank you .
Title: Re: Percent Free Physical Memory
Post by: surya on November 14, 2007, 07:08:55 AM
i figured it  out . i was little confused about the arguments .