feat: config for remote gateway

This commit is contained in:
2023-01-11 03:26:28 +01:00
parent fdb670d5de
commit 59aeef435a
2 changed files with 23 additions and 2 deletions

View File

@@ -48,6 +48,19 @@ object NotificationCommand "signal-service-notification" {
value = "$notification_servicedisplayname$"
}
"-v" = "$notification_logtosyslog$"
"-w" = {
required = true
value = "$notification_signal_gateway_host$"
}
"-x" = {
required = true
value = "$notification_signal_gateway_port$"
}
"-y" = {
required = true
value = "$notification_signal_gateway_proto$"
}
}
vars += {
@@ -64,6 +77,10 @@ object NotificationCommand "signal-service-notification" {
notification_servicestate = "$service.state$"
notification_useremail = "$user.email$"
notification_servicedisplayname = "$service.display_name$"
notification_servicedisplayname = "$service.display_name$"
notification_signal_gateway_host = "$icinga.signal_gateway_host"
notification_signal_gateway_port = "$icinga.signal_gateway_port"
notification_signal_gateway_proto = "$icinga.signal_gateway_proto"
}
}