@cryptotaxi247 / netdata-1 / commits / b62cc4c40

Alerta notifier. family value was missing in event, this may cause automatic correlation to fail with some alarms.

Alerta notifier. family value was missing in event, this may cause automatic correlation to fail with some alarms.

Christian Pradelli committed Jan 12, 2018 at 08:32 UTC b62cc4c40247920204b52c5b318dc63290582356
1 file changed +2 -1
plugins.d/alarm-notify.sh
+2 -1
@@ -1291,13 +1291,14 @@ send_alerta() {
1291
1292 info=$( echo -n ${info})
1293
1294 + # the "event" property must be unique and repetible between states to let alerta do automatic correlation using severity value
1295 for channel in ${channels}
1296 do
1297 content="{"
1298 content="$content \"environment\": \"${channel}\","
1299 content="$content \"service\": [\"${host}\"],"
1300 content="$content \"resource\": \"${host}\","
1300 - content="$content \"event\": \"${chart}.${name}\","
1301 + content="$content \"event\": \"${name}.${chart} (${family})\","
1302 content="$content \"severity\": \"${severity}\","
1303 content="$content \"value\": \"${alarm}\","
1304 content="$content \"text\": \"${info}\""