Memory Linux check result not accurate

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
carlsnyman
Posts: 1
Joined: Wed Sep 23, 2015 1:53 am

Memory Linux check result not accurate

Post 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 %
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Memory Linux check result not accurate

Post 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
Locked