summaryrefslogtreecommitdiffstats
path: root/util/downreport.in
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2001-08-03 03:13:25 +0000
committerTar Committer <tar@ocjtech.us>2001-08-03 03:13:25 +0000
commitaf496d2efa0969f29a22a4236c620f513eb90287 (patch)
treef3bc37d0d677b7ae1b58ae643fa25a91b80655aa /util/downreport.in
parent0e84b727786a16ade28bb081742e5c39c33ed7fa (diff)
downloadrancid-af496d2efa0969f29a22a4236c620f513eb90287.tar.gz
rancid-af496d2efa0969f29a22a4236c620f513eb90287.tar.xz
rancid-af496d2efa0969f29a22a4236c620f513eb90287.zip
Imported from rancid-2.2b5.tar.gz.rancid-2.2b5
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