5.8.3 not saving the host_name for services
Posted: Thu Apr 15, 2021 2:31 pm
Running on Ubuntu 20.04 64bit. I upgraded from 5.7.3 to 5.8.3.
The issue I am having is when i edit a service and click the save button the Managed Hosts are not saved. I apply the configuration and I get the error "Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/vm-master.cfg', starting on line 304)". I go back to edit the service in CCM and the Managed Host is back at '0' and no host is listed. It appears that the Managed Hosts selection does not get saved.
Here is an example of the steps.
I do the Delete, Write and Verify of the files with no errors.
I go into CCM and Services. Click on a service to edit.
There is a Managed Hosts entry. I can even click on the View Config button to look at the config file and see the hosts_name tag. I click on the Save button and then the Apply Configuration button Now I get the error I go back to edit this same service and now there is no Managed Hosts I go through the steps to add the host again and click the Save and Apply Configuration buttons again and get the same error.
The only way I have found to get past this is to deactivate this service, then I can successfully Apply the configuration. Of course the service is now deactivated.
I have even tried to import this file from my 5.7.3 backup and I get the same result.
I delete the service, apply the config. Service is gone. I place the file from the backup into the import folder and go through the import. The import indicates it is successful. The host_name is in the imported file. I apply the config and same error again.
When I go through the Delete, Write and Verify to create the files from the database I look in the files under services folder. All the files include the host_name tag inside each service in all the files except for the file with the service I tried to update. That file is missing the host_name tag. This happens with any service I edit.
The issue I am having is when i edit a service and click the save button the Managed Hosts are not saved. I apply the configuration and I get the error "Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/vm-master.cfg', starting on line 304)". I go back to edit the service in CCM and the Managed Host is back at '0' and no host is listed. It appears that the Managed Hosts selection does not get saved.
Here is an example of the steps.
I do the Delete, Write and Verify of the files with no errors.
I go into CCM and Services. Click on a service to edit.
There is a Managed Hosts entry. I can even click on the View Config button to look at the config file and see the hosts_name tag. I click on the Save button and then the Apply Configuration button Now I get the error I go back to edit this same service and now there is no Managed Hosts I go through the steps to add the host again and click the Save and Apply Configuration buttons again and get the same error.
The only way I have found to get past this is to deactivate this service, then I can successfully Apply the configuration. Of course the service is now deactivated.
I have even tried to import this file from my 5.7.3 backup and I get the same result.
I delete the service, apply the config. Service is gone. I place the file from the backup into the import folder and go through the import. The import indicates it is successful. The host_name is in the imported file. I apply the config and same error again.
When I go through the Delete, Write and Verify to create the files from the database I look in the files under services folder. All the files include the host_name tag inside each service in all the files except for the file with the service I tried to update. That file is missing the host_name tag. This happens with any service I edit.