I have a situation where I need to rename a host.
I did this via Bulk Renaming Tool, renamed the host then went to Monitoring/Hosts and renamed the address of the hosts (so it will be mapped with the hostname given in /etc/hosts).
Once done I applied the config, but it seems it hangs.
when looking at the log (/usr/local/nagiosxi/var/cmdsubsys.log), I observed this:
I searched for the term "Another reconfigure process is still running, sleeping." which I then followed the KB https://support.nagios.com/kb/article.php?id=34Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
500 Internal Server Error
2018-10-24 17:06:54 ERROR 500: Internal Server Error.
NAGIOSQL WRITE CONFIGS FAILED! \n
OUTPUT=NAGIOSQL WRITE CONFIGS FAILED!\n
RETURNCODE=5
From here I did the Fixing the sudoers Entries and changed the following values from /etc/php.ini to these:
Restarted the httpd daemon, but I still could see the same behavior in the logs. Strangely enough, this ONLY happens if I tend to rename a host.max_execution_time = 100
max_input_time = 100
memory_limit = 512M
Note that the host contains services assigned to it.
Nagios XI is version 5.4.13 running on a CentOS 6.10