From 8c73a0176d4a2616a57f6e39e2475ee7269fea4a Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 4 May 2023 20:18:36 +0200 Subject: [PATCH] Alert recuperation only executes one time if in threshold interval --- pandora_console/extras/mr/62.sql | 4 ++++ pandora_console/pandoradb.sql | 1 + 2 files changed, 5 insertions(+) diff --git a/pandora_console/extras/mr/62.sql b/pandora_console/extras/mr/62.sql index f8f611d817..660b8a5897 100644 --- a/pandora_console/extras/mr/62.sql +++ b/pandora_console/extras/mr/62.sql @@ -1,3 +1,4 @@ +-- Active: 1653046769261@@172.16.0.2@3306@pandora START TRANSACTION; CREATE TABLE IF NOT EXISTS `tconsole` ( @@ -197,4 +198,7 @@ ALTER TABLE `tnetflow_filter` ADD COLUMN `utimestamp` INT UNSIGNED NOT NULL DEFA ALTER TABLE `tnetflow_filter` ADD COLUMN `netflow_monitoring_interval` INT UNSIGNED NOT NULL DEFAULT 300; INSERT INTO `tconfig` (`token`, `value`) VALUES ('legacy_database_ha', 1); +ALTER TABLE `talert_template_module_actions` ADD COLUMN `recovered` TINYINT NOT NULL DEFAULT 0; + + COMMIT; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 6702300ce9..88c9b05c9e 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -572,6 +572,7 @@ CREATE TABLE IF NOT EXISTS `talert_template_module_actions` ( `fires_max` INT UNSIGNED DEFAULT 0, `module_action_threshold` INT NOT NULL DEFAULT 0, `last_execution` BIGINT NOT NULL DEFAULT 0, + `recovered` TINYINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`), FOREIGN KEY (`id_alert_template_module`) REFERENCES talert_template_modules(`id`) ON DELETE CASCADE ON UPDATE CASCADE,