Commit Graph

46 Commits

Author SHA1 Message Date
96d853fad6 monfront - add check detail view
This adds a detail view for a single check. The purpose is to view
notifications for this check alone and get the context information on
the node it belongs to, the command and settings.
2019-01-09 20:17:49 +01:00
3b222e06ed moncheck - make workers configurable
The default worker count was set to 25, which might be too much
depending on the amount of cores available. Now make the default 25 and
let people decide on how many they want to use.
2019-01-07 15:50:55 +01:00
9ea6b0f343 fix the release script
The config directory was pushed into a subdirectory, when it wasn't
necessary. This lead to a double monzero path mention.
2019-01-07 09:43:18 +01:00
7c541189fe monfront - fix actions on checks
This is related to #6. The muting, enable and disable were not working
properly, because the date was not set when the check was updated.

With this comes also the first icon to represent the muted status.
2019-01-03 19:48:17 +01:00
db3a7cdda9 monfront - add some cleanup and search
Monfront now has a basic search functionality for nodes. It also got
some nicer design to make it more useable.
2019-01-03 13:44:21 +01:00
c646179fa9 monfront - show groups
This is the first step to view the group status. The templates were
split into multipe parts, to make reuse easier.
2019-01-02 16:09:04 +01:00
887e8ea089 monfront - fix mute options
After the notifications were extracted the mute option didn't work
anymore. With this fix, they are back to working.
2018-12-14 19:52:21 +01:00
17457f0e53 monwork - add more tests to the fields function 2018-12-14 14:04:48 +01:00
10fb89a017 monwork - readd stringToShellFields
This function was needed as bytes.Fields had some problems with the
quoting.
Now there are test cases too so that errors can be found more easily.
2018-12-14 14:02:58 +01:00
ff79584084 monwork - bytes.Fields works well enough
This function existed to group fields together, but it had an issue and
grouped them wrongly. This caused issues later in the check stage.
2018-12-13 16:20:42 +01:00
82e582f022 monwork - add missing continues
This can lead to longer run times than necessary.
2018-12-13 15:37:03 +01:00
e151f056ad monfront - remove notify flag
This will be replaced with a different system in the long term.
2018-12-12 14:06:16 +01:00
affbe8c420 moncheck - log the state which wasn't found 2018-12-12 14:05:46 +01:00
cb5b49e4d6 use GOOS to compile for correct environment 2018-12-12 14:04:22 +01:00
7e387d55b9 add missing unique constraint
There was a unique constraint missing on the active_checks table.
2018-12-12 13:33:30 +01:00
6beb37eb96 monwork - ignore missing notify column
The notify column was removed when moving everything into the
notification tables.
2018-12-12 13:26:41 +01:00
6274230442 fix some syntax errors in the schema definition 2018-12-12 13:25:40 +01:00
c404a6c778 add makefile to create release
This adds a makefile to build a release of the programs.
2018-12-12 11:19:26 +01:00
cb5cca2c06 monfront - add example config 2018-12-12 10:38:04 +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
02e8142b6d extend the README with a configuration section
This section should give a short introduction on how to configure the
system.
There should be a frontend to do the same thing later.
2018-12-11 13:44:03 +01:00
feee448af6 monfront - add missing column to unhandled checks
The unhandled checks didn't contain the mapping id, which caused an
error at scan time.
2018-12-11 13:33:06 +01:00
564ec5c2a3 monfront - add a timeout with reload
This finally adds a reload to the frontend, so that one hasn't to reload
manually all the time.
2018-12-11 13:25:01 +01:00
5661459628 add alarm mapping to notifications 2018-12-11 13:24:42 +01:00
02925bc335 moncheck - add alarm mapping to notification
This should enable the notifier to make a decent decision on what to do.
2018-12-11 13:24:13 +01:00
24456400eb moncheck - add mapping levels
This adds mapping levels to the check runner. When the exit code is
returned, the actual level is looked up using the configured mapping.
After that, the state is entered into the table and added the same way
to the notifications.
2018-12-11 13:02:23 +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
c62916c46e monwork - make updates for nodes and commands
This change triggers updates for checks when a node or command was
updated. This way everything gets adjusted without much work.
2018-12-11 09:25:45 +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
a6ac232392 monwork - fix an issue with configuration generation
New checks were not added to the active_checks, because they were never
touched before.
2018-12-10 09:35:49 +01:00
6c2bea5365 monfront - make fake groups in frontend
It would have been nice to use rowgrouping for the node name, but
somehow it wasn't easy to get the rowcount. So this should do for now.
2018-12-10 09:34:45 +01:00
40e744cd6a moncheck - add PATH environment
This adds the path environment configuration to control which programs
to call.
2018-12-10 09:34:00 +01:00
3400167c98 monfront - add initial work for unhandled links
This will return the unhandled groups/checks/whatever but is still work
in progress.
2018-11-29 10:56:20 +01:00
0456e8e407 moncheck - add timeout to example config 2018-11-29 10:46:38 +01:00
83a1b45b19 moncheck - add timeout option
Before the timeout for checks was static. With this change it is finally
an option to configure.
2018-11-29 10:45:33 +01:00
3b8e27706b monfront - add initial version
This version can already show the list of checks, their last state and
add ways to manipulate the check or active check.
2018-11-20 21:48:16 +01:00
ddc0053ce8 moncheck - add function to remove acknowledge
An acknowledge should be set to false when the alarm switches to an ok
state.
2018-11-20 21:47:35 +01:00
a0c78acdda ignore live config files 2018-11-19 14:17:11 +01:00
4d57bfaecb add example config files 2018-11-19 14:15:31 +01:00
b7cacc928f remove debug output
This output was poluting the log and wasn't necessary.
2018-11-19 11:30:29 +01:00
4db00b00ed moncheck: fix error reporting of daedlines
The deadlines were wrong all over the place, so this commit finally
fixes that.
2018-11-18 21:38:04 +01:00
2a4332951a monwork - add new server
This server generates active checks from the check configuration.
2018-11-16 20:10:15 +01:00
1960907547 moncheck - adjust queries to take less data
With selecting only the bare minimum we get much nicer performance.
2018-11-16 20:09:31 +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