Anael G 2020-05-08 17:37:48 +02:00
parent 474cbe3b36
commit 627a3b4201

@ -28,6 +28,8 @@ object CheckCommand "xmppng" {
arguments = { arguments = {
"-H" = "$address$" "-H" = "$address$"
"-p" = "$xmpp_port$" "-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" { apply Service "XMPP Status" {
check_command = "xmppng" check_command = "xmppng"
vars.warndays = "7"
vars.critdays = "3"
assign where host.vars.xmpp == true && host.address assign where host.vars.xmpp == true && host.address
} }
``` ```