Page 1 of 1

RHEL8.3 / 5.7.4 - hosts disappearing when editing services

Posted: Thu Nov 12, 2020 3:22 am
by hunterorbit
Hi

We recently performed a configuration backup/restore while moving from RHEL6 to RHEL8.3. During the time of the move we were running NagiosXI 5.7.3, but even after upgrading to 5.7.4 we are seeing the issue below.

Whenever we edit a service which has hosts associated with it the associations disappear after we click save. For example, I can edit a service in CCM, note that the 'Manage Hosts' count is 1, change a random argument, hit save, go back in to edit again and the 'Manage Hosts' count will be 0.

When I go to Apply Config it fails as the service has no hosts associated with it.

I've tried doing the delete config/write config/verify config round-trip but the verify fails with the same error above.

If I manually edit the service CFG file to add in the hosts then I can verify, but they disappear again the second I edit the service in CCM.

Any ideas ?

Thanks,
Mark.

Re: RHEL8.3 / 5.7.4 - hosts disappearing when editing servic

Posted: Thu Nov 12, 2020 3:15 pm
by tgriep
Newer versions of MYSQL which come on RHEL8, has to have some changes on how the data is written and the following article has the instructions to do the change as I think this is the issue you are having.
https://support.nagios.com/kb/article/n ... s-780.html

FYI, you should not be editing the configuration files on the server directly as when you do an Apply Config in the CCM, they will get overwritten which is what you found.

After the change, see if the changes done in the CCM are saved.

Re: RHEL8.3 / 5.7.4 - hosts disappearing when editing servic

Posted: Fri Nov 13, 2020 1:22 am
by hunterorbit
Thank you - that resolved the issue.

Re: RHEL8.3 / 5.7.4 - hosts disappearing when editing servic

Posted: Fri Nov 13, 2020 7:18 am
by scottwilkerson
hunterorbit wrote:Thank you - that resolved the issue.
Great!

Locking thread