alpine-overlay/kubezero/zdt-base/monit_alert.sh.aws

12 lines
275 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
LEVEL=${1}
shift
ATTACHMENT="$@"
if [ -n "${MONIT_SERVICE}${MONIT_EVENT}" -a -n "$MONIT_DESCRIPTION" ]; then
2023-08-18 15:17:00 +00:00
[ -x /var/lib/cloud/sns_alarm.sh ] && \
/var/lib/cloud/sns_alarm.sh "$MONIT_SERVICE - $MONIT_EVENT" "$MONIT_DESCRIPTION" "$LEVEL" "$ATTACHMENT"
fi