This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variables | |
MINNS=1 | |
declare -a AUTHNS | |
# Functions | |
# Name: usage | |
# Description: shows how the script should be used and exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if echo "$MONIT_EVENT" | grep -q "succeeded$"; then | |
DISCORD_TITLE="[M/Monit] OK Alert" | |
DISCORD_COLOR="5763719" | |
elif echo "$MONIT_EVENT" | grep -q "failed$"; then | |
DISCORD_TITLE="[M/Monit] Critical Alert" | |
DISCORD_COLOR="15548997" | |
elif echo "$MONIT_EVENT" | grep -Eq "changed$|matched$"; then | |
DISCORD_TITLE="[M/Monit] Warning Alert" |