]> granicus.if.org Git - icinga2/commitdiff
Documentation: Fix markdown formatting
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 15 Sep 2014 17:39:57 +0000 (19:39 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 15 Sep 2014 17:39:57 +0000 (19:39 +0200)
refs #7070

doc/3-monitoring-basics.md

index aec942e30bde0260690f7c041f3dbb0c6cbe37bd..b904a1817dec7ca756865a7dd4319894cef5a6bc 100644 (file)
@@ -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