change disk alert to monitor usage of any disk, not only root

This commit is contained in:
Henry Dollman
2024-10-16 17:21:05 -04:00
parent 59d541dd1d
commit 6b6d3fabc0
3 changed files with 65 additions and 32 deletions

View File

@@ -315,7 +315,9 @@ func (h *Hub) updateSystem(record *models.Record) {
}
}
// system info alerts (todo: extra fs alerts)
h.am.HandleSystemAlerts(record, systemData.Info, systemData.Stats.Temperatures)
if err := h.am.HandleSystemAlerts(record, systemData.Info, systemData.Stats.Temperatures, systemData.Stats.ExtraFs); err != nil {
h.app.Logger().Error("System alerts error", "err", err.Error())
}
}
// set system to specified status and save record