--- badi/public_scripts/canardien/canardien 2009/12/01 04:36:47 1.1 +++ badi/public_scripts/canardien/canardien 2010/08/08 17:18:37 1.2 @@ -84,7 +84,7 @@ function checkconnection { function rememberstate { # Put a simple time stamp in a tmp file, when host gets down if [ -z "$UP" ]; then - if [ ! -e "$TMPDIR/.canardien-$PINGHOST-$HOST" ]; then + if [ ! -e "$TMPDIR/.canardien-$PINGHOST-$HOST" ]; then # set time stamp echo -ne "$TIME_STAMP" > "$TMPDIR/.canardien-$PINGHOST-$HOST" # send alert @@ -98,7 +98,7 @@ function rememberstate { if [ -n "$DEBUG" ]; then shout "$HOST is up again." fi - # send alert + # send alert ALERT_SUBJECT="$HOST antwortet wieder!" ALERT_TEXT='"[$(date +"%a %e.%m.%y %H:%M:%S")]\n\n\n$HOST is up again.\n--------------------------------------\n(downtime began $(cat "$TMPDIR/.canardien-$PINGHOST-$HOST"))\n\n\n Kind regards, $PINGHOST."' sendalert