Failed to Modify Hostgroup or Service to Remove Host
Posted: Wed Feb 04, 2015 11:35 am
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
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