Need to modify the memory check

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

Need to modify the memory check

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Need to modify the memory check

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked