service template and service group

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
c2b2
Posts: 2
Joined: Wed Feb 22, 2017 11:29 am

service template and service group

Post by c2b2 »

Hello,

I created a service group, with some services in it. After that, I created a new servicetemplate which is defining only the even_handler, and I added the previously created servicegroup in it..

Unfortunately the services in the servicegroup are not using the event_handler defined in the service template.
If I manually add the servicetemplate on a specific service, everything works correctly..

Am I doing something wrong?
Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: service template and service group

Post by tmcdonald »

c2b2 wrote:If I manually add the servicetemplate on a specific service, everything works correctly..
Services will not use a template if you do not explicitly tell them to. A common misconception is that you can apply a service template to a service group. What you are actually doing is saying "Any services that use this template should also be added to this service group".
Former Nagios employee
c2b2
Posts: 2
Joined: Wed Feb 22, 2017 11:29 am

Re: service template and service group

Post by c2b2 »

ok understood, there is an easy way to assign a template to x services, rather than having to go inside each single service?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: service template and service group

Post by tmcdonald »

If you have the Enterprise Edition features (or have started the free 60-day trial) you can go to Configure -> Core Config Manager -> Bulk Modification Tool and make changes en-masse there.
Former Nagios employee
Locked