diff options
| author | alex <alex@pdp7.net> | 2026-09-15 20:58:50 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-09-15 20:58:50 +0200 |
| commit | 5f1454bceb3303dabffc50661afd6cf810aa75bf (patch) | |
| tree | 9a4f5342cf429d2ffdad51e8875ce4584ae0585b /blog/content | |
| parent | 645732124de4716a338046ae77200e26d0872875 (diff) | |
Draft configuration format
Diffstat (limited to 'blog/content')
| -rw-r--r-- | blog/content/notes/tech/a-monitoring-system.gmi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/blog/content/notes/tech/a-monitoring-system.gmi b/blog/content/notes/tech/a-monitoring-system.gmi index 2c55f3ec..0de449c2 100644 --- a/blog/content/notes/tech/a-monitoring-system.gmi +++ b/blog/content/notes/tech/a-monitoring-system.gmi @@ -52,6 +52,24 @@ If the process return code is not 0, then the status is equivalent to: An adapter executable can be provided to adapt Nagios plugins to the new API. +## Configuration + +``` +{ + "checks": [ + { + "id": "{string}", + "command": ["/full/path/to/check", "arg1", "arg2", "arg3"], + "requires": [ + {"check-id": "{check-id}", "in-last-seconds": "{seconds}"}, + ... + ] + "period-seconds": "{period seconds}" + }, + ... + ] +} + ## TODOs * Alerting can possibly be a user interface based on the API (!) |
