Commit Graph

9 Commits

Author SHA1 Message Date
7e387d55b9 add missing unique constraint
There was a unique constraint missing on the active_checks table.
2018-12-12 13:33:30 +01:00
6274230442 fix some syntax errors in the schema definition 2018-12-12 13:25:40 +01:00
af843d76e1 moncheck - move notifications to dedicated table
It would be nice to support multiple notification mechanisms with a way
to disable all or part of them. So for now, this is bound to the check
but may change again in the future.

Apart from that, all notifications get written to the notification
table, so that the notifiers can do their job and ACK their own
notifications.
2018-12-11 20:21:14 +01:00
5661459628 add alarm mapping to notifications 2018-12-11 13:24:42 +01:00
dece1ac2dc add level mappings
This allows to map the command exit codes to any other output level
which can then be reported by the notification plugin.
With the provided colors, the frontend will show them accordingly.
2018-12-11 12:37:30 +01:00
3f4b1b2421 add new schema
This still needs some cleanup, but oh well. The most important thing is,
that it works for now.
2018-12-10 10:48:21 +01:00
f759b2f993 remove unique constraint on notifications
That constraint would hinder the addition of multiple notifications, so
it needs to be removed.
2018-11-16 20:08:12 +01:00
6da89f825c add unique index on check_id 2018-11-16 11:16:30 +01:00
bfd2b5d324 initial commit 2018-11-16 10:39:21 +01:00