questions about templates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

questions about templates

Post by caterpillartce »

Hello,

Question 1 - If I have multiple Windows servers and would like them to have the same monitoring services, should I

1. create a host group
2. create service templates
3. in each service template, "Manage Hostgroups" to assign the host group created in 1
4. add all my servers to the host group created in 1

Question 2 - when I added a new Windows server as a host, and in "Manage Templates" on the Host management / Common Settings page, I assigned a host template. Shouldn't the new host inherit all the settings from that host template, such as "check command" and arguments? It didn't work that way.

Thanks!

Jessica Zhang
Product Engineering Solutions
Caterpillar Inc.
Email: [email protected]
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: questions about templates

Post by rkennedy »

You will actually want to create services, and not service templates. Assign the services to the hostgroup, and not a specific host. You'll also want to create a host template, and assign it to the hostgroup. Then, whenever you add a new host, all you need to do is assign the host template. Alternatively, you could assign a template AND a host group, but this helps lessen the steps by 1. :-)

Yes, it will inherit all of the arguments and check_command defined in the service that is assigned to the hostgroup.

I wrote a document about exactly this topic. I'll PM it to you as it's not official yet -- let us know if you have further questions.
Former Nagios Employee
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Re: questions about templates

Post by spurrellian »

@rkennedy - Would I be able to have a copy of this?

I'm currently re-evaluation my windows hosts setup and looking at templates again

Thanks
Paul S - Using Nagios XI, Network Analyzer, Log Server
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: questions about templates

Post by mcapra »

@spurrellian he's out of the office today, but i'll be sure to let him know you're interested in the document.
Former Nagios employee
https://www.mcapra.com/
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: questions about templates

Post by eloyd »

Ping! Old topic alert. This topic hasn't been closed or responded to in almost FIVE WEEKS! :-)
Last edited by eloyd on Wed Sep 07, 2016 9:53 am, edited 1 time in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: questions about templates

Post by tmcdonald »

eloyd wrote:Ping! Old topic alert. This topic hasn't been closed or responded to in almost a year.
I'm sorry? This thread is only about a month old.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: questions about templates

Post by eloyd »

Doh! My brain saw someone's join date accidentally as the last post date. Sorry. At any rate, it's on the radar again, at least. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: questions about templates

Post by rkennedy »

eloyd wrote:Doh! My brain saw someone's join date accidentally as the last post date. Sorry. At any rate, it's on the radar again, at least. :-)
No need, it was taken care of already, I just didn't post back to this thread.

Locking this thread to Eric proof it.
Former Nagios Employee
Locked