Remove Host from service check breaks config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Remove Host from service check breaks config

Post 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
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Remove Host from service check breaks config

Post 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?
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Remove Host from service check breaks config

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Remove Host from service check breaks config

Post 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.
Locked