From 47992fa660c9c82858120c4d16fba0501903ceb9 Mon Sep 17 00:00:00 2001 From: arf20 Date: Mon, 10 Nov 2025 13:48:37 +0100 Subject: REST POST API alert working --- monitor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 109de89..a35e7ba 100644 --- a/monitor.c +++ b/monitor.c @@ -10,6 +10,7 @@ #include "monitor.h" +#include "alert.h" #include "config.h" @@ -499,6 +500,8 @@ monitor_update_events(const char *log_path) printf("[%s] [monitor] %s is now %s\n", timestr, targets[i].name, status_str[targets[i].status]); + alert_trigger(&targets[i]); + targets[i].status_1 = targets[i].status; } } -- cgit v1.2.3