Alert is configured in Nagios as per below logic which is suggest by Nagios support Team.
Alert should be considering like below logic.
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.
Change in Memory utilization Calculation
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Change in Memory utilization Calculation
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.
Re: Change in Memory utilization Calculation
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
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
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.
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.
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Change in Memory utilization Calculation
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
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.
-
ericssonvietnam
- Posts: 239
- Joined: Mon Jun 27, 2016 11:05 pm
Re: Change in Memory utilization Calculation
then that will be chargeable. Can you share some document from where i can take a reference to customize the check ?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.
Re: Change in Memory utilization Calculation
This is what scottwilkerson was talking about (using the "-n" flag in order to subtract the cached value):Can you share some document from where i can take a reference to customize the check ?
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!