mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(instances): alert when a fault stops or pauses a VM
The VM page shows why a VM paused or stopped when nobody asked (a disk error, a crash, a kernel panic: instances.states.REASONS), but nobody learnt of it until they opened the page. While an alert channel is set, the worker reads every host's VM states each minute (one call a host, all hosts at once, 10 s at most) and queues one alert per fault; the VM keeps the fault it was alerted for, so a fault is told once and again only after the VM recovered.
This commit is contained in:
parent
c5a04e040d
commit
de9f37a20d
12 changed files with 143 additions and 7 deletions
|
|
@ -134,7 +134,7 @@ The QR code is mailed as a link to a page that shows it, good for one hour: the
|
|||
|
||||
## Alerts
|
||||
|
||||
On the Settings page (Alerts), **Alert e-mail addresses** get a mail, through the server's SMTP settings (`EMAIL_HOST` and the others, as for OTP), and **Alert webhook** a JSON POST (`subject`, `text`, `time`; Slack and Mattermost take it) when a backup job fails, a scheduled backup is not taken (not for a host in maintenance), the daily target check finds backups missing, a verification finds a backup damaged, or a job ends uncertain. The job worker sends them within a minute and tries a failed channel again for ten minutes.
|
||||
On the Settings page (Alerts), **Alert e-mail addresses** get a mail, through the server's SMTP settings (`EMAIL_HOST` and the others, as for OTP), and **Alert webhook** a JSON POST (`subject`, `text`, `time`; Slack and Mattermost take it) when a backup job fails, a scheduled backup is not taken (not for a host in maintenance), the daily target check finds backups missing, a verification finds a backup damaged, a job ends uncertain, or a fault stops or pauses a VM (a disk error, a crash, a kernel panic: the reasons the VM page shows; once a fault, read every minute from each host, so told within two minutes). The job worker sends them within a minute and tries a failed channel again for ten minutes.
|
||||
|
||||
## Health check
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue