Question

use of templates in the configuration of a host

  • 24 January 2022
  • 5 replies
  • 267 views

Badge +1

Hello,

When you want to use the templates in the configuration of a host, you have to click on the "Create Services link et to the template too" button.

I found an article from 2015 in French from a blog: https://blog.zwindler.fr/2015/04/18/centreon-hostgroups-modeles-dhotes-la-reponse-de-centreon-a-mon- item/

Is the solution given at the time still the same? I am using Centreon 20.04.

Thanks in advance


5 replies

Userlevel 3
Badge +9

Hello @Benoît MARCHAL,

You only need to click on “yes” for the field “Create Services link et to the template too” when you add a template to an existing host. You don’t need to when you create a host.

Badge +1

Thank you for your idea.

the problem is that this button systematically returns to 'no' and therefore, if we update the template of the host, it is not taken automatically: you have to come back to each server ("massive change" is possible) but this n It's not easy when you have hundreds of servers to know which ones are impacted.

There must be something I don't understand about the advantage of templates over hostgroups.

cordially

Badge +1

Hello @Benoît MARCHAL ,

The button systematically returns to ‘no’ because, if I don’t say a stupidity, the service is create only when you add the template the first time. The service will no be updated if you change the template after the create (it’s just for a oneshot creation).

Personnaly, I use the services by hostgroup the most and for some needs I create each service myself. I use the hosts templates to complete the host creation form exept the name, alias, ip and relations. 

If you want, I can explain how I do in private message (I suppose you’re french too :) and it will be easily for me in that language ^^)

Have a good day

Sully

Badge +1


Yes, I am French.

I carry out tests using a methodology defined with a person from the Centreon company. But I don't understand how this can simplify the configuration for me.

cordially

Userlevel 5
Badge +11

Hello Benoît, 
Please, let us know when your problem is solved, so we can change its status.
Thanks 🙂

Reply