NCPA agent & NRDP
Posted: Thu May 12, 2016 2:39 pm
Hi,
With recent help in regards to Monitoring Linux host I have now setup NRDP on my Nagios Core 4.1.1 and I have installed as test NCPA Agent 1.8.1 for Windows & Linux. I'm also monitoring Windows hosts using NSclient++ & NSCA config and that is working fine, no issues I can Monitor Host, Services, Uptime etc and it works great.
Problem I have is that using NCPA agent Nagios is reporting host is down (see image) but the default services are monitored and reporting fine (see log & image)
For NSCA I know I need to configure nsclient.ini and host_check. Do I need to do similar command in ncpa.cfg and what would that command be? Also apart from default passive checks commands below for NCPA agent are there any examples of specific service checks or disk usage checks.
[passive checks]
%HOSTNAME%|cpu usage = /cpu/percent --warning 20 --critical 30
%HOSTNAME%|swap usage = /memory/swap/percent --warning 40 --critical 80
%HOSTNAME%|memory usage = /memory/virtual/percent --warning 60 --critical 80
NSCA & NCPA/NRDP monitored hosts [root@nagios ~]# tail -f /var/log/messages | grep nagios
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: Server2008-1;cpu usage;2;CRITICAL: percent was 25%,54%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: Server2008-1;swap usage;1;WARNING: percent was 60%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: Server2008-1;memory usage;2;CRITICAL: percent was 81%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: owncloud;cpu usage;0;OK: percent was 0%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: owncloud;swap usage;0;OK: percent was 0%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: owncloud;memory usage;1;WARNING: percent was 65%
May 12 20:09:29 nagios nagios: Warning: The results of host 'Server2008-1' are stale by 0d 0h 0m 59s (threshold=0d 0h 2m 0s). I'm forcing an immediate check of the host.
May 12 20:09:29 nagios nagios: Warning: The results of host 'owncloud' are stale by 0d 0h 0m 59s (threshold=0d 0h 2m 0s). I'm forcing an immediate check of the host.
With recent help in regards to Monitoring Linux host I have now setup NRDP on my Nagios Core 4.1.1 and I have installed as test NCPA Agent 1.8.1 for Windows & Linux. I'm also monitoring Windows hosts using NSclient++ & NSCA config and that is working fine, no issues I can Monitor Host, Services, Uptime etc and it works great.
Problem I have is that using NCPA agent Nagios is reporting host is down (see image) but the default services are monitored and reporting fine (see log & image)
For NSCA I know I need to configure nsclient.ini and host_check. Do I need to do similar command in ncpa.cfg and what would that command be? Also apart from default passive checks commands below for NCPA agent are there any examples of specific service checks or disk usage checks.
[passive checks]
%HOSTNAME%|cpu usage = /cpu/percent --warning 20 --critical 30
%HOSTNAME%|swap usage = /memory/swap/percent --warning 40 --critical 80
%HOSTNAME%|memory usage = /memory/virtual/percent --warning 60 --critical 80
NSCA & NCPA/NRDP monitored hosts [root@nagios ~]# tail -f /var/log/messages | grep nagios
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: Server2008-1;cpu usage;2;CRITICAL: percent was 25%,54%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: Server2008-1;swap usage;1;WARNING: percent was 60%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: Server2008-1;memory usage;2;CRITICAL: percent was 81%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: owncloud;cpu usage;0;OK: percent was 0%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: owncloud;swap usage;0;OK: percent was 0%
May 12 20:09:19 nagios nagios: PASSIVE SERVICE CHECK: owncloud;memory usage;1;WARNING: percent was 65%
May 12 20:09:29 nagios nagios: Warning: The results of host 'Server2008-1' are stale by 0d 0h 0m 59s (threshold=0d 0h 2m 0s). I'm forcing an immediate check of the host.
May 12 20:09:29 nagios nagios: Warning: The results of host 'owncloud' are stale by 0d 0h 0m 59s (threshold=0d 0h 2m 0s). I'm forcing an immediate check of the host.