diff --git a/monitoring/altinea_monitoring_request.sh b/monitoring/altinea_monitoring_request.sh index 2fdec89..1e09b06 100644 --- a/monitoring/altinea_monitoring_request.sh +++ b/monitoring/altinea_monitoring_request.sh @@ -23,7 +23,7 @@ if [ -z "$EXTIP4" ]; then EXTIP4='dummy' fi if [ -z "$EXTIP6" ]; then - EXTIP4='dummy' + EXTIP6='dummy' fi # Check if found IPv4 address is configured on this server @@ -43,7 +43,7 @@ else fi # Same routine for IPv6 -if [ $(hostname -I |grep -c '$EXTIP6') -ne 0 ]; then +if [ $(hostname -I |grep -c $EXTIP6) -ne 0 ]; then IP6=$EXTIP6 else DEBUG echo "Couldn't find a public IPv6 address on this host" @@ -75,5 +75,11 @@ else COMMAND="$COMMAND IPv6 : $IP6\n" fi +COMMAND="$COMMAND -o tls=no -o message-charset=UTF-8 -s zpush.altinea.fr" + # And run the request by mail -$COMMAND -o tls=no -o message-charset=UTF-8 -s zpush.altinea.fr +if [ "$_DRYRUN" = "on" ]; then + echo $COMMAND +else + $COMMAND +fi