mirror of
https://github.com/FAUSheppy/monitoring-tools
synced 2025-12-09 12:48:32 +01:00
fix: base dir & apply notification & user
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
object NotificationCommand "signal-service-notification" {
|
object NotificationCommand "signal-service-notification" {
|
||||||
command = [ "/etc/icinga2/monitoring-tools/signal-gateway-client.py" ]
|
command = [ "/etc/monitoring-tools/signal-gateway-client.py" ]
|
||||||
|
|
||||||
arguments += {
|
arguments += {
|
||||||
"-4" = "$notification_address$"
|
"-4" = "$notification_address$"
|
||||||
@@ -66,3 +66,18 @@ object NotificationCommand "signal-service-notification" {
|
|||||||
notification_servicedisplayname = "$service.display_name$"
|
notification_servicedisplayname = "$service.display_name$"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
object User "signal-dummy-user" {
|
||||||
|
import "generic-user"
|
||||||
|
display_name = "User acting as notification Sink for Telegram Notifications"
|
||||||
|
email = "reject@none.none"
|
||||||
|
}
|
||||||
|
|
||||||
|
apply Notification "signal-generic" to Service {
|
||||||
|
import "mail-service-notification"
|
||||||
|
user_groups = ["icingaadmins"]
|
||||||
|
interval = 1d
|
||||||
|
command = "signal-service-notification"
|
||||||
|
assign where host.address
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user