add host to nagios using template

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

add host to nagios using template

Post by rnjie »

is there a way to create templates that can be used when adding new hosts to NAgios monitoring instead of having to select the services one by one and setting thresholds? can i just create a template with some specific services that new hosts can be cloned from?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: add host to nagios using template

Post by ssax »

You can use the Configure > Configuration Wizards > Bulk Host Cloning and Import wizard.

Another option would be for you to attach services to a hostgroup instead of to individual hosts and then when you add another host into that hostgroup it will automatically inherit all services attached to the hostgroup.
WillH
Posts: 54
Joined: Mon Aug 03, 2020 10:37 am

Re: add host to nagios using template

Post by WillH »

We've got 9000k+ hosts in a small fleet of XIs
We use a host template to hold the "universal" stuff that all hosts might share, like token, port #
From there we have services assigned to host groups, such as Window_Baseline, Linux_Baseline, Linux_Baseline_Production etc
When a machine is onboarded it's added to the relevant HGs.
This also makes it easy to add or remove a service check for all hosts of a given type, like when we recently switched antivirus software.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: add host to nagios using template

Post by ssax »

Thanks @WilH!

@rnjie, let us know if those will meet your needs.
Locked