]> granicus.if.org Git - icinga2/commitdiff
Docs: Fix ITL chapter TOC; add introduction with mini TOC 5476/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 8 Aug 2017 12:36:56 +0000 (14:36 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 8 Aug 2017 12:41:27 +0000 (14:41 +0200)
fixes #5428

doc/03-monitoring-basics.md
doc/04-configuring-icinga-2.md
doc/05-service-monitoring.md
doc/10-icinga-template-library.md
doc/15-troubleshooting.md

index b3b63e9bcd2b2620de6954e21e6666f55317105f..5ed2bf3f86ee7e8ac2d62cc450a8544b50b04d61 100644 (file)
@@ -96,7 +96,7 @@ The `hostalive` command is one of several built-in check commands. It sends ICMP
 echo requests to the IP address specified in the `address` attribute to determine
 whether a host is online.
 
-A number of other [built-in check commands](10-icinga-template-library.md#plugin-check-commands) are also
+A number of other [built-in check commands](10-icinga-template-library.md#icinga-template-library) are also
 available. In addition to these commands the next few chapters will explain in
 detail how to set up your own check commands.
 
@@ -1310,7 +1310,7 @@ Check command parameters are defined as custom attributes which can be accessed
 by the executed check command.
 
 The check command parameters for ITL provided plugin check command definitions are documented
-[here](10-icinga-template-library.md#plugin-check-commands), for example
+[here](10-icinga-template-library.md#icinga-template-library), for example
 [disk](10-icinga-template-library.md#plugin-check-command-disk).
 
 In order to practice passing command parameters you should [integrate your own plugin](03-monitoring-basics.md#command-plugin-integration).
index e0e367f55a60fb5a0cadb1852f7f36501a80a371..2b72c1b88578def2fda012443130be08a183f5bd 100644 (file)
@@ -192,7 +192,7 @@ By default, you need to make sure to set these constants:
 
 * The `PluginDir` constant must be set to the path where the [Monitoring Project plugins](02-getting-started.md#setting-up-check-plugins) are installed.
 This constant is used by a number of
-[built-in check command definitions](10-icinga-template-library.md#plugin-check-commands).
+[built-in check command definitions](10-icinga-template-library.md#icinga-template-library).
 * The `NodeName` constant defines your local node name. Should be set to FQDN which is the default
 if not set. This constant is required for local host configuration, monitoring remote clients and
 cluster setup.
@@ -281,7 +281,7 @@ takes care of setting up the host check command to `hostalive`. If you
 require a different check command, you can override it in the object definition.
 
 The `vars` attribute can be used to define custom attributes which are available
-for check and notification commands. Most of the [Plugin Check Commands](10-icinga-template-library.md#plugin-check-commands)
+for check and notification commands. Most of the [Plugin Check Commands](10-icinga-template-library.md#icinga-template-library)
 in the Icinga Template Library require an `address` attribute.
 
 The custom attribute `os` is evaluated by the `linux-servers` group in
@@ -386,7 +386,7 @@ The Debian packages also include an additional `apt` service check applied to th
 
 The command object `icinga` for the embedded health check is provided by the
 [Icinga Template Library (ITL)](10-icinga-template-library.md#icinga-template-library) while `http_ip`, `ssh`, `load`, `processes`,
-`users` and `disk` are all provided by the [Plugin Check Commands](10-icinga-template-library.md#plugin-check-commands)
+`users` and `disk` are all provided by the [Plugin Check Commands](10-icinga-template-library.md#icinga-template-library)
 which we enabled earlier by including the `itl` and `plugins` configuration file.
 
 
@@ -636,7 +636,7 @@ default:
     }
 
 The `hostalive` check command is part of the
-[Plugin Check Commands](10-icinga-template-library.md#plugin-check-commands).
+[Plugin Check Commands](10-icinga-template-library.md#icinga-template-library).
 
 
     template Notification "mail-host-notification" {
index 6cf8d700f3c4c2db1767c7602750fde06b20e08e..855b75b53e788802edade8444930782d2e711a3e 100644 (file)
@@ -49,7 +49,7 @@ configuration which can be used in the [Service](09-object-types.md#objecttype-s
 [Host](09-object-types.md#objecttype-host) object definition.
 
 Please check if the Icinga 2 package already provides an
-[existing CheckCommand definition](10-icinga-template-library.md#plugin-check-commands).
+[existing CheckCommand definition](10-icinga-template-library.md#icinga-template-library).
 If that's the case, throroughly check the required parameters and integrate the check command
 into your host and service objects.
 
index 4747fe586df11b13cc04953de47647950a941eb2..12574e0173442e268c828944afb4832fe9e27510 100644 (file)
@@ -1,14 +1,32 @@
 # Icinga Template Library <a id="icinga-template-library"></a>
 
-The Icinga Template Library (ITL) implements standard templates and object
-definitions for commonly used services.
+The Icinga Template Library (ITL) implements standard templates
+and object definitions.
 
-By default the ITL is included in the `icinga2.conf` configuration file:
+There is a subset of templates and object definitions available:
 
-    include <itl>
+* [Generic ITL templates](10-icinga-template-library.md#itl-generic-templates)
+* [CheckCommand definitions for Icinga 2](10-icinga-template-library.md#itl-check-commands) (this includes [icinga](10-icinga-template-library.md#itl-icinga),
+[cluster](10-icinga-template-library.md#itl-icinga-cluster), [cluster-zone](10-icinga-template-library.md#itl-icinga-cluster-zone), [ido](10-icinga-template-library.md#itl-icinga-ido), etc.)
+* [CheckCommand definitions for Monitoring Plugins](10-icinga-template-library.md#plugin-check-commands-monitoring-plugins)
+* [CheckCommand definitions for Icinga 2 Windows Plugins](10-icinga-template-library.md#windows-plugins)
+* [CheckCommand definitions for NSClient++](10-icinga-template-library.md#nscp-plugin-check-commands)
+* [CheckCommand definitions for Manubulon SNMP](10-icinga-template-library.md#snmp-manubulon-plugin-check-commands)
+* [Contributed CheckCommand definitions](10-icinga-template-library.md#plugin-contrib)
+
+The ITL content is updated with new releases. Please do not modify
+templates and/or objects as changes will be overridden without
+further notice.
+
+You are advised to create your own CheckCommand definitions in
+`/etc/icinga2`.
 
 ## Generic Templates <a id="itl-generic-templates"></a>
 
+By default the generic templates are included in the [icinga2.conf](04-configuring-icinga-2.md#icinga2-conf) configuration file:
+
+    include <itl>
+
 These templates are imported by the provided example configuration.
 
 > **Note**:
@@ -105,14 +123,15 @@ Check command for the built-in `exception` check. This check throws an exception
 For test and demo purposes only. The `exception` check command does not support
 any vars.
 
-# Plugin Check Commands <a id="plugin-check-commands"></a>
+<!-- keep this anchor for URL link history only -->
+<a id="plugin-check-commands"></a>
 
 ## Plugin Check Commands for Monitoring Plugins <a id="plugin-check-commands-monitoring-plugins"></a>
 
 The Plugin Check Commands provides example configuration for plugin check commands
 provided by the [Monitoring Plugins](https://www.monitoring-plugins.org) project.
 
-By default the Plugin Check Commands are included in the `icinga2.conf` configuration
+By default the Plugin Check Commands are included in the [icinga2.conf](04-configuring-icinga-2.md#icinga2-conf) configuration
 file:
 
     include <plugins>
@@ -1415,6 +1434,8 @@ Name            | Description
 users_wgreater  | **Optional.** The user count warning threshold. Defaults to 20.
 users_cgreater  | **Optional.** The user count critical threshold. Defaults to 50.
 
+
+
 ## Windows Plugins for Icinga 2 <a id="windows-plugins"></a>
 
 To allow a basic monitoring of Windows clients Icinga 2 comes with a set of Windows only plugins. While trying to mirror the functionalities of their linux cousins from the monitoring-plugins package, the differences between Windows and Linux are too big to be able use the same CheckCommands for both systems.
@@ -1655,7 +1676,7 @@ CPU utilization, please use the HTTP API instead of the CLI sample call.
 `check_nscp_api` is part of the Icinga 2 plugins. This plugin is available for
 both, Windows and Linux/Unix.
 
-Verify that the ITL CheckCommand is included:
+Verify that the ITL CheckCommand is included in the [icinga2.conf](04-configuring-icinga-2.md#icinga2-conf) configuration file:
 
     vim /etc/icinga2/icinga2.conf
 
index 884d355d1dbe52f20f77f67ead3ae0ca6f8b8fbe..d00d81d702a6de137ff3b3bf9c51768165107fa9 100644 (file)
@@ -212,7 +212,7 @@ You need to restart Icinga 2 in order to update the `icinga2.debug` cache file.
 
 ## Where are the check command definitions? <a id="check-command-definitions"></a>
 
-Icinga 2 features a number of built-in [check command definitions](10-icinga-template-library.md#plugin-check-commands) which are
+Icinga 2 features a number of built-in [check command definitions](10-icinga-template-library.md#icinga-template-library) which are
 included with
 
     include <itl>