summaryrefslogtreecommitdiffstats
path: root/util/downreport.in
diff options
context:
space:
mode:
Diffstat (limited to 'util/downreport.in')
-rwxr-xr-xutil/downreport.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/downreport.in b/util/downreport.in
index 2926c5c..edb3ae0 100755
--- a/util/downreport.in
+++ b/util/downreport.in
@@ -3,7 +3,7 @@
# Reports the list of routers not listed as 'up'.
# Put this in your crontab to run once a day:
-# 0 0 * * * /where/rancid/lives/util/downreport
+# 0 0 * * * @prefix@/util/downreport
# It can optionally
# take a space list of groups on the command line
@@ -24,6 +24,10 @@ fi
for GROUP in $LIST_OF_GROUPS; do
(
+ echo "To: @MAILPLUS@admin-$GROUP"
+ echo "Subject: Down router report - $GROUP"
+ echo "Precedence: bulk"
+ echo ""
DIR=$BASEDIR/$GROUP
if [ -s $DIR/routers.down ]; then
(
@@ -53,7 +57,6 @@ EOM
)
fi
- ) |\
- Mail -s "Down router report - $GROUP" @MAILPLUS@admin-$GROUP
+ ) | sendmail -t
done