mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add startup alert engine and use it for MYSQL open files limit check
This commit is contained in:
parent
63402a848d
commit
d6469510ee
2 changed files with 3 additions and 2 deletions
|
|
@ -797,11 +797,11 @@ function checkOpenFiles()
|
|||
local engaged_alerts = alert_cache["num_alerts_engaged"]
|
||||
|
||||
if open_files_too_small == true then
|
||||
interface.engageInterfaceAlert(alert_id, alert_type, alert_severity, alert_msg)
|
||||
interface.engageInterfaceAlert(alertEngine("startup"), alert_id, alert_type, alert_severity, alert_msg)
|
||||
engaged_alerts = engaged_alerts + 1
|
||||
else
|
||||
if engaged_alerts > 0 then
|
||||
interface.releaseInterfaceAlert(alert_id, alert_type, alert_severity, alert_msg)
|
||||
interface.releaseInterfaceAlert(alertEngine("startup"), alert_id, alert_type, alert_severity, alert_msg)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue