Update commands.conf

This commit is contained in:
Silas 2023-03-13 12:47:39 +01:00 committed by GitHub
parent bdda58175b
commit 7f0aaf9b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -43,6 +43,9 @@ object NotificationCommand "mail-host-notification" {
required = true
value = "$notification_hoststate$"
}
"-X" = {
required = false
value = "$notification_hostnotes$"
"-t" = {
required = true
value = "$notification_type$"
@ -62,6 +65,7 @@ object NotificationCommand "mail-host-notification" {
notification_hostoutput = "$host.output$"
notification_hoststate = "$host.state$"
notification_useremail = "$user.email$"
notification_hostnotes = $host.notes$"
}
}
@ -110,6 +114,14 @@ object NotificationCommand "mail-service-notification" {
required = true
value = "$notification_type$"
}
"-X" = {
required = false
value = "$notification_hostnotes$"
}
"-x" = {
required = false
value = "$notification_servicenotes$"
}
"-u" = {
required = true
value = "$notification_servicedisplayname$"
@ -131,6 +143,8 @@ object NotificationCommand "mail-service-notification" {
notification_servicestate = "$service.state$"
notification_useremail = "$user.email$"
notification_servicedisplayname = "$service.display_name$"
notification_hostnotes = "$host.notes$"
notification_servicenotes = "$service.notes$"
}
}
@ -160,6 +174,7 @@ object NotificationCommand "mail-host-notification" {
NOTIFICATIONCOMMENT = "$notification.comment$"
HOSTDISPLAYNAME = "$host.display_name$"
USEREMAIL = "$user.email$"
HOSTNOTES = "$host.notes$"
}
}
@ -180,6 +195,8 @@ object NotificationCommand "mail-service-notification" {
HOSTDISPLAYNAME = "$host.display_name$"
SERVICEDISPLAYNAME = "$service.display_name$"
USEREMAIL = "$user.email$"
HOSTNOTES = "$host.notes$"
SERVICENOTES = "$service.notes$"
}
}