Template Inheritance contact options

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

Template Inheritance contact options

Post by WillemDH »

Just realised something less funny. I started using templates some time ago, but as I left the contact options to standard and configured the template with soem default contacts, this implies that from the moment a user wants to add a contact with the XI interface (re-configure service), the default contact would no longer be set as contact.
So this means I would have to configure the contact options with '+', so the contacts are added.

Is this a corrrect assumption?

Can I configure this contact + option in the template? (please say yes) And would this be inherited by the services?
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 Inheritance contact options

Post by lmiltchev »

If you need to use additive inheritance, you will need to configure your services via the CCM. Using "Configure->Reconfigure" would override the template, and would "reset" the "+" to "standard" (the template would not be used at all).
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 Inheritance contact options

Post by WillemDH »

So you are saying that from the moment someone uses the Configure -> Reconfigure, the template would be overwritten and the service contact option '+' is reset to 'standard'?
Does this mean I would have to configure all my services with '+' for their contacts in order to let people choose for which service they want to be contact in XI?
If so, what would be the fastest way to configure 1300 services wth this '+' option?
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Template Inheritance contact options

Post by abrist »

WillemDH wrote: So you are saying that from the moment someone uses the Configure -> Reconfigure, the template would be overwritten and the service contact option '+' is reset to 'standard'?
Currently, yes.
WillemDH wrote:Does this mean I would have to configure all my services with '+' for their contacts in order to let people choose for which service they want to be contact in XI?
I presume so.
WillemDH wrote:If so, what would be the fastest way to configure 1300 services wth this '+' option?
CCM or possibly a custom db query.

My suggestion would be to file a feature request @ http://tracker.nagios.com
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Template Inheritance contact options

Post by WillemDH »

Ok, Andy. Thanks. I made http://tracker.nagios.com/view.php?id=453 as I can' find any info on custom db queries. Myabe the fastest way would be to just delete all the services and recreate them using the bulk cloning wizard. Would the perfdata be deleted? If no, would the perfdata be reusable once I recreate the service with the same name?
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Template Inheritance contact options

Post by slansing »

If the host and service names are the EXACT same as the templates and RRDs they use, the perfdata "should" still be valid. I'd test this on one of your less crucial services to see what happens.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Template Inheritance contact options

Post by WillemDH »

Hello,

I have a plan to start fixing things. I'm just going to try reconfiguring one service template and it's servcies a day.

But I noticed a small problem. Setting the contact options and contact group options to '+' was no problem, but as I thought it would be interesting to do the same for servicegroup option, it seemed this did not work.

When I set the servicegroup option to '+' , Save and Apply. The servicegroup option for the service is reset to 'Standard'.

Is this normal behaviour. This means it's not possible to edit the servicegroups with the XI Configure => Re-configure as the template servicegroup would be overwritten.

Any ideas, tips? Could someone test trying to set the servicegroup option to '+'?

Willem
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Template Inheritance contact options

Post by abrist »

I think this is a bug and I am looking into it now. Do all other groups/template options work?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Template Inheritance contact options

Post by abrist »

I have confirmed the bug. Please use the Legacy CCM for these options until we can fix it in the new CCM.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Template Inheritance contact options

Post by WillemDH »

Ok, thanks. I'll wait a bit to roll out all my services again. Do you want me to make a bug report?
Nagios XI 5.8.1
https://outsideit.net
Locked