Hi,
I was trying to disable an host from the CCM, but it was not allowing me for it had some "dependencies".
I tried to delete it. the system allowed me, but when I tried to apply the configuration it threw some errors and had to revert to the latest snapshot.
Luckily I did remember that I did add the host in a service in order to "exclude" it. once I removed the "eclusion" dependency from the service I was then able to disable and in a second time delete the host without errors.
is that a normal behavior? if so, how can I find all the relationships that a host has that might prevent me from disabling/deleting it?
I'm running Nagios XI 5.6.13
best regards,
Luca
cannot disable or delete host when "exclude" dependency set
Re: cannot disable or delete host when "exclude" dependency
It is normal for a host to have dependencies. It is recommended to remove all services associated with a host during removal. Are you asking if an exclusion should count as a dependency?
I can recommend several resources ( see below ) on how dependencies work in Nagios and how to remove them.
core doc = https://assets.nagios.com/downloads/nag ... ncies.html
video = https://youtu.be/WFiRAxN6eDY
I can recommend several resources ( see below ) on how dependencies work in Nagios and how to remove them.
core doc = https://assets.nagios.com/downloads/nag ... ncies.html
video = https://youtu.be/WFiRAxN6eDY
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: cannot disable or delete host when "exclude" dependency
I am familiar with these different dependencies and that's why we mostly use HostGroups to assign services. We organized all different services into hostgroups to easily assign the same services to multiple host at once.
One example of hostgroup could be "Windows Server OS" that automatically associates the host with the following services:
- CPU usage
- Memory usage
- Drive C usage
- Uptime
- Windows update
sometimes we need to exclude the "Windows Update" check. since it is very rare, we just add the host inside the service "Windows Update" as exclusion, in this way we don't need to move the service to a different hostgroup and risk to forget to assign it to an important host.
this is the case that was preventing me from deleting the host.
how can I easily find if an host is present in any other service like in this case? the error message when deleting can give me a clue, otherwise do I have to go thru all hostgroups and look for the host?
One example of hostgroup could be "Windows Server OS" that automatically associates the host with the following services:
- CPU usage
- Memory usage
- Drive C usage
- Uptime
- Windows update
sometimes we need to exclude the "Windows Update" check. since it is very rare, we just add the host inside the service "Windows Update" as exclusion, in this way we don't need to move the service to a different hostgroup and risk to forget to assign it to an important host.
this is the case that was preventing me from deleting the host.
how can I easily find if an host is present in any other service like in this case? the error message when deleting can give me a clue, otherwise do I have to go thru all hostgroups and look for the host?
Re: cannot disable or delete host when "exclude" dependency
This won't help if it's already deleted but if you go to Admin > Core Config Manager > Hosts and click the little blue circle with an "i" in it to the far right of the host, it will show you the relationships.
After talking with development on this I've submitted a bug report:
After talking with development on this I've submitted a bug report:
Code: Select all
NEW TASK created - Nagios XI Bug Report: XI - Deleting host that is in escalation/dependency causes an invalid configurationRe: cannot disable or delete host when "exclude" dependency
This only failed for me with escalations, not dependencies, but I submitted it anyways.
Re: cannot disable or delete host when "exclude" dependency
thanks! that did help.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: cannot disable or delete host when "exclude" dependency
Bug report files, locking threadlucasari wrote:thanks! that did help.