Page 1 of 1

Template Usage

Posted: Thu Oct 11, 2012 10:27 am
by mbowden
So we have a situation in which we have deployed roughly 50 hosts that were set up for monitoring using the Linux Server Monitoring Wizard. We have decided that we want to add and addition monitor to each of these hosts to watch tmpfs disk usage. What is the best practice for adding thismonitor to the group. Is it createing a new template called "custom_tmpfs_Monitoring" and then going to the "xiwizard_generic_host" and "manage templates" and add the newly created "custom_tmpfs_Monitoring"template too it?

(this is the path I was on but does nto seem to work) Can you point me to a good document explaining the use of templates?

Thank You
Mike

Re: Template Usage

Posted: Thu Oct 11, 2012 10:35 am
by mguthrie
If you're applying the exact same service to all 50 hosts, I would actually suggest creating the service definition, and then applying it to the entire hostgroup. That way if you ever need to modify the service, you only have to do it in once place.

Here's the full documentation on object inheritance and how it works.
http://nagios.sourceforge.net/docs/3_0/ ... tance.html

Re: Template Usage

Posted: Thu Oct 11, 2012 10:47 am
by mbowden
Is there documentation on the process you mentioned working through the XI UI?

Re: Template Usage

Posted: Thu Oct 11, 2012 10:52 am
by mguthrie
Not specifically. It gets into the realm of more advanced configuration techniques. A basic pilot example could be done with the following though.

- Access the Core Config Manager->Services page
- Add a new service
- Pick a service description that makes sense for the check
- Either assign your custom template, or just use the xigeneric_wizard_service template as a base for config settings
- Instead of selecting a single host, pull up the list of hostgroups and assign to whatever hostgroup is appropriate.
- You can also assign a service to a list of hosts instead of a hostgroup if you need more flexibility