monitoring: Don't send so many alerts
This commit is contained in:
parent
31f033f7f5
commit
4da91a76a4
2 changed files with 37 additions and 3 deletions
|
@ -19,6 +19,14 @@ rawurlencode() {
|
|||
_ALERT="${encoded}"
|
||||
}
|
||||
|
||||
rawurlencode $@
|
||||
if [ "$1" == "" ] ; then
|
||||
echo "Message?"
|
||||
exit
|
||||
fi
|
||||
if [ "$1" == "noenc" ] ; then
|
||||
_ALERT=${@:2}
|
||||
else
|
||||
rawurlencode $@
|
||||
fi
|
||||
|
||||
curl -s "<%= @bot_alert_url %>$_ALERT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue