Updated
This commit is contained in:
parent
86530cc862
commit
2b1bf7f6d2
|
@ -128,14 +128,14 @@ do
|
||||||
if [[ cntNotify -gt 0 ]]; then
|
if [[ cntNotify -gt 0 ]]; then
|
||||||
echo "Sending an alert" >> ${tmpLog}
|
echo "Sending an alert" >> ${tmpLog}
|
||||||
# need a pagerduty alert if all important members are down
|
# need a pagerduty alert if all important members are down
|
||||||
# if [[ cntMembers -eq cntMembersDown ]]; then
|
if [[ cntMembersDown >1 ]]; then
|
||||||
#response=$(cat ${tmpLog} | ./pd-trigger.sh -L -s "${txtPdServiceKey}" -d "${status}")
|
#response=$(cat ${tmpLog} | ./pd-trigger.sh -L -s "${txtPdServiceKey}" -d "${status}")
|
||||||
#fi
|
#fi
|
||||||
# attempt an email
|
# attempt an email
|
||||||
#cat ${tmpLog} | mail -s "${txtSubject}:${status}" ${txtEmail};
|
#cat ${tmpLog} | mail -s "${txtSubject}:${status}" ${txtEmail};
|
||||||
echo "All members down sending slack alert with /usr/local/bin/slacker -c ${txtSlackChannel} -t ${txtSlackBotToken}" >> ${tmpLog}
|
echo "All members down sending slack alert with /usr/local/bin/slacker -c ${txtSlackChannel} -t ${txtSlackBotToken}" >> ${tmpLog}
|
||||||
cat ${tmpLog} | slacker -c ${txtSlackChannel} -t ${txtSlackBotToken}
|
cat ${tmpLog} | /home/ubuntu/.local/bin/slacker -c ${txtSlackChannel} -t ${txtSlackBotToken}
|
||||||
# fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue