aboutsummaryrefslogtreecommitdiff
path: root/cmd/moncheck
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2018-12-11 13:24:13 +0100
committerGibheer <gibheer+git@zero-knowledge.org>2018-12-11 13:24:13 +0100
commit02925bc33574fe9fe9669fc7afb797d1fc293583 (patch)
treecc4a3e755ea605096703730a2e373848284a6a9a /cmd/moncheck
parent24456400eb2adcf99bd5aba0b9ca1427b56472fe (diff)
moncheck - add alarm mapping to notification
This should enable the notifier to make a decent decision on what to do.
Diffstat (limited to 'cmd/moncheck')
-rw-r--r--cmd/moncheck/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/moncheck/main.go b/cmd/moncheck/main.go
index 766aa37..bea8e77 100644
--- a/cmd/moncheck/main.go
+++ b/cmd/moncheck/main.go
@@ -167,7 +167,7 @@ where check_id = $1`, id, &states, &msg, states.ToOK()); err != nil {
continue
}
if notify {
- if _, err := tx.Exec("insert into notifications(check_id, states, output) values ($1, $2, $3);", &id, &states, &msg); err != nil {
+ if _, err := tx.Exec("insert into notifications(check_id, states, output, mapping_id) values ($1, $2, $3, $4);", &id, &states, &msg, &mapId); err != nil {
log.Printf("[%d] could not create notification for '%d': %s", thread, id, err)
tx.Rollback()
continue