]> granicus.if.org Git - icinga2/commitdiff
Update 09-object-types.md
authornoobahoi <20069422+noobahoi@users.noreply.github.com>
Tue, 21 Nov 2017 15:22:58 +0000 (16:22 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 18 Dec 2017 16:48:35 +0000 (17:48 +0100)
object Downtime "localhost!my-downtime"

should be

object Downtime "my-downtime"

The host_name configuration attribute adds the localhost name automatically.

refs #5790

doc/09-object-types.md

index 3922f92b888e3ae790dcd4714255054aebc08374..2976356f0be5884f36eca3dce775b9b26e0d35f7 100644 (file)
@@ -446,7 +446,7 @@ You can create downtimes with the [schedule-downtime](12-icinga2-api.md#icinga2-
 Example:
 
 ```
-object Downtime "localhost!my-downtime" {
+object Downtime "my-downtime" {
   host_name = "localhost"
   author = "icingaadmin"
   comment = "This is a downtime."