summaryrefslogtreecommitdiffstats
path: root/watchdog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.sh')
-rwxr-xr-xwatchdog.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/watchdog.sh b/watchdog.sh
index 47067bb..a807a7e 100755
--- a/watchdog.sh
+++ b/watchdog.sh
@@ -149,7 +149,7 @@ watcher () {
if [ "$counter" -gt $MAX_FAIL ] || [ "$counter" -eq $MAX_FAIL ]; then
mail root -s "$IP - $TYPE UP! " <<< "$IP - $TYPE is OK again.
Downtime: ${downtime} - $(date)"
- echo "Downtime: ${downtime} - $(date)" > $LOGFILE
+ echo "$IP - $TYPE Downtime: ${downtime} - $(date)" >> $LOGFILE
fi
counter=0
fi