0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-24 17:29:39 +00:00
alerta_alerta/sbin/alert-acker.sh
2012-08-13 10:11:27 +01:00

11 lines
240 B
Bash
Executable file

#!/usr/bin/env sh
if [ "$1" = "" ]; then
echo "Must supply alert ID to acknowledge"
exit 1
else
ALERTID=$1
fi
curl -XPUT http://${2:-'monitoring.guprod.gnl'}/alerta/api/v1/alerts/alert/${ALERTID} -d '{ "status": "ACK" }'
echo