Page 1 of 3

Template Inheritance contact options

Posted: Thu Oct 10, 2013 8:24 am
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?

Re: Template Inheritance contact options

Posted: Thu Oct 10, 2013 2:07 pm
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).

Re: Template Inheritance contact options

Posted: Thu Oct 10, 2013 2:42 pm
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?

Re: Template Inheritance contact options

Posted: Thu Oct 10, 2013 4:06 pm
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

Re: Template Inheritance contact options

Posted: Fri Oct 11, 2013 3:14 am
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?

Re: Template Inheritance contact options

Posted: Fri Oct 11, 2013 10:23 am
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.

Re: Template Inheritance contact options

Posted: Mon Oct 14, 2013 9:29 am
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

Re: Template Inheritance contact options

Posted: Mon Oct 14, 2013 4:11 pm
by abrist
I think this is a bug and I am looking into it now. Do all other groups/template options work?

Re: Template Inheritance contact options

Posted: Mon Oct 14, 2013 5:03 pm
by abrist
I have confirmed the bug. Please use the Legacy CCM for these options until we can fix it in the new CCM.

Re: Template Inheritance contact options

Posted: Tue Oct 15, 2013 2:04 am
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?