summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-02-27 12:43:34 +0100
committerFlorian Pritz <f-p@gmx.at>2009-02-27 12:43:34 +0100
commitef2b26eeece374e61426f02fc53d5a5ce4ec229c (patch)
tree1e02efafec342d0698ee0494677dfc6856d6de04
parent5a34b307cbc50e0769a9f611c60a9f09e9234887 (diff)
downloadbin-ef2b26eeece374e61426f02fc53d5a5ce4ec229c.tar.gz
bin-ef2b26eeece374e61426f02fc53d5a5ce4ec229c.tar.xz
fixed watchdog logfile
-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