Passive alert server -disappearing from Nagios web console

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.
Locked
jsbsmd
Posts: 7
Joined: Wed Feb 05, 2014 12:32 pm

Passive alert server -disappearing from Nagios web console

Post by jsbsmd »

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.

nagios log.

Code: Select all

[1527010794] PASSIVE SERVICE CHECK: jsb-pc2-passive;CPU Usage;0;OK: Percent was 21.37 %
[1527010794] PASSIVE SERVICE CHECK: jsb-pc2-passive;Disk Usage;0;OK: Used_percent was 43.90 %
[1527010794] PASSIVE SERVICE CHECK: jsb-pc2-passive;Memory Usage;0;OK: Used memory was 69.20 % (Available: 2.47 GiB, Total: 8.00 GiB, Free: 2.47 GiB, Used: 5.53 GiB)
[1527010794] PASSIVE SERVICE CHECK: jsb-pc2-passive;Process Count;0;OK: Process count was 242
[1527010794] PASSIVE SERVICE CHECK: jsb-pc2-passive;Swap Usage;0;OK: Used swap was 55.10 % (Total: 19.71 GiB, Used: 10.86 GiB, Free: 8.85 GiB)
[1527011095] PASSIVE SERVICE CHECK: jsb-pc2-passive;Memory Usage;0;OK: Used memory was 74.00 % (Available: 2.08 GiB, Total: 8.00 GiB, Free: 2.08 GiB, Used: 5.92 GiB)
[1527011095] PASSIVE SERVICE CHECK: jsb-pc2-passive;Swap Usage;0;OK: Used swap was 56.50 % (Total: 19.71 GiB, Used: 11.14 GiB, Free: 8.57 GiB)
[1527011095] PASSIVE HOST CHECK: jsb-pc2-passive;0;OK: Agent_version was ['2.1.4']

Any Ideas?
Attachments
5-22-2018 1-48-42 PM.png
Last edited by tmcdonald on Wed May 23, 2018 1:16 pm, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
jsbsmd
Posts: 7
Joined: Wed Feb 05, 2014 12:32 pm

Re: Passive alert server -disappearing from Nagios web conso

Post by jsbsmd »

Just to add to more confusion, when I restart nagios, it shows good check results and then goes to error.

ie:

Code: Select all

[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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Passive alert server -disappearing from Nagios web conso

Post by tmcdonald »

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.
Former Nagios employee
jsbsmd
Posts: 7
Joined: Wed Feb 05, 2014 12:32 pm

Re: Passive alert server -disappearing from Nagios web conso

Post by jsbsmd »

You maybe on to something. I am running nagios and did just install OMD from check_mk. I wonder if they are conflicting

root@ubuntu:/usr/local/nagios/libexec# ps -ef |grep bin/nagios
root 2076 26695 0 15:31 pts/1 00:00:00 grep --color=auto bin/nagios
nagios 2558 1 0 May04 ? 00:11:08 /usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg
nagios 2683 1 0 May21 ? 00:04:19 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 2684 2683 0 May21 ? 00:00:16 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2685 2683 0 May21 ? 00:00:16 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2686 2683 0 May21 ? 00:00:16 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2687 2683 0 May21 ? 00:00:16 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2688 2683 0 May21 ? 00:00:16 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2689 2683 0 May21 ? 00:00:16 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2696 2683 0 May21 ? 00:00:12 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
jsbchec+ 15868 1 0 May19 ? 00:03:49 /omd/sites/jsbcheckmk/bin/nagios -ud /omd/sites/jsbcheckmk/tmp/nagios/nagios.cfg
nagios 26407 1 0 12:46 ? 00:00:16 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 26408 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 26409 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 26410 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 26412 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 26413 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 26414 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 26416 26407 0 12:46 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root@ubuntu:/usr/local/nagios/libexec#
jsbsmd
Posts: 7
Joined: Wed Feb 05, 2014 12:32 pm

Re: Passive alert server -disappearing from Nagios web conso

Post by jsbsmd »

Looks like that solved the problem.

Thank You.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Passive alert server -disappearing from Nagios web conso

Post by tmcdonald »

Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
Locked