Need to modify the memory check
Posted: Sun Mar 12, 2017 8:18 am
Need to modify the memory check as it is not raising the alert for the correct threshold limit.
As per the server owner the output of free -m command the check is implemented on the parameters mentioned in the first line of the output but the check should calculate the threshold from the second line which represents the correct free memory output.
below is the explanation for the case :
used =used - ( buffers + cached )
free = free + ( buffer + cached )
which is mentioned in the second line of the command output as shown below
Total-32068,Used=2842,Free=29226.
[user@server1 ~]# free -m
total used free shared buffers cached
Mem: 32068 31838 230 0 201 28794 -------------line 1
-/+ buffers/cache: 2842 29226 --------------line 2 Represents the actual output from which check should calculate the free memory
Swap: 21503 168 21335
Kindly suggest the modification in the check and how to perform it on all the servers.
As per the server owner the output of free -m command the check is implemented on the parameters mentioned in the first line of the output but the check should calculate the threshold from the second line which represents the correct free memory output.
below is the explanation for the case :
used =used - ( buffers + cached )
free = free + ( buffer + cached )
which is mentioned in the second line of the command output as shown below
Total-32068,Used=2842,Free=29226.
[user@server1 ~]# free -m
total used free shared buffers cached
Mem: 32068 31838 230 0 201 28794 -------------line 1
-/+ buffers/cache: 2842 29226 --------------line 2 Represents the actual output from which check should calculate the free memory
Swap: 21503 168 21335
Kindly suggest the modification in the check and how to perform it on all the servers.