Page 1 of 1

Nagios 4.1.1 reload doesn't show hosts. Restart shows hosts

Posted: Thu Sep 24, 2015 11:05 am
by JLT
This issue appears to be similar to the issue reported on Nagios 4.1.2.

We have these devices defined:

Code: Select all

[root@puremgrvm ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 35 services.
        Checked 6 hosts.
        Checked 9 host groups.
        Checked 0 service groups.
        Checked 1 contacts.
        Checked 1 contact groups.
        Checked 65 commands.
        Checked 5 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 6 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
[root@puremgrvm ~]#
From the UI, we see only one host.

Code: Select all

[root@puremgrvm ~]# service nagios restart
Restarting nagios (via systemctl):                         [  OK  ]
After doing the restart, then we see six hosts.

Code: Select all

[root@puremgrvm ~]# service nagios reload
Reloading nagios configuration (via systemctl):            [  OK  ]
After reload, we only see one host.

We did not see this on 4.0.8.

What can we check to resolve this issue on 4.1.1?

Thanks.

Re: Nagios 4.1.1 reload doesn't show hosts. Restart shows h

Posted: Thu Sep 24, 2015 11:21 am
by hsmith
This is very interesting. What is the output of the locale command on your core machine?

Re: Nagios 4.1.1 reload doesn't show hosts. Restart shows h

Posted: Fri Sep 25, 2015 7:13 am
by JLT

Code: Select all

[root@puremgrvma ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Re: Nagios 4.1.1 reload doesn't show hosts. Restart shows h

Posted: Fri Sep 25, 2015 8:02 am
by JLT
Additional results.

Even after switching from reload to restart this is still an issue.

Clicking host multiple times gives random results.

Both IE and Firefox.

Re: Nagios 4.1.1 reload doesn't show hosts. Restart shows h

Posted: Fri Sep 25, 2015 9:39 am
by hsmith
Can you see anything in /usr/local/nagios/var/nagios.log that may give us some indication here?

In addition, can you see any errors in the Firefox network screen? (F12)

Re: Nagios 4.1.1 reload doesn't show hosts. Restart shows h

Posted: Thu Oct 15, 2015 8:54 am
by JLT
This was found to be an issue with the test system deployment scripting that is used to upgrade a monitoring system. The scripting restores data from a backup, that overwrites Nagios files while Nagios is running, and causes a new instance of Nagios to get started. Two instances of Nagios running causes this odd issue. The issue shows on 4.1.1 and 4.0.8. The deployment scripting needs to be fixed.

There have been other forum posts where multiple instances of Nagios are running. Is there any chance something could be added to Core to prevent / stop this from occurring and throw an error? Thanks.

Re: Nagios 4.1.1 reload doesn't show hosts. Restart shows h

Posted: Thu Oct 15, 2015 10:00 am
by hsmith
We don't have an internal feature request system that we use for Nagios Core here, but you can feel free to submit something on our Nagios Core GitHub page.