From 5f1454bceb3303dabffc50661afd6cf810aa75bf Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 15 Sep 2026 20:58:50 +0200 Subject: Draft configuration format --- blog/content/notes/tech/a-monitoring-system.gmi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'blog') 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 (!) -- cgit v1.2.3