Template relationship

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Template relationship

Post 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
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Template relationship

Post 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.
Former Nagios employee
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Template relationship

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Template relationship

Post 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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Template relationship

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Template relationship

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Template relationship

Post by WillemDH »

Ludmill,

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

Thread can be closed. :)

Willem
Nagios XI 5.8.1
https://outsideit.net
Locked