12 lines
287 B
Bash
Executable File
12 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LEVEL=${1}
|
|
shift
|
|
|
|
ATTACHMENT="$@"
|
|
|
|
if [ -n "${MONIT_SERVICE}${MONIT_EVENT}" -a -n "$MONIT_DESCRIPTION" ]; then
|
|
[ -x /var/lib/cloudbender/sns_alarm.sh ] && \
|
|
/var/lib/cloudbender/sns_alarm.sh "$MONIT_SERVICE - $MONIT_EVENT" "$MONIT_DESCRIPTION" "$LEVEL" "$ATTACHMENT"
|
|
fi
|