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.
Configuration Applied, but see "Not Applied" next to Hosts
Re: Configuration Applied, but see "Not Applied" next to Hosts
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.
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.
Re: Configuration Applied, but see "Not Applied" next to Hosts
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
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.
Best Regards,
Cory Norell
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();"
Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuration Applied, but see "Not Applied" next to Hosts
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.
Ran your code, the system time and sql database time are the same.
Re: Configuration Applied, but see "Not Applied" next to Hosts
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
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.