Update install-dsmon.sh
This commit is contained in:
@@ -38,6 +38,10 @@ echo -e -n "${idsCL[LightCyan]}Email address to receive alerts: ${idsCL[Default]
|
|||||||
read SET_ALERTEMAIL
|
read SET_ALERTEMAIL
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
echo -e -n "${idsCL[LightCyan]}Server Monitor ID (optional): ${idsCL[Default]}"
|
||||||
|
read SET_SERVERMONID
|
||||||
|
echo ""
|
||||||
|
|
||||||
if [ "${SET_THRESHOLD}" = "" ]; then
|
if [ "${SET_THRESHOLD}" = "" ]; then
|
||||||
SET_THRESHOLD=80
|
SET_THRESHOLD=80
|
||||||
fi
|
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]}"
|
echo -e "${idsCL[Yellow]}Adding task to crontab... ${idsCL[Default]}"
|
||||||
(crontab -l ; echo "0 */3 * * * /usr/local/bin/dsmon")| crontab -
|
(crontab -l ; echo "0 */3 * * * /usr/local/bin/dsmon")| crontab -
|
||||||
|
|
||||||
echo -e "THRESHOLD=$SET_THRESHOLD
|
echo -e "THRESHOLD=${SET_THRESHOLD}
|
||||||
ALERT_EMAIL=$SET_ALERTEMAIL
|
ALERT_EMAIL=${SET_ALERTEMAIL}
|
||||||
|
SERVERMON_ID=${SET_SERVERMONID}
|
||||||
" > /opt/idssys/dsmon/config.settings.inc
|
" > /opt/idssys/dsmon/config.settings.inc
|
||||||
|
|
||||||
echo -e "
|
echo -e "
|
||||||
|
|||||||
Reference in New Issue
Block a user