Update 09-object-types.md

object Downtime "localhost!my-downtime"

should be

object Downtime "my-downtime"

The host_name configuration attribute adds the localhost name automatically.
This commit is contained in:
noobahoi 2017-11-21 16:22:58 +01:00 committed by GitHub
parent 890ebbe9c2
commit 5f6f5fb194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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