etc/icinga2/scripts/mail-*-notification.sh: render Icinga DB Web URLs

not monitoring module ones. This takes effect for new installations only.
This commit is contained in:
Alexander A. Klimov 2023-04-06 12:19:31 +02:00
parent f3b148517f
commit d88bbcbcef
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ fi
if [ -n "$ICINGAWEB2URL" ] ; then
NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE
$ICINGAWEB2URL/monitoring/host/show?host=$(urlencode "$HOSTNAME")"
$ICINGAWEB2URL/icingadb/host?name=$(urlencode "$HOSTNAME")"
fi
## Check whether verbose mode was enabled and log to syslog.

View File

@ -146,7 +146,7 @@ fi
if [ -n "$ICINGAWEB2URL" ] ; then
NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE
$ICINGAWEB2URL/monitoring/service/show?host=$(urlencode "$HOSTNAME")&service=$(urlencode "$SERVICENAME")"
$ICINGAWEB2URL/icingadb/service?name=$(urlencode "$SERVICENAME")&host.name=$(urlencode "$HOSTNAME")
fi
## Check whether verbose mode was enabled and log to syslog.