Repository navigation
v0.2.0
Added
sustain_checks(default1): a metric must stay at or above a level for N consecutive checks before the alert is sent. Recovery is never delayed.top_processes(default on,count3): when CPU or memory alerts, the email and message list the top consumers (command names only, never arguments). Also sent astop_processesin the webhook payload. Disk is not supported.
Changed
- CPU is now the average over the whole time since the previous check (from cumulative counters saved in the state file), not a 1-second sample taken right when cron fires. It now matches what your host panel shows. Without a previous sample (first run, reboot) it falls back to a 1-second sample once.
- Runs are faster: the 1-second wait is gone from the normal path.
- The alert title names only the most severe alert (highest level, then highest value) plus
(+N more). The body lists every alert, then the top processes, then the current metrics on one line. The email andmessage_title/message_bodyuse the same text. - The state file now keeps
levels,pendingandcpu_sample. Old state files are read as-is and migrated silently. The CPU sample is saved on every run, even when delivery fails; alert levels still only advance after a successful delivery, so a failed alert is retried.
Fixed
- False CPU alerts: the 1-second sample landed on the minutes when other scheduled jobs start (every 5 minutes), reading far above the real load.
Config changes: new optional keys sustain_checks and top_processes, both defaulted. Nothing to edit in an existing config. Cron and the sosmonitor command are unchanged, so there is no need to run install again.