This is a cache of https://support.nagios.com/kb/article/managing-service-templates-907.html. It is a snapshot of the page at 2025-05-14T00:09:36.120+0000.
Managing Service Templates
Home » Categories » Products » Nagios xi » Documentation » Advanced Topics

Managing Service Templates

Managing Service Templates

Service templates within Nagios xi allow you to create definitions that can be used in multiple services. The main purpose of templates is to keep parameters that are generic to a group in one file to simplify administration and configuration.

Examine the out-of-the-box service templates in the Service Templates page in the CCM for ideas on how to structure new templates or use the existing templates to build your service configurations.

Adding Service Templates

Adding a service template is a good first step in service configuration. You can then use these added templates to build your service structure.

  1. Navigate to Configure > Core Configuration ManagerService Templates.

  2. On the Service Templates page, click the Add New button.

  3. Fill out the fields on the new service template as described in Using the CCM for Services Management.

    Keep the fields as generic or specific as necessary for the group that the template will represent.
  4. Click the Save button and Apply Configuration.

Managing Service Templates

Nagios xi provides you with the ability to copy, edit, and view relationships of existing service templates.

  1. Navigate to Configure > Core Configuration ManagerService Templates.

  2. On the Service Templates page, find the template you wish to manage.

  3. In the Actions column, you will have the following actions available to you:

    • Edit - Allows you to edit the makeup of the template.

    • Copy - Copy a template to a new template to take advantage of an existing setup.

    • View Config - View the config file output for the template.

    • Relationships - Allows you to view the relationships among service templates.

    • Delete - Deletes the selected template.

    Keep the fields as generic or specific as necessary for the group that the template will represent.
  4. You can also activate or deactivate a template by clicking on the Yes or No link in the Active column.

  5. Click the Save button and Apply Configuration.

  6. On the Service Templates page, you can also multi-select templates and use the With checked dropdown to apply commands to the selected templates.

Template Inheritance

Nagios will allow objects to inherit from single or multiple templates. This allows basic templates to be layered, creating more complex templates.

When inheriting attributes from other templates, the definitions in each of the templates start with the first-level template. If it is found in the first one, that value is used, and if not, Nagios will check for a value in the second one and so forth. In other words, Nagios will perform a recursive check of all the other templates that are inherited from the currently checked template.

For more information about inheritance, see Object Inheritance with Templates.



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

2 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - Restarting A Linux Service With NRPE
Viewed 8231 times since Thu, Jan 28, 2016
Nagios xi - High Availability and Failover Solutions for Nagios xi - NWC14
Viewed 8666 times since Thu, Feb 4, 2016
Nagios xi - Understanding Notification Variables
Viewed 8800 times since Thu, Jan 28, 2016
Nagios xi - Redundancy And Security Planning
Viewed 4719 times since Sun, Mar 25, 2018
Nagios xi - Manual Backup And Restore Databases
Viewed 12329 times since Thu, Mar 31, 2016
Nagios xi - Plain Text Password Considerations
Viewed 12833 times since Mon, Jun 18, 2018
Nagios xi - Using rrdcached with Nagios xi
Viewed 6160 times since Thu, Jan 28, 2016
Nagios xi - Understanding Email Sending
Viewed 11713 times since Tue, May 2, 2017
Nagios xi - Hardware Requirements - Baseline Testing
Viewed 6692 times since Sun, Jul 17, 2016
Migrating Nagios xi to a different Server
Viewed 19367 times since Tue, Feb 16, 2021