From 636382158eaeb2922f48b2e1bb89dc07712c0c00 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 12 Mar 2022 00:05:34 -0600 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dsmon.sh b/install-dsmon.sh index 701ff1c..4820cfa 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -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}