Page 1 of 1

Need to modify the memory check

Posted: Sun Mar 12, 2017 8:18 am
by ericssonvietnam
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.

Re: Need to modify the memory check

Posted: Mon Mar 13, 2017 10:53 am
by mcapra
Can you show us which plugin you are using to check the available memory on these machines? Attaching the plugin itself (if it's not a compiled binary) might be useful.

There's a few different ones and I'd like to be sure we're talking about the same one before making any changes.