Page 1 of 1
Memory Linux check result not accurate
Posted: Tue Sep 14, 2021 11:43 am
by carlsnyman
The memory is not accurate and does not correlate with actual system memory. See below.
System values calulated using free command.
host 1: Oracle Linux Server release 7.9
Code: Select all
NCPA memory: 76.5 %
System memory: 32.73 %
host 2: Oracle Linux Server release 6.10
Code: Select all
NCPA memory: 20.7 %
System memory: 98.17 %
Re: Memory Linux check result not accurate
Posted: Wed Sep 15, 2021 10:49 am
by ssax
What version of NCPA is the remote system running?
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -t 'yourtoken' -M 'system/agent_version'
I'm labbing this up to investigate further.
EDIT: I labbed it up with OL7 and they are matching on mine:
NCPA: 11.70%
System: 3693/310 = 11.91%
Code: Select all
[root@xid ~]# /usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -t 'yyyyyyy' -P 5693 -M memory/virtual -u Gi -w 50 -c 80
OK: Memory usage was 11.70 % (Available: 3.19 GiB, Total: 3.61 GiB, Free: 2.90 GiB, Used: 0.30 GiB) | 'available'=3.19GiB;;; 'total'=3.61GiB;;; 'free'=2.90GiB;;; 'used'=0.30GiB;;;
Code: Select all
[root@oracle7 ~]# free -m
total used free shared buff/cache available
Mem: 3693 310 2973 8 408 3262
Swap: 1639 0 1639