Update install-dsmon.sh

This commit is contained in:
2022-03-20 17:11:53 -05:00
parent 1bfcd9177d
commit bd72f6d0fc

View File

@@ -116,8 +116,9 @@ fi
echo -e "${idsCL[Yellow]}Sending test Alert... ${idsCL[Default]}"
echo "Test Alert" | mail -r DSMon_$(hostname -s)@scity.us -s "Test" $SET_ALERTEMAIL
echo -e "${idsCL[Yellow]}Adding task to crontab... ${idsCL[Default]}"
(crontab -l ; echo "$(($RANDOM % 15)) */1 * * * /usr/local/bin/dsmon")| crontab -
# echo -e "${idsCL[Yellow]}Adding task to crontab... ${idsCL[Default]}"
# (crontab -l ; echo "$(($RANDOM % 15)) */1 * * * /usr/local/bin/dsmon hdd")| crontab -
# (crontab -l ; echo "*/5 * * * * /usr/local/bin/dsmon sys")| crontab -
echo -e "
ALERT_EMAIL=${SET_ALERTEMAIL}