From feee448af6685e7d368da19b5a879efb6a291744 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Tue, 11 Dec 2018 13:33:06 +0100 Subject: monfront - add missing column to unhandled checks The unhandled checks didn't contain the mapping id, which caused an error at scan time. --- cmd/monfront/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/monfront/main.go') 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 -- cgit v1.2.3-70-g09d2