aboutsummaryrefslogtreecommitdiff
path: root/cmd/monfront/main.go
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2018-12-11 13:33:06 +0100
committerGibheer <gibheer+git@zero-knowledge.org>2018-12-11 13:33:06 +0100
commitfeee448af6685e7d368da19b5a879efb6a291744 (patch)
tree953c2ea0457307a2fd747f69930745a13482bcc4 /cmd/monfront/main.go
parent564ec5c2a3551d4b5613f638dc9122fecc7125d0 (diff)
monfront - add missing column to unhandled checks
The unhandled checks didn't contain the mapping id, which caused an error at scan time.
Diffstat (limited to 'cmd/monfront/main.go')
-rw-r--r--cmd/monfront/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/monfront/main.go b/cmd/monfront/main.go
index 2178308..e128ed6 100644
--- a/cmd/monfront/main.go
+++ b/cmd/monfront/main.go
@@ -298,7 +298,7 @@ var (
join nodes n on c.node_id = n.id
join commands co on c.command_id = co.id
order by n.name, co.name;`
- SQLShowUnhandledChecks = `select c.id, n.name, co.name, ac.states[1] as state, ac.notify,
+ SQLShowUnhandledChecks = `select c.id, n.name, co.name, ac.mapping_id, ac.states[1] as state, ac.notify,
ac.enabled, ac.notice, ac.next_time, ac.msg
from active_checks ac
join checks c on ac.check_id = c.id