Update install-dsmon.sh

This commit is contained in:
2022-03-12 00:05:34 -06:00
parent 6789644372
commit 636382158e

View File

@@ -78,7 +78,7 @@ 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 "0 */3 * * * /usr/local/bin/dsmon")| crontab -
(crontab -l ; echo "$(($RANDOM % 15)) */1 * * * /usr/local/bin/dsmon")| crontab -
echo -e "THRESHOLD=${SET_THRESHOLD}
ALERT_EMAIL=${SET_ALERTEMAIL}