From 4687dbc15af40aa786736df50ffff49cbffd4217 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 6 Jul 2023 20:34:36 -0500 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-dsmon.sh b/install-dsmon.sh index 82b9922..4cb9139 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -104,6 +104,8 @@ 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 | grep -v 'dsmon hdd' | crontab - +crontab -l | grep -v 'dsmon sys' | crontab - sleep 1s (crontab -l ; echo "$(($RANDOM % 15)) */1 * * * /usr/local/bin/dsmon hdd >/dev/null 2>&1")| crontab - sleep 1s