Page 1 of 1

add host to nagios using template

Posted: Mon Sep 13, 2021 9:08 am
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?

Re: add host to nagios using template

Posted: Mon Sep 13, 2021 5:22 pm
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.

Re: add host to nagios using template

Posted: Mon Sep 13, 2021 7:00 pm
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.

Re: add host to nagios using template

Posted: Tue Sep 14, 2021 2:13 pm
by ssax
Thanks @WilH!

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