Configuration Applied, but see "Not Applied" next to Hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Configuration Applied, but see "Not Applied" next to Hosts

Post by gregbeyer »

Running R1.3.0

I have applied config, and after 5 minutes or so (maany dots) CCM eventually comes back with "Configuration applied successfully." and green "Nagios Core was restarted with an updated configuration." So why when I look in CCM / Hosts, all of my hosts have, in the status column, "Not Applied" ?

And several hosts I deactivated before the apply config, remain active after the apply config.

It seems the successful message is not true. Why is this happening? Not finding indication in nagios.log

After five repeated apply configs, I finally got my hosts status to show applied, and the deactivated nodes to show "No" in the Active column.
bbahn
Posts: 320
Joined: Thu Jan 12, 2023 5:42 pm

Re: Configuration Applied, but see "Not Applied" next to Hosts

Post by bbahn »

Hello @gregbeyer,

Can you check the log file /usr/local/nagiosxi/var/cmdsubsys.log? Anything that's going wrong with the applying of configurations should show up there.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Re: Configuration Applied, but see "Not Applied" next to Hosts

Post by gregbeyer »

grep'd the log -- no errors pertaining to apply config. Only something about my top alert producers report.
cnorell
Developer
Posts: 141
Joined: Mon Nov 27, 2017 3:08 pm

Re: Configuration Applied, but see "Not Applied" next to Hosts

Post by cnorell »

gregbeyer,

Are the hosts monitoring as you would expect despite the interface showing that configs haven't applied?

I was doing some digging and it seems that this can happen when your system time and database time are disjointed. It is possible for the configs to be updated properly, but the status in the database not be updated.

You should be able to run the following code (use the correct password for the nagiosxi MySQL user) to check your system time vs. database time.

Code: Select all

grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
mysql -unagiosxi -p<password> -e "SELECT NOW();"
Best Regards,

Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gregbeyer
Posts: 174
Joined: Fri Sep 11, 2020 2:13 pm

Re: Configuration Applied, but see "Not Applied" next to Hosts

Post by gregbeyer »

Thanks cnorell, Other than the nodes that I wanted to de-activate, yes everything else is behaving normally. Once I got the apply config to really take, those nodes, too, are being (not) monitored - deactivated - as I intend.

Ran your code, the system time and sql database time are the same.
cnorell
Developer
Posts: 141
Joined: Mon Nov 27, 2017 3:08 pm

Re: Configuration Applied, but see "Not Applied" next to Hosts

Post by cnorell »

gregbeyer,

I can do some more digging if I find spare time, but unfortunately I can't think of anything else off the top of my head that would cause this issue. It may be difficult to troubleshoot without being on your system. If you have any support entitlements, I would consider opening a ticket for this issue on https://answerhub.nagios.com/support/s/.

Best Regards,

Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Post Reply