From 0ab606da6a7eb436f89b2ebcf11c99d753a23b25 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 4 Jul 2023 18:15:45 -0500 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install-dsmon.sh b/install-dsmon.sh index 1642852..b16f898 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -106,6 +106,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]}" +sleep 1s (crontab -l ; echo "$(($RANDOM % 15)) */1 * * * /usr/local/bin/dsmon hdd >/dev/null 2>&1")| crontab - sleep 1s (crontab -l ; echo "*/5 * * * * /usr/local/bin/dsmon sys >/dev/null 2>&1")| crontab -