#!/bin/bash
warn_icon="⚠"
message=$(cat <<- EOF
${warn_icon} Service: $MONIT_SERVICE on $MONIT_HOST
Event: $MONIT_EVENT
When: $MONIT_DATE
Info: $MONIT_DESCRIPTION
)
EOF
)
/usr/local/bin/matrix-commander.py \
--credentials /etc/matrix-commander/credentials.json \
--store /var/lib/matrix-commander/store/ \
--html \
-m "${message}"