Page 1 of 1
Remove Host from service check breaks config
Posted: Mon Jul 27, 2015 10:48 am
by sharding
I have a host 'ADMIN11' that has retired so I'm trying to De-activate it, it has dependent relationship services so.....
I go into these services and remove the ADMIN11 host then save an apply the config.
IT then errors saying there is no host for services (err hello there isn't supposed to be)
I have attached the profile
Re: Remove Host from service check breaks config
Posted: Mon Jul 27, 2015 12:23 pm
by ssax
Try going to Configure > Core Config Manager > Tools > Write Config Files
- Click Delete (don't worry, they get rewritten)
- Click Write
- Click Verify, if it verifies without any errors, try to apply configuration again.
Let us know the results.
If you are still getting the error, is ADMIN11 the actual name that we should look for or is actually named something else?
Re: Remove Host from service check breaks config
Posted: Mon Jul 27, 2015 12:40 pm
by sharding
just tried that and same error on the verify
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/DTC-DP Primary Link.cfg', starting on line 16)
the write is successful after the delete (all host/service config files) FYI
yes admin11 is the actual hostname, it is attached to some services hence my trying to remove it from those first before I turned off the host check, the above DTC-DP Primary Link is one of those services.
Thank you
Re: Remove Host from service check breaks config
Posted: Mon Jul 27, 2015 12:48 pm
by ssax
You need to deactivate or delete all the services that were assigned to that host OR put a new host in those services. The services require a host if active.