Format IPs as <code>

This commit is contained in:
Jonny007-MKD 2020-10-19 21:42:33 +02:00
parent b4bc721640
commit 6948ee2b61

View file

@ -132,14 +132,14 @@ fi
NOTIFICATION_MESSAGE=$(cat << EOF NOTIFICATION_MESSAGE=$(cat << EOF
$HOSTSTATEICON<b>$HOSTDISPLAYNAME</b>$HOSTALIAS2 is $HOSTSTATE! $HOSTSTATEICON<b>$HOSTDISPLAYNAME</b>$HOSTALIAS2 is $HOSTSTATE!
${age}Info $HOSTOUTPUT ${age}Info $HOSTOUTPUT
IPv4 $HOSTADDRESS IPv4 <code>$HOSTADDRESS</code>
EOF EOF
) )
## Is this host IPv6 capable? ## Is this host IPv6 capable?
if [ -n "$HOSTADDRESS6" ] ; then if [ -n "$HOSTADDRESS6" ] ; then
NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE
IPv6 $HOSTADDRESS6" IPv6 <code>$HOSTADDRESS6</code>"
fi fi
## Are there any comments? Put them into the message! ## Are there any comments? Put them into the message!
if [ -n "$NOTIFICATIONCOMMENT" ] ; then if [ -n "$NOTIFICATIONCOMMENT" ] ; then