Nagios Core 4.3.4 - Host Appear - Disappear

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.
ogonzales1209
Posts: 7
Joined: Wed Sep 05, 2018 9:57 am

Nagios Core 4.3.4 - Host Appear - Disappear

Post by ogonzales1209 »

Hi,

I have the following problem, i have 711 host in my nagios core (version 4.3.4) but, some hosts appear and disappaear without action of my part.

result of /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg:

Checking objects...
Checked 2749 services.
Checked 711 hosts.
Checked 0 host groups.
Checked 0 service groups.
Checked 13 contacts.
Checked 10 contact groups.
Checked 76 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 711 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods

OK State:

Host Status Totals
Up Down Unreachable Pending
704 7 0 0
All Problems All Types
7 711
Ok State
Ok State
nagios2.JPG (13.77 KiB) Viewed 2918 times
Fail State

Host Status Totals
Up Down Unreachable Pending
662 4 0 0
All Problems All Types
4 666
Fail State
Fail State
nagios1.JPG (14.08 KiB) Viewed 2918 times
When i refresh the page the host appear automatically. Please, your support.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by tgriep »

Can you post the nagios.cfg file from the server so we can check the main configuration file settings?
Also, can you post the first 100 lines of the status.dat file?

One thing to check, is the time settings for the Nagios server stable?
If it is drifting, it could cause the issue you are having.

You may also want to upgrade to the latest version of Core on your server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ogonzales1209
Posts: 7
Joined: Wed Sep 05, 2018 9:57 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by ogonzales1209 »

Hi tgriep,

Attached as requested
status.txt
status
(3.46 KiB) Downloaded 271 times
status.txt
status
(3.46 KiB) Downloaded 271 times
Attachments
nagios.cfg
nagios.cfg
(43.87 KiB) Downloaded 303 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by tgriep »

One thing I see is that the Host Freshness option is not enabled on your server.
# This option determines whether or not Nagios will periodically
# check the "freshness" of host results. Enabling this option
# is useful for ensuring passive checks are received in a timely
# manner.
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
Edit the nagios.cfg file and set the option to 1 which will update the Host checks (Active and Passive) in a more timely manner.

Code: Select all

check_host_freshness=1
Restart nagios and see if that updates the Host Status better.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ogonzales1209
Posts: 7
Joined: Wed Sep 05, 2018 9:57 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by ogonzales1209 »

thanks for the answer tgriep,

I have noticed that the refreshment is faster, but some host still appear and disappear. as a data I tell you that now I have 725 host and at times I still see only 666, even having increased the total number of hosts (725) always decreases to the same value (666)
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by tgriep »

It could be just a browser and the web server timing issue but always going to 666 is weird.
I suggest upgrading to the latest version of Core and you can download that at this link.
https://assets.nagios.com/downloads/nag ... 4.2.tar.gz
Be sure to check out our Knowledgebase for helpful articles and solutions!
ogonzales1209
Posts: 7
Joined: Wed Sep 05, 2018 9:57 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by ogonzales1209 »

Hi,

before making the upgrade, I have another additional verification?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by tgriep »

One more thing to try, edit the /usr/local/nagios/etc/cgi.cfg file and change the following option.

Code: Select all

refresh_rate=90
That option changes the refreshing of the other cgi scripts and the data in the GUI. That may work as well.
Remember to restart the Apache and Nagios processes after changing that setting.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ogonzales1209
Posts: 7
Joined: Wed Sep 05, 2018 9:57 am

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by ogonzales1209 »

Hi,

change the refresh_rate=10 parameter but I still have the same problem, the only option I have is to update?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios Core 4.3.4 - Host Appear - Disappear

Post by npolovenko »

Your issue could be caused by multiple Nagios processes running at the same time. Please run the following commands in order:
service nagios stop
killall -9 nagios
service nagios start
Let me know if this fixes your issue. Also, when did you start noticing this problem? What changes were made to the system prior to that?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked