Page 1 of 1

Template relationship

Posted: Sat Aug 23, 2014 8:05 am
by WillemDH
Hello,

Small question: I have a template that I though was not used at all. it is called 'windows-server'. When I click the information icon, I get:

Code: Select all

Database Relationships for hosttemplate : windows-server
Items labeled as: 'Dependent relationships' will prohibit deletion
Object ID: 3 of table tbl_hosttemplate:
Relation to Services, entry: <nagiosserver>-DRV_Root
I replaced fqdn of my nagios server with <nagiosserver> . When i got the DRV_Root service, I cannot find any link / relationship with this windows-server template:

Code: Select all

Database Relationships for service : <nagiosserver>
Items labeled as: 'Dependent relationships' will prohibit deletion
Object ID: 2 of table tbl_service:
Relation to Contacts, entry: nagiosadmin
Relation to Contactgroups, entry: xi_dig_dummy_contact_group
Relation to Hosts, entry: <nagiosserver>
Relation to Servicegroups, entry: all_svc_dummy_servicegroup
Relation to Servicetemplates, entry: dig-svc-lin-drv-root-prio1
Any idea why it shows a relationship between <nagiosserver>-DRV_ROOT and hosttemplate windows-server?

Grtz

Willem

Re: Template relationship

Posted: Mon Aug 25, 2014 10:50 am
by tmcdonald
Most likely the host that the <nagiosserver>-DRV_ROOT service is attached to is using the windows-server template somewhere along in its chain.

Re: Template relationship

Posted: Thu Sep 04, 2014 6:42 am
by WillemDH
Hey Trevor,

I have been looking everywhere, but can't find where the dependency for this template can be found... The host where the service is related to is the Nagios XI server itself. The Nagios XI server has another host template hat has no relationships with the windows-server template.

I'm a bit lost here :?:

Grtz

Willem

Re: Template relationship

Posted: Thu Sep 04, 2014 11:52 am
by lmiltchev
I believe this is a bug - one of our developers is looking into this as we speak. When you click on the "Relationship info" button under the CCM, you should see:

For the service templates: "Relation to Services, ..."
For the host templates: "Relation to Hosts, ..."

I believe the check is being performed on a wrong table and the wrong entry is pulled (with the same ID).

Re: Template relationship

Posted: Thu Sep 04, 2014 3:07 pm
by WillemDH
TY. I also suspect something is wrong here. I'm not able to find the relationship and hence can't delete the template.

Grtz

Willem

Re: Template relationship

Posted: Thu Sep 04, 2014 3:34 pm
by lmiltchev
I expect this to be fixed in the next release of Nagios XI. BTW, I had a similar message on my test box, but I was able to delete the template...
example01.PNG
example02.PNG

Re: Template relationship

Posted: Fri Sep 05, 2014 2:01 am
by WillemDH
Ludmill,

You are correct. I was able to delete the template. Thanks!

Thread can be closed. :)

Willem