Update install-dsmon.sh

This commit is contained in:
2022-03-07 19:05:40 -06:00
parent 2fa6626ab8
commit dfa479f9e0

View File

@@ -38,6 +38,10 @@ echo -e -n "${idsCL[LightCyan]}Email address to receive alerts: ${idsCL[Default]
read SET_ALERTEMAIL
echo ""
echo -e -n "${idsCL[LightCyan]}Server Monitor ID (optional): ${idsCL[Default]}"
read SET_SERVERMONID
echo ""
if [ "${SET_THRESHOLD}" = "" ]; then
SET_THRESHOLD=80
fi
@@ -48,8 +52,9 @@ echo "Test Alert" | mail -r DSMon_$(hostname -s)@scity.us -s "Test" $SET_ALERTEM
echo -e "${idsCL[Yellow]}Adding task to crontab... ${idsCL[Default]}"
(crontab -l ; echo "0 */3 * * * /usr/local/bin/dsmon")| crontab -
echo -e "THRESHOLD=$SET_THRESHOLD
ALERT_EMAIL=$SET_ALERTEMAIL
echo -e "THRESHOLD=${SET_THRESHOLD}
ALERT_EMAIL=${SET_ALERTEMAIL}
SERVERMON_ID=${SET_SERVERMONID}
" > /opt/idssys/dsmon/config.settings.inc
echo -e "