2022-11-24 19:01:40 +00:00
|
|
|
#!/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"
|
2022-11-24 19:01:40 +00:00
|
|
|
fi
|