Issue in the output of memory usage using NCPA

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ashok.verma
Posts: 19
Joined: Tue May 25, 2021 7:24 am

Issue in the output of memory usage using NCPA

Post by ashok.verma »

If total memory is 125 & used memory is 13 then by doing (% calculation) 13/125*100 we got 10.4 which is the usage percentage.

When running a check from Nagios it shows Memory usage was 73.50 % which is wrong and causing lots of alarms.

Output from Nagios:

OK: Memory usage was 73.50 % (Available: 33.18 GiB, Total: 125.26 GiB, Free: 30.30 GiB, Used: 12.61 GiB) | 'available'=33.18GiB;;; 'total'=125.26GiB;;; 'free'=30.30GiB;;; 'used'=12.61GiB;;;

Here I am using NCPA
check_ncpa.py -H $HOSTADDRESS$ $ARG1$
-t 'uaiZTWko4tW5hZ5G' -P 5693 -M memory/virtual -u 'Gi' -w '90' -c '95'
Locked