Skip to main content
Question

use of templates in the configuration of a host

  • January 24, 2022
  • 5 replies
  • 340 views

Forum|alt.badge.img+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

itoussies
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • January 24, 2022

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.


Forum|alt.badge.img+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


Forum|alt.badge.img+1
  • Steward *
  • January 25, 2022

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


Forum|alt.badge.img+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


fgbetokpanou
Centreonian
Forum|alt.badge.img+11
  • Centreonian
  • January 26, 2022

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