diff options
author | Tar Committer <tar@ocjtech.us> | 2001-08-03 03:13:25 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2001-08-03 03:13:25 +0000 |
commit | af496d2efa0969f29a22a4236c620f513eb90287 (patch) | |
tree | f3bc37d0d677b7ae1b58ae643fa25a91b80655aa /util/downreport.in | |
parent | 0e84b727786a16ade28bb081742e5c39c33ed7fa (diff) | |
download | rancid-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-x | util/downreport.in | 9 |
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 |