mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix alerts error with closed_alerts
This commit is contained in:
parent
9f3bb73ddc
commit
937b6cf2b5
1 changed files with 3 additions and 3 deletions
|
|
@ -1554,9 +1554,9 @@ function housekeepingAlertsMakeRoom(ifId)
|
|||
-- tprint({e=e, total=e.count, to_keep=to_keep, to_delete=to_delete, to_delete_not_discounted=(e.count - max_num_alerts_per_entity)})
|
||||
local cleanup = interface.queryAlertsRaw(
|
||||
"DELETE",
|
||||
"WHERE alert_entity="..e.alert_entity.." AND alert_entity_val=\""..e.alert_entity_val.."\" "
|
||||
.." AND rowid NOT IN (SELECT rowid FROM closed_alerts WHERE alert_entity="..e.alert_entity.." AND alert_entity_val=\""..e.alert_entity_val.."\" "
|
||||
.." ORDER BY alert_tstamp DESC LIMIT "..to_keep..")")
|
||||
statusFilter("WHERE alert_entity="..e.alert_entity.." AND alert_entity_val=\""..e.alert_entity_val.."\" "
|
||||
.." AND rowid NOT IN (SELECT rowid FROM alerts WHERE alert_entity="..e.alert_entity.." AND alert_entity_val=\""..e.alert_entity_val.."\" "
|
||||
.." ORDER BY alert_tstamp DESC LIMIT "..to_keep..")", false))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue