mirror of
https://github.com/alerta/alerta.git
synced 2025-01-24 17:29:39 +00:00
22 lines
442 B
Bash
Executable file
22 lines
442 B
Bash
Executable file
#!/bin/bash
|
|
|
|
curl -XPOST http://${1:-'monitoring.gudev.gnl'}/alerta/api/v1/alerts/alert.json -d '{
|
|
"resource": "host5",
|
|
"event": "HostAvail",
|
|
"group": "Network",
|
|
"value": "Down",
|
|
"severity": "MAJOR",
|
|
"environment": [
|
|
"REL",
|
|
"QA"
|
|
],
|
|
"service": [
|
|
"SharedSvcs"
|
|
],
|
|
"tags": [
|
|
"location=London",
|
|
"region=EU"
|
|
],
|
|
"text": "Host is not responding to ping"
|
|
}'
|
|
echo
|