Page 1 of 1

Failed to Modify Hostgroup or Service to Remove Host

Posted: Wed Feb 04, 2015 11:35 am
by metapack
Dear Folks

I am running Nagios XI 2012R1.3 and I had to delete one host from nagios , the INFO showed it has dependent relationship

Database Relationships for host : ABC
Items labeled as: 'Dependent relationships' will prohibit deletion
Object ID: 247 of table tbl_host:
Relation to Hostgroups, entry: GROUP XYZ
Relation to Services, entry: Memory Usage-Memory Usage



Now In order to delete host I understand I have to delete those two relationships first. So I tried to update the hostgroup GROUP XYZ first , removed the host from GUI and applied configuration but nothing happens , the host comes back in the host group. I also tried to update the Service and commit and save the configuration but still nothing happens and the service is still there configured with that host.

Can anyone please advise what I am doing wrong ?

also tried this

./nagiosql_delete_host.php --host=ABC
URL: http://localhost/nagiosql/admin/hosts.php
Unable to delete host lhcasosnfs. Host has dependent relationships

Re: Failed to Modify Hostgroup or Service to Remove Host

Posted: Wed Feb 04, 2015 3:24 pm
by lmiltchev
How the host ABC was added to the XYZ hostgroup?

Core Config Manager->Host Groups->XYZ->Manage Hosts->ABC->Add Selected
Core Config Manager->Hosts->ABC->Manage Host Groups->XYZ->Add Selected

Make sure you actually were able to remove the dependent relationship as it is possible it was set up via "the other method".

After you remove the host from the hostgroup (or hostgroup from the host) and save, do you still see this relationship listed when you click on the host relationship "INFO" button?

Re: Failed to Modify Hostgroup or Service to Remove Host

Posted: Thu Feb 05, 2015 4:42 am
by metapack
Just found out when I did the same operation using LEGACY CCM it worked all as expected

I think the new CCM is buggy on my host , it doesnt do what we do and also dont show any errors which is very alarming.

Re: Failed to Modify Hostgroup or Service to Remove Host

Posted: Thu Feb 05, 2015 11:20 am
by lmiltchev
I think the new CCM is buggy on my host , it doesnt do what we do and also dont show any errors which is very alarming.
You are running a very old version of Nagios XI. Many of the CCM (and other) bugs have been fixed in the newer versions of XI. I would recommend upgrading to the latest revision of XI.

http://library.nagios.com/library/produ ... loads/main

Anyway, I am glad your issue was resolved! I am locking this post. If you have any more questions/issues, please start a new thread.