Page 1 of 1
Configuration Applied, but see "Not Applied" next to Hosts
Posted: Fri Oct 25, 2024 12:12 pm
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.
Re: Configuration Applied, but see "Not Applied" next to Hosts
Posted: Fri Oct 25, 2024 1:07 pm
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.
Re: Configuration Applied, but see "Not Applied" next to Hosts
Posted: Mon Oct 28, 2024 7:38 am
by gregbeyer
grep'd the log -- no errors pertaining to apply config. Only something about my top alert producers report.
Re: Configuration Applied, but see "Not Applied" next to Hosts
Posted: Mon Oct 28, 2024 3:21 pm
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
Re: Configuration Applied, but see "Not Applied" next to Hosts
Posted: Tue Oct 29, 2024 7:03 am
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.
Re: Configuration Applied, but see "Not Applied" next to Hosts
Posted: Tue Oct 29, 2024 4:48 pm
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