diff --git a/Supervision-XMPP-via-icinga2.md b/Supervision-XMPP-via-icinga2.md index 8e441cc..983fa23 100644 --- a/Supervision-XMPP-via-icinga2.md +++ b/Supervision-XMPP-via-icinga2.md @@ -28,6 +28,8 @@ object CheckCommand "xmppng" { arguments = { "-H" = "$address$" "-p" = "$xmpp_port$" + "--warn-days" = "$warndays$" + "--crit-days" = "$critdays$" } } ``` @@ -35,6 +37,8 @@ Ensuite le service dans services.conf d'icinga2 ``` apply Service "XMPP Status" { check_command = "xmppng" +vars.warndays = "7" +vars.critdays = "3" assign where host.vars.xmpp == true && host.address } ```