diff --git a/monitor.sh b/monitor.sh index 7bb55ba..0436a0d 100755 --- a/monitor.sh +++ b/monitor.sh @@ -56,7 +56,7 @@ for ((i = 0; i < ${#NAME[*]}; i++)); do ## TEST PING pingtest $CURHOST if [ "$STATUS" != 0 ]; then - mailsend "Ping error on $CURNAME" \ + mailsend "Ping error on $CURHOST" \ "Ping was unsuccessful" \ "Check http://$CURHOST" fi @@ -66,7 +66,7 @@ for ((i = 0; i < ${#NAME[*]}; i++)); do if [ "$STATUS" != 0 ]; then diff -U 0 -Bb -I $CURIGN sites/"$CURHOST".orig "$CURHOST".html > "$CURHOST".diff - mailsend "Index error on $CURNAME" \ + mailsend "Index error on $CURHOST" \ "Index on $CURHOST differs from original index: \n\n$(cat $CURHOST.diff)" \ "Update original index: ssh://$CURNAME"