Page 1 of 1

Hosts "disappearing" and "reappearing"

Posted: Thu Aug 03, 2017 4:46 pm
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?

Re: Hosts "disappearing" and "reappearing"

Posted: Fri Aug 04, 2017 12:48 pm
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

Re: Hosts "disappearing" and "reappearing"

Posted: Mon Aug 07, 2017 9:26 am
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.

Re: Hosts "disappearing" and "reappearing"

Posted: Mon Aug 07, 2017 3:34 pm
by bolson
May we close this topic?