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.
This may seem a bit weird, but I have configured a windows pc with the latest version of ncpa and have configured nrdp in passive mode to test alerting.
as you can see from the pic, the active checking is working fine and so is the passive checking however after a period of time the passive check server gets removed from the webgui. Just can't figure out why.
[1527011851] PASSIVE SERVICE CHECK: jsb-pc2-passive;Disk Usage;0;OK: Used_percent was 43.90 %
[1527011910] PASSIVE SERVICE CHECK: jsb-pc2-passive;Memory Usage;0;OK: Used memory was 75.80 % (Available: 1.94 GiB, Total: 8.00 GiB, Free: 1.94 GiB, Used: 6.06 GiB)
[1527011910] PASSIVE SERVICE CHECK: jsb-pc2-passive;CPU Usage;0;OK: Percent was 18.68 %
[1527011910] PASSIVE SERVICE CHECK: jsb-pc2-passive;Disk Usage;0;OK: Used_percent was 43.90 %
[1527011910] PASSIVE HOST CHECK: jsb-pc2-passive;0;OK: Agent_version was ['2.1.4']
[1527011910] PASSIVE SERVICE CHECK: jsb-pc2-passive;Process Count;0;OK: Process count was 248
[1527011910] PASSIVE SERVICE CHECK: jsb-pc2-passive;Swap Usage;0;OK: Used swap was 56.90 % (Total: 19.71 GiB, Used: 11.22 GiB, Free: 8.49 GiB)
[1527011971] PASSIVE SERVICE CHECK: jsb-pc2-passive;Memory Usage;0;OK: Used memory was 76.90 % (Available: 1.85 GiB, Total: 8.00 GiB, Free: 1.85 GiB, Used: 6.15 GiB)
[1527011971] PASSIVE HOST CHECK: jsb-pc2-passive;0;OK: Agent_version was ['2.1.4']
[1527011971] PASSIVE SERVICE CHECK: jsb-pc2-passive;CPU Usage;0;OK: Percent was 32.32 %
[1527011971] PASSIVE SERVICE CHECK: jsb-pc2-passive;Swap Usage;0;OK: Used swap was 57.50 % (Total: 19.71 GiB, Used: 11.34 GiB, Free: 8.37 GiB)
[1527011971] PASSIVE SERVICE CHECK: jsb-pc2-passive;Disk Usage;0;OK: Used_percent was 43.90 %
[1527011971] PASSIVE SERVICE CHECK: jsb-pc2-passive;Process Count;0;OK: Process count was 250
[1527012034] Error: Got check result for service 'CPU Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012034] Error: Got host checkresult for 'jsb-pc2-passive', but no such host can be found
[1527012034] Error: Got check result for service 'Disk Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012034] Error: Got check result for service 'Process Count' on host 'jsb-pc2-passive'. Unable to find service
[1527012034] Error: Got check result for service 'Swap Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012034] Error: Got check result for service 'Memory Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012094] Error: Got check result for service 'CPU Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012094] Error: Got check result for service 'Swap Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012094] Error: Got check result for service 'Memory Usage' on host 'jsb-pc2-passive'. Unable to find service
[1527012094] Error: Got check result for service 'Process Count' on host 'jsb-pc2-passive'. Unable to find service
[1527012094] Error: Got host checkresult for 'jsb-pc2-passive', but no such host can be found
Last edited by tmcdonald on Wed May 23, 2018 1:15 pm, edited 1 time in total.
Reason:Please use [code][/code] tags around long output
Sounds like you might have two competing Nagios Core processes running. Please run the following as root and post the output:
ps -ef | grep bin/nagios
You should see two nagios -d processes and a number of workers. If you have more than that, you should kill off all the processes and make sure only one is running.