Change in Memory utilization Calculation
Posted: Wed Jun 20, 2018 12:06 am
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.
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.