XI updates not written to cfg files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
robertl
Posts: 1
Joined: Tue May 14, 2024 9:56 am

XI updates not written to cfg files

Post by robertl »

We have a strange problem with Nagios XI version 2024R1.1.1 (Nagios Core 4.4.13).
Any updates to config using the UI or the REST api are NOT written to the backend files after applying the configuration.
This makes it so that checks for hosts and services continue to use the old config. I can tell that the database has the updated config because if you navigate back to those in the UI, I can see the changes. But the changes are NOT written to the cfg files.
Anyone experience this? Is this a bug?
User avatar
danderson
Posts: 234
Joined: Wed Aug 09, 2023 10:05 am

Re: XI updates not written to cfg files

Post by danderson »

Thanks for reaching out @robertl,

I would make sure that ndo has the correct database password for the nagios user. You can view the username and password in /usr/local/nagios/etc/ndo.cfg.

If that is correct but you are still having issues, verify the nagiosql database password. You can view it with /usr/local/nagiosxi/scripts/get_mysql_passwords.sh
robertl
Posts: 1
Joined: Tue May 14, 2024 9:56 am

Re: XI updates not written to cfg files

Post by robertl »

@danderson - both passwords are correct.
I can connect to the local mysql databases as both the ndoutils and nagiosql users. I'm not entirely sure why there are multiple databases in play here, but it seems that whatever process is supposed to copy data from one to the other is not working properly for updates to hosts/services. Whenever I make a change in the user interface to an existing object, I can see the change represented in the 'nagiosql' database that the 'nagiosql' user connects to, but the change is not written to the 'nagios' database that the 'ndoutils' user connects to. The change is also not written to the cfg files. Whats even more strange is that when I use the user interface to view the configuration snapshot, it shows that there were no changes...no diff - even though there absolutely was and the change is present in one database but not the other. Deletes and inserts seem to work as expected.
I also do NOT have multiple nagios processes running. It just seems like nagios cannot see any difference in the config applied to CCM (or via the REST api) and just doesn't bother writing anything.
Last edited by robertl on Mon Apr 21, 2025 9:46 am, edited 4 times in total.
User avatar
danderson
Posts: 234
Joined: Wed Aug 09, 2023 10:05 am

Re: XI updates not written to cfg files

Post by danderson »

I'm not sure what the cause of that could be. I would suggest opening a support ticket at https://answerhub.nagios.com/support/s/ so that the issue can be further diagnosed.
Post Reply