Skip to main content

Hi, I am migrating my monitoring configuration from NagiosCore and NagiosQL to Centreon, but I have a problem with the service templates with which I am quite desperate.

Unlike with host templates (which you can add more than one template per host) in services, Centreon only lets you add one template.

I have already seen that in Centreon this works using inheritance, but is there any other way to make it work by groups?

As I said, I currently add to each service several templates which have an order that matters.
I have a problem since for each line you see in the image below (these are all the possible combinations in my monitoring), I would have to create a lot of different "routes" duplicating templates.

Let's see if I explain better with an example...

If I want my template A to follow the following inheritance, A->B->C->D but then I want another service to follow the following inheritance A->E->C->D, with the Centreon inheritance system, I understand that I should create, 2 templates A (A1, A2), one B and another E, and then the combination C-D if I could reuse it, is that right? So wgat happens if thn I want to use the following inheritance F->A->D, I need to create another A template?? It’s crazy... 

Currently I take for each service the templates that I want and I put them in the order I want, I see more logic and more reusability...

Any help????

Hello

 

I’m not understanding this : 

Unlike with host templates (which you can add more than one template per host) in services, Centreon only lets you add one template.

 

that is false

you can add how many “Host Template” as you want on a host

here is an example of a host windows with active directory, you can see 3 host template

 

each host template has service template linked to it or can inherit from another host template

 

you should create as much host template as you want or need and order them in the host config page

in your example you should have a

  • host template A
  • Host template B
  • host template C->D
  • Host template E

and on you on your 2 host

  • host 1 add A, B, C->D
  • host 2 add A, E, C->D

here is what the config page says about inheritance and order of precedence

 


Hi @christophe.niel-ACT,

Thanks for the reply, but you didnt understand me. I said that on hosts, I can add more than one host templates (the same as you said).

But my issue is about SERVICE templates, where it can only be linked one template and then work with inheritance… Which for me is a BIG issue because I think the only solution is to duplicate and rename the templates…

 

What do you think about this?


indeed I misunderstood, I think I understand based on your screenshot

you want different options, notification/check period

 

I didn’t go as complex as this, I have multiple “client” so I have a generic host template (no service) with all the notification option for this specific client (email, period etc...) 

then all my service template have none of this option, they inherit from the default root service and from the first host template

 

if I have specific user group I add a host template for this notification group, or different period as the 2nd host template in order to overide the default for my client

but this is not granular, this applies to all the services linked to this specific host

 

this is working because the contact and periods on a service is inherited from the host if no option are given on the service template, and you can add or overide on a specific service with the check box on the contacts option in notification.

unfortunately everything is not inheritable like the notification type or command, so I don’t think all you want is doable as is, maybe someone with more advanced knowledge can help you


Thanks for the reply @christophe.niel-ACT.

 

I dont know if I fully undestand everything you told me, but I get an idea. I will try to do what I have understand and continue looking for solutions.


Reply