Page 1 of 1

Issue in the output of memory usage using NCPA

Posted: Thu Mar 31, 2022 1:31 pm
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'