Saving a service removes the managed hosts
Posted: Thu Oct 09, 2025 11:31 am
We are trying to upgrade to a new database server. Our current install is NagiosXI 5.11.2
We know this is old, and we are trying to upgrade it, which requires us to migrate to a more modern DB server.
We have had no issues creating the DB(s) and grants for the user; as a matter of fact, Nagios loads just fine, and everything seems to work until you try to make a change.
To clarify, all DB users can write, and some changes are implemented successfully. We have identified a reproducible issue that happens every time.
If we go to CCM and open a service, any service, and without even changing anything, just click "Save," the service changes need to be applied.
Now, if we go back into that service, we will see that the "manage Hosts" is now missing (0). And of course, trying to apply this change fails with the error "Service has no hosts and/or service_description"
So anytime we save a service (or try to create a new one), the "manage Hosts" is not saved, or if it previously existed, is removed.
We know this is old, and we are trying to upgrade it, which requires us to migrate to a more modern DB server.
We have had no issues creating the DB(s) and grants for the user; as a matter of fact, Nagios loads just fine, and everything seems to work until you try to make a change.
To clarify, all DB users can write, and some changes are implemented successfully. We have identified a reproducible issue that happens every time.
If we go to CCM and open a service, any service, and without even changing anything, just click "Save," the service changes need to be applied.
Now, if we go back into that service, we will see that the "manage Hosts" is now missing (0). And of course, trying to apply this change fails with the error "Service has no hosts and/or service_description"
So anytime we save a service (or try to create a new one), the "manage Hosts" is not saved, or if it previously existed, is removed.