ent 7914 table change for status scaling based on time

This commit is contained in:
edu.corral 2022-10-26 08:51:51 +02:00
parent 66a5c8f7eb
commit 90f8122232
2 changed files with 2 additions and 8 deletions

View File

@ -12,9 +12,6 @@ ALTER TABLE `tnetwork_component` ADD COLUMN `warning_time` int(10) UNSIGNED DEFA
ALTER TABLE `tlocal_component` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
ALTER TABLE `tpolicy_modules` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
ALTER TABLE `tagente_modulo` ADD COLUMN `warning_count` int(10) UNSIGNED DEFAULT 0;
ALTER TABLE `tnetwork_component` ADD COLUMN `warning_count` int(10) UNSIGNED DEFAULT 0;
ALTER TABLE `tlocal_component` ADD COLUMN `warning_count` int(10) UNSIGNED DEFAULT 0;
ALTER TABLE `tpolicy_modules` ADD COLUMN `warning_count` int(10) UNSIGNED DEFAULT 0;
ALTER TABLE `tagente_estado` ADD COLUMN `warning_count` int(10) UNSIGNED DEFAULT 0;
COMMIT;

View File

@ -172,6 +172,7 @@ CREATE TABLE IF NOT EXISTS `tagente_estado` (
`last_dynamic_update` BIGINT NOT NULL DEFAULT 0,
`last_unknown_update` BIGINT NOT NULL DEFAULT 0,
`last_status_change` BIGINT NOT NULL DEFAULT 0,
`warning_count` INT UNSIGNED DEFAULT 0,
PRIMARY KEY (`id_agente_estado`),
KEY `status_index_1` (`id_agente_modulo`),
KEY `idx_agente` (`id_agente`),
@ -272,7 +273,6 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` (
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
`warning_time` INT UNSIGNED DEFAULT 0,
`warning_count` INT UNSIGNED DEFAULT 0,
PRIMARY KEY (`id_agente_modulo`),
KEY `main_idx` (`id_agente_modulo`,`id_agente`),
KEY `tam_agente` (`id_agente`),
@ -1004,7 +1004,6 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` (
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
`warning_time` INT UNSIGNED DEFAULT 0,
`warning_count` INT UNSIGNED DEFAULT 0,
PRIMARY KEY (`id_nc`)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
@ -2424,7 +2423,6 @@ CREATE TABLE IF NOT EXISTS `tlocal_component` (
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
`warning_time` INT UNSIGNED DEFAULT 0,
`warning_count` INT UNSIGNED DEFAULT 0,
PRIMARY KEY (`id`),
FOREIGN KEY (`id_network_component_group`) REFERENCES tnetwork_component_group(`id_sg`)
ON DELETE CASCADE ON UPDATE CASCADE
@ -2508,7 +2506,6 @@ CREATE TABLE IF NOT EXISTS `tpolicy_modules` (
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
`warning_time` INT UNSIGNED DEFAULT 0,
`warning_count` INT UNSIGNED DEFAULT 0,
PRIMARY KEY (`id`),
KEY `main_idx` (`id_policy`),
UNIQUE (`id_policy`, `name`)