diff --git a/install-dsmon.sh b/install-dsmon.sh index d0f6a60..4802e98 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -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 "