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
Template with Services
Re: Template with Services
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.
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.
Re: Template with Services
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.
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.
Re: Template with Services
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......
@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
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!
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!
Re: Template with Services
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.
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.