Template with Services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
HaschkeD
Posts: 50
Joined: Tue Feb 02, 2016 8:35 am

Template with Services

Post by HaschkeD »

Hi,
we use Nagios XI V. 2024 R 1.3.1.
Is it possible to create a host template with default services so that i can copy this template to create new hosts with services?
I can create templates but i find no option to include services.

Regards
Dennis
jsimon
Posts: 339
Joined: Wed Aug 23, 2023 11:27 am

Re: Template with Services

Post by jsimon »

Hi @HaschekeD,

Host and Service templates are separate entities within Nagios XI. You'll need to create a service template, which you can use to add new services with a default configuration you define to existing hosts. I've included a link to our documentation about this here.

Most likely you'll just want to create your service template with all options configured except for the host, and then you can just complete that field when assigning new services to a new host.

Let us know if you have any questions about this or run into any other issues.
kg2857
Posts: 491
Joined: Wed Apr 12, 2023 5:48 pm

Re: Template with Services

Post by kg2857 »

I create hostgroups such as windows and linux then add the hostgroups to services. To add monitoring for a host I just add it to the group.
I also use templates for hosts and services to make both as generic as possible. For example my hosts have only the templat, hostname and address defined.
HaschkeD
Posts: 50
Joined: Tue Feb 02, 2016 8:35 am

Re: Template with Services

Post by HaschkeD »

Thanks @all.....

@jsimon
When i creat a service template i have no option to add services to that template :-(
I thought i can create a service template, add services to that template and add that template to a host......
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: Template with Services

Post by gwesterman »

Hi @HaschkeD,

I could be wrong, but it wouldn't necessarily make sense to add existing services to a service template. Because these services have already been configured, they are already fully configured (either individually or via another service template). XI will always prefer the service-specific configurations over the template. Templates provide default configurations. So adding a service that already has its configuration fully defined to a new service template wouldn't accomplish anything.

You certainly could create a service template, add new services to that template, and add those services to a host. You could also accomplish this via service groups.

If you have any additional questions or need assistance with anything, please reach out.

Thank you!
HaschkeD
Posts: 50
Joined: Tue Feb 02, 2016 8:35 am

Re: Template with Services

Post by HaschkeD »

Thank you very much. I would like to have a template that already contains the standard services when, for example, a new host is created.
If I copy an existing host, then no services are included.
I would just like the standard services to be included when a new host is created. But I can't find any way to add services in the service template.
Post Reply