Change in Memory utilization Calculation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Change in Memory utilization Calculation

Post 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.
You do not have the required permissions to view the files attached to this post.
Last edited by ericssonvietnam on Wed Jun 27, 2018 10:46 am, edited 1 time in total.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Change in Memory utilization Calculation

Post by cdienger »

The first two attachments did not make it. Can you please attach them again?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Change in Memory utilization Calculation

Post by ericssonvietnam »

please check the post now i have edit the same.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Change in Memory utilization Calculation

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Change in Memory utilization Calculation

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Change in Memory utilization Calculation

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: Change in Memory utilization Calculation

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Change in Memory utilization Calculation

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked