From bd72f6d0fc53a03df3c81d42ee1e8623e9af62e3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 20 Mar 2022 17:11:53 -0500 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-dsmon.sh b/install-dsmon.sh index 8753936..e79b464 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -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}