]> granicus.if.org Git - icinga2/commitdiff
Update documentation.
authorGunnar Beutner <gunnar@beutner.name>
Thu, 10 Oct 2013 14:55:59 +0000 (16:55 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 10 Oct 2013 14:55:59 +0000 (16:55 +0200)
doc/2.1-setting-up-icinga-2.md
doc/2.4-setting-up-ido.md
doc/2.6-running-icinga.md
doc/3.03-macros.md
doc/3.05-using-templates.md
doc/4.1-configuration-syntax.md

index eb56386af25965bb19945bd4e547249f99e17e40..6fe3c4ef23de5a85e910787a6ebb758fcb5f99d3 100644 (file)
@@ -50,7 +50,7 @@ By default Icinga 2 uses the following files and directories:
   /usr/share/doc/icinga2              | Documentation files that come with Icinga 2.
   /usr/share/icinga2/itl              | The Icinga Template Library.
   /var/run/icinga2                    | PID file.
-  /var/run/icinga2/cmd                | Command pipe and livestatus socket.
+  /var/run/icinga2/cmd                | Command pipe and Livestatus socket.
   /var/cache/icinga2                  | Performance data files and status.dat/objects.cache.
   /var/lib/icinga2                    | The Icinga 2 state file.
 
@@ -58,7 +58,7 @@ By default Icinga 2 uses the following files and directories:
 
 An example configuration file is installed for you in `/etc/icinga2/icinga2.conf`.
 
-Here's a brief description of the example config:
+Here's a brief description of the example configuration:
 
     /**
      * Icinga 2 configuration file
index c3082eaa2d49a3f5aab9d73ff9e1ffd439c170f5..5f1334735bf631342cd70646c224a6a942fcc77c 100644 (file)
@@ -4,7 +4,7 @@ The IDO (Icinga Data Output) modules for Icinga 2 takes care of exporting all
 configuration and status information into a database. The IDO database is used
 by a number of projects including Icinga Web.
 
-There is a separate module for each database backend. At present only support
+There is a separate module for each database back-end. At present only support
 for MySQL is implemented.
 
 ### Setting up the database
@@ -43,7 +43,7 @@ The package provides a new configuration file that is installed in
 `/etc/icinga2/features-available/ido-mysql.conf`. You will need to update the
 database credentials in this file.
 
-You can enable the ido-mysql feature configuration file using `i2enfeature`:
+You can enable the `ido-mysql` feature configuration file using `i2enfeature`:
 
     # i2enfeature ido-mysql
     Module 'ido-mysql' was enabled.
index c0404855541682c0aa790624face85a8ed6afc56..eaf19326337500451f7d0e4d63205f79d95de634 100644 (file)
@@ -12,7 +12,7 @@ Icinga 2's init script is installed in `/etc/init.d/icinga2` by default:
   start               | The `start` action starts the Icinga 2 daemon.
   stop                | The `stop` action stops the Icinga 2 daemon.
   restart             | The `restart` action is a shortcut for running the `stop` action followed by `start`.
-  reload              | The `reload` action sends the HUP signal to Icinga 2 which causes it to restart. Unlike the `restart` action `reload` does not wait until Icinga 2 has restarted.
+  reload              | The `reload` action sends the `HUP` signal to Icinga 2 which causes it to restart. Unlike the `restart` action `reload` does not wait until Icinga 2 has restarted.
   checkconfig         | The `checkconfig` action checks if the `/etc/icinga2/icinga2.conf` configuration file contains any errors.
   status              | The `status` action checks if Icinga 2 is running.
 
@@ -46,8 +46,8 @@ you can also use the `--library` command-line option.
 #### Config Include Path
 
 When including files you can specify that the include search path should be
-checked. You can do this by putting your config file name in angle brackets
-like this:
+checked. You can do this by putting your configuration file name in angle
+brackets like this:
 
     include <test.conf>
 
@@ -60,8 +60,8 @@ added.
 
 #### Config Files
 
-Using the `--config` option you can specify one or more config files. Config
-files are processed in the order they're specified on the command-line.
+Using the `--config` option you can specify one or more configuration files.
+Config files are processed in the order they're specified on the command-line.
 
 #### Config Validation
 
index ddb641058057de12d6fdbba6c0c2233da50e9a40..3d59237d9e71e793958bf8b8e5b9b340515325b2 100644 (file)
@@ -31,9 +31,9 @@ Here is an example of a command definition which uses user-defined macros:
 > **Note**
 >
 > If you have previously used Icinga 1.x you may already be familiar with
-> user and argument macros (e.g., USER1 or ARG1). Unlike in Icinga 1.x macros
+> user and argument macros (e.g., `USER1` or `ARG1`). Unlike in Icinga 1.x macros
 > may have arbitrary names and arguments are no longer specified in the
-> check_command setting.
+> `check_command` setting.
 
 Macro names must be enclosed in two `$` signs, e.g. `$plugindir$`. When
 executing commands Icinga 2 checks the following objects in this
@@ -67,7 +67,7 @@ emitted to the Icinga 2 log.
 
 > **Note**
 >
-> Macros in capital letters (e.g. HOSTNAME) are reserved for use by Icinga 2
+> Macros in capital letters (e.g. `HOSTNAME`) are reserved for use by Icinga 2
 > and should not be overwritten by users.
 
 By convention every host should have an `address` macro. Hosts
@@ -85,16 +85,16 @@ hosts or services:
   Name                   | Description
   -----------------------|--------------
   HOSTNAME               | The name of the host object.
-  HOSTDISPLAYNAME        | The value of the display_name attribute.
+  HOSTDISPLAYNAME        | The value of the `display_name` attribute.
   HOSTALIAS              | This is an alias for the `HOSTDISPLAYNAME` macro.
-  HOSTSTATE              | The host's current state. Can be one of UNREACHABLE, UP and DOWN.
-  HOSTSTATEID            | The host's current state. Can be one of 0 (up), 1 (down) and 2 (unreachable).
-  HOSTSTATETYPE          | The host's current state type. Can be one of SOFT and HARD.
+  HOSTSTATE              | The host's current state. Can be one of `UNREACHABLE`, `UP` and `DOWN`.
+  HOSTSTATEID            | The host's current state. Can be one of `0` (up), `1` (down) and `2` (unreachable).
+  HOSTSTATETYPE          | The host's current state type. Can be one of `SOFT` and `HARD`.
   HOSTATTEMPT            | The current check attempt number.
   MAXHOSTATTEMPT         | The maximum number of checks which are executed before changing to a hard state.
-  LASTHOSTSTATE          | The host's previous state. Can be one of UNREACHABLE, UP and DOWN.
-  LASTHOSTSTATEID        | The host's previous state. Can be one of 0 (up), 1 (down) and 2 (unreachable).
-  LASTHOSTSTATETYPE      | The host's previous state type. Can be one of SOFT and HARD.
+  LASTHOSTSTATE          | The host's previous state. Can be one of `UNREACHABLE`, `UP` and `DOWN`.
+  LASTHOSTSTATEID        | The host's previous state. Can be one of `0` (up), `1` (down) and `2` (unreachable).
+  LASTHOSTSTATETYPE      | The host's previous state type. Can be one of `SOFT` and `HARD`.
   HOSTLATENCY            | The host's check latency.
   HOSTEXECUTIONTIME      | The host's check execution time.
   HOSTOUTPUT             | The last check's output.
@@ -111,16 +111,16 @@ services:
   Name                   | Description
   -----------------------|--------------
   SERVICEDESC            | The short name of the service object.
-  SERVICEDISPLAYNAME     | The value of the display_name attribute.
+  SERVICEDISPLAYNAME     | The value of the `display_name` attribute.
   SERVICECHECKCOMMAND    | This is an alias for the `SERVICEDISPLAYNAME` macro.
-  SERVICESTATE           | The service's current state. Can be one of OK, WARNING, CRITICAL, UNCHECKABLE and UNKNOWN.
-  SERVICESTATEID         | The service's current state. Can be one of 0 (ok), 1 (warning), 2 (critical), 3 (unknown) and 4 (uncheckable).
-  SERVICESTATETYPE       | The service's current state type. Can be one of SOFT and HARD.
+  SERVICESTATE           | The service's current state. Can be one of `OK`, `WARNING`, `CRITICAL` and `UNKNOWN`.
+  SERVICESTATEID         | The service's current state. Can be one of `0` (ok), `1` (warning), `2` (critical) and `3` (unknown).
+  SERVICESTATETYPE       | The service's current state type. Can be one of `SOFT` and `HARD`.
   SERVICEATTEMPT         | The current check attempt number.
   MAXSERVICEATTEMPT      | The maximum number of checks which are executed before changing to a hard state.
-  LASTSERVICESTATE       | The service's previous state. Can be one of OK, WARNING, CRITICAL, UNCHECKABLE and UNKNOWN.
-  LASTSERVICESTATEID     | The service's previous state. Can be one of 0 (ok), 1 (warning), 2 (critical), 3 (unknown) and 4 (uncheckable).
-  LASTSERVICESTATETYPE   | The service's previous state type. Can be one of SOFT and HARD.
+  LASTSERVICESTATE       | The service's previous state. Can be one of `OK`, `WARNING`, `CRITICAL` and `UNKNOWN`.
+  LASTSERVICESTATEID     | The service's previous state. Can be one of `0` (ok), `1` (warning), `2` (critical) and `3` (unknown).
+  LASTSERVICESTATETYPE   | The service's previous state type. Can be one of `SOFT` and `HARD`.
   LASTSERVICESTATECHANGE | The last state change's timestamp.
   SERVICELATENCY         | The service's check latency.
   SERVICEEXECUTIONTIME   | The service's check execution time.
index c5087b4ab6aa5b5fe5706c8a0f8c205228e8514d..49ed92c4738efb86842b36d4673c7662db51dc3e 100644 (file)
@@ -5,7 +5,7 @@ object.
 
 For example, rather than manually creating a `ping` service object for each of
 your hosts you can use templates to avoid having to copy & paste parts of your
-config:
+configuration:
 
     template Host "linux-server" {
       services["ping"] = {
index e56796a4fef1678a90da738ddcc00c94b19d1bf7..ad7c51f3ce519a8d09a3a38c310786fd044cfbbc 100644 (file)
@@ -15,7 +15,7 @@ define objects the `object` keyword is used:
 
 > **Note**
 >
-> The Icinga 2 configuration format is agnostic to whitespaces and
+> The Icinga 2 configuration format is agnostic to white space characters and
 > new-lines.
 
 > **Note**
@@ -72,7 +72,7 @@ In addition to these pre-defined escape sequences you can specify
 arbitrary ASCII characters using the backslash character (\\) followed
 by an ASCII character in octal encoding.
 
-#### Multiline String Literals
+#### Multi-line String Literals
 
 Strings spanning multiple lines can be specified by enclosing them in
 {{{ and }}}.
@@ -262,7 +262,7 @@ Example:
 
 The `default-host` and `test-host` objects are marked as templates
 using the `template` keyword. Unlike ordinary objects templates are not
-instantiated at runtime. Parent objects do not necessarily have to be
+instantiated at run-time. Parent objects do not necessarily have to be
 templates though in general they are.
 
 > **Note**
@@ -290,7 +290,7 @@ Simple calculations can be performed using the constant expression syntax:
     }
 
 Valid operators include +, -, * and /. The default precedence rules can be
-overriden by grouping expressions using parentheses:
+overridden by grouping expressions using parentheses:
 
     {
       check_interval ((15 * 60) / 2)