mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +02:00
Merge pull request #9742 from Icinga/icingadb-notifications-have-wrong-icingaweb2-url-9350
etc/icinga2/scripts/mail-*-notification.sh: render Icinga DB Web URLs
This commit is contained in:
commit
857e6e4e64
@ -141,7 +141,7 @@ fi
|
|||||||
if [ -n "$ICINGAWEB2URL" ] ; then
|
if [ -n "$ICINGAWEB2URL" ] ; then
|
||||||
NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE
|
NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE
|
||||||
|
|
||||||
$ICINGAWEB2URL/monitoring/host/show?host=$(urlencode "$HOSTNAME")"
|
$ICINGAWEB2URL/icingadb/host?name=$(urlencode "$HOSTNAME")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Check whether verbose mode was enabled and log to syslog.
|
## Check whether verbose mode was enabled and log to syslog.
|
||||||
|
@ -146,7 +146,7 @@ fi
|
|||||||
if [ -n "$ICINGAWEB2URL" ] ; then
|
if [ -n "$ICINGAWEB2URL" ] ; then
|
||||||
NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE
|
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
|
fi
|
||||||
|
|
||||||
## Check whether verbose mode was enabled and log to syslog.
|
## Check whether verbose mode was enabled and log to syslog.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user