From: Michael Friedrich Date: Mon, 15 Sep 2014 17:39:57 +0000 (+0200) Subject: Documentation: Fix markdown formatting X-Git-Tag: v2.1.1~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b78f2d9ca3cb9319155958a1cb1781330237a06;p=icinga2 Documentation: Fix markdown formatting refs #7070 --- diff --git a/doc/3-monitoring-basics.md b/doc/3-monitoring-basics.md index aec942e30..b904a1817 100644 --- a/doc/3-monitoring-basics.md +++ b/doc/3-monitoring-basics.md @@ -1015,13 +1015,13 @@ daemon name, while `test $service.state_id$ -gt 0` makes sure that the daemon is only restarted when the service is an a not `OK` state. -object EventCommand "event_by_ssh_restart_service" { - import "event_by_ssh" + object EventCommand "event_by_ssh_restart_service" { + import "event_by_ssh" - //only restart the daemon if state > 0 (not-ok) - //requires sudo permissions for the icinga user - vars.event_by_ssh_command = "test $service.state_id$ -gt 0 && sudo /etc/init.d/$event_by_ssh_service$ restart" -} + //only restart the daemon if state > 0 (not-ok) + //requires sudo permissions for the icinga user + vars.event_by_ssh_command = "test $service.state_id$ -gt 0 && sudo /etc/init.d/$event_by_ssh_service$ restart" + } Now set the `event_command` attribute to `event_by_ssh_restart_service` and tell it