monfront - add missing column to unhandled checks

The unhandled checks didn't contain the mapping id, which caused an
error at scan time.
This commit is contained in:
Gibheer 2018-12-11 13:33:06 +01:00
parent 564ec5c2a3
commit feee448af6
1 changed files with 1 additions and 1 deletions

View File

@ -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