Page 1 of 1

Change in Memory utilization Calculation

Posted: Wed Jun 20, 2018 12:06 am
by ericssonvietnam
 Alert is configured in Nagios as per below logic which is suggest by Nagios support Team.
0_freee.png


 Alert should be considering like below logic.
1_free.png


Calculation should be done like this which was already shared by NOC team in attached mail.

root@HNRBT1 ~]# free -m
total used free shared buffers cached
Mem: 7985 6335 1650 0 139 481
-/+ buffers/cache: 5714 2271

Swap: 4094 1452 2641


Line 1

• 7985 Indicates memory/physical RAM available for machine.
• 6335 Indicates memory/RAM used by system host.
• 1650 Indicates Total RAM free and available for new process to run.
• 0 Indicates shared memory. This column is obsolete and may be removed in future releases of free.
• 139 Indicates total RAM buffered by different applications in Linux.
• 481 Indicates total RAM used for Caching of data for future purpose.

Line 2

-/+ buffers/cache: 5714 2271

How to calculate the values 5714 and 2271 in line 2:


Total Used (6335) – Total Buffer RAM (139) – Total RAM for caching(481) should constitute the
actual used RAM in the system which is (5714) in the line 2 as above.

Now total Available (7985) – Actual Used (5714) should give the free memory which is 2271 as above output.


++++++++++++++++++++++++++

Is that possible to change the same as per recommendation ? if yes, share the process.

Re: Change in Memory utilization Calculation

Posted: Wed Jun 20, 2018 4:58 pm
by cdienger
The first two attachments did not make it. Can you please attach them again?

Re: Change in Memory utilization Calculation

Posted: Wed Jun 27, 2018 10:47 am
by ericssonvietnam
please check the post now i have edit the same.

Re: Change in Memory utilization Calculation

Posted: Wed Jun 27, 2018 11:23 am
by scottwilkerson
It is not the same but if you add the -n flag to the plugin it subtracts the cached value.

If you would like something different, you can create your own plugins, or modify them to suit your needs.

That is the best part of Nagios architecture, you can make plugins to do exactly what you want.

Re: Change in Memory utilization Calculation

Posted: Wed Jun 27, 2018 11:35 am
by ericssonvietnam
scottwilkerson wrote:It is not the same but if you add the -n flag to the plugin it subtracts the cached value.

If you would like something different, you can create your own plugins, or modify them to suit your needs.

That is the best part of Nagios architecture, you can make plugins to do exactly what you want.


can you help me out in making the same. if possible

Re: Change in Memory utilization Calculation

Posted: Wed Jun 27, 2018 1:19 pm
by scottwilkerson
If you would like us to do custom development you can write clear specifications of the task you want accomplished and submit them to [email protected] for custom development quote.

Re: Change in Memory utilization Calculation

Posted: Wed Jun 27, 2018 1:57 pm
by ericssonvietnam
scottwilkerson wrote:If you would like us to do custom development you can write clear specifications of the task you want accomplished and submit them to [email protected] for custom development quote.
then that will be chargeable. Can you share some document from where i can take a reference to customize the check ?

Re: Change in Memory utilization Calculation

Posted: Wed Jun 27, 2018 3:01 pm
by lmiltchev
Can you share some document from where i can take a reference to customize the check ?
This is what scottwilkerson was talking about (using the "-n" flag in order to subtract the cached value):
https://support.nagios.com/kb/article/n ... y-171.html

Let us know if this helped.