diff options
| author | arf20 <aruizfernandez05@gmail.com> | 2025-11-10 13:48:37 +0100 |
|---|---|---|
| committer | arf20 <aruizfernandez05@gmail.com> | 2025-11-10 13:48:37 +0100 |
| commit | 47992fa660c9c82858120c4d16fba0501903ceb9 (patch) | |
| tree | cf1564b51cfcd54ac5ed17e26bf98ce2e85a3c39 /monitor.c | |
| parent | 2ad586295dcd5dcef3d29af32998d55bb5c09843 (diff) | |
| download | arfnet2-status-47992fa660c9c82858120c4d16fba0501903ceb9.tar.gz arfnet2-status-47992fa660c9c82858120c4d16fba0501903ceb9.zip | |
REST POST API alert working
Diffstat (limited to 'monitor.c')
| -rw-r--r-- | monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } } |
