Using Templates and Groups for automated setup

Service Template

Suppose to want every Linux servers to have a service check for CPU Load via SNMP.

Create a service template SNMP-Linux-Load-Average

In it, define check command to use and command arguments.

Create a host template Servers-Linux

In it, add SNMP-Linux-Load-Average to Services Template linked.

Create the Linux hosts

In them:

  • add template Servers-Linux to Host Mulitple Templates.
  • set Create Services linked to the Template too to Yes.

That way, an individual SNMP-Linux-Load-Average check definition will be automatically created for the host.

Service Template (Shared Definition)

This is like the above but all hosts in a group share the service check definition. That means, changes to the check definition affect all hosts.

Create a service template SNMP-Linux-Load-Average

In it, define check command to use and command arguments.

Create a HostGroup Linux-Servers

All group members will share the SNMP-Linux-Load-Average definition.

Create a service by host group

In it:

  • set service template to SNMP-Linux-Load-Average
  • add the Linux-Servers group to Linked with HostGroups

Create the Linux hosts

In it, add the Linux-Servers to Parent HostGroups.

nagios/centreon/using_templates_and_groups_for_automated_setup.txt · Last modified: 2011-01-16 20:28 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0