Hosts "disappearing" and "reappearing"

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
kryptonite30
Posts: 2
Joined: Thu Aug 03, 2017 4:28 pm

Hosts "disappearing" and "reappearing"

Post by kryptonite30 »

Hi, I'm having a strange issue where one of my remote hosts keeps disappearing.
Under hosts, I see the following:
Image
And when I periodically refresh the page:
Image

My "beta5" host keeps disappearing and reappearing on me.
When I look into the map, I see this:
Image
The host has a status of pending. And here's when the host decides to show up again:
Image

My question is, is this intended behavior? Is the host supposed to disappear when the checks are running?
In my hosts.cfg, I have the following:
## Default Linux Host Template ##
define host{
name linux-box
use generic-host
check_period 24x7
check_interval 60
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0
}
## Default
define host{
use linux-box
host_name beta5
alias beta5_alias
address beta5
check_period 24x7
check_command check-host-alive
check_interval 30
retry_interval 5
}


I tried adjusting the check_interval and retry_interval but still had the same results.

Any advice on how to fix this?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Hosts "disappearing" and "reappearing"

Post by scottwilkerson »

This is not typical behavior, and in looking at your examples I see when the "refreshed" the last check time was earlier that your current time, I have a feeling that it may be browser cache related.

Is is possible for you to try this in a different browser?

Also, are there any automates systems that change your configurations?

Finally another likely possibility is that somehow you have multiple parent nagios processes running, can you run the following from the command line and return the results
ps -ef|grep bin/nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kryptonite30
Posts: 2
Joined: Thu Aug 03, 2017 4:28 pm

Re: Hosts "disappearing" and "reappearing"

Post by kryptonite30 »

scottwilkerson,

Turns out I had two parent nagios processes running when I ran ps -ef|grep bin/nagios. I killed one of the parent processes and the "disappearing" issue disappeared!

Thank you for your help.
bolson

Re: Hosts "disappearing" and "reappearing"

Post by bolson »

May we close this topic?
Locked