ent 7914 status scaling based on time
This commit is contained in:
parent
a3dc8be0e5
commit
0fd29caffe
|
@ -7,4 +7,9 @@ ALTER TABLE `tmodule_inventory` ADD COLUMN `script_path` VARCHAR(1000) DEFAULT '
|
|||
|
||||
ALTER TABLE `tevent_filter` ADD COLUMN `search_recursive_groups` INT NOT NULL DEFAULT 0;
|
||||
|
||||
ALTER TABLE `tagente_modulo` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `tnetwork_component` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
|
||||
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;
|
||||
|
||||
COMMIT;
|
||||
|
|
|
@ -174,6 +174,7 @@ ALTER TABLE tagente_modulo ADD COLUMN `prediction_samples` int(4) default 0;
|
|||
ALTER TABLE tagente_modulo ADD COLUMN `prediction_threshold` int(4) default 0;
|
||||
ALTER TABLE tagente_modulo ADD COLUMN `percentage_critical` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE tagente_modulo ADD COLUMN `percentage_warning` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE tagente_modulo ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tagente_estado`
|
||||
|
@ -197,15 +198,18 @@ ALTER TABLE tevent_filter ADD COLUMN `id_agent` int(25) DEFAULT 0;
|
|||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tnetwork_component` ADD COLUMN `percentage_critical` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `tnetwork_component` ADD COLUMN `percentage_warning` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `tnetwork_component` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tevent_filter`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tlocal_component` ADD COLUMN `percentage_critical` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `tlocal_component` ADD COLUMN `percentage_warning` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `local_component` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tevent_filter`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tpolicy_modules` ADD COLUMN `percentage_critical` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `tpolicy_modules` ADD COLUMN `percentage_warning` tinyint(1) UNSIGNED DEFAULT 0;
|
||||
ALTER TABLE `tpolicy_modules` ADD COLUMN `warning_time` int(10) UNSIGNED DEFAULT 0;
|
||||
|
|
|
@ -271,6 +271,7 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` (
|
|||
`debug_content` TEXT,
|
||||
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
|
||||
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
|
||||
`warning_time` INT UNSIGNED DEFAULT 0,
|
||||
PRIMARY KEY (`id_agente_modulo`),
|
||||
KEY `main_idx` (`id_agente_modulo`,`id_agente`),
|
||||
KEY `tam_agente` (`id_agente`),
|
||||
|
@ -1001,6 +1002,7 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` (
|
|||
`enabled` TINYINT UNSIGNED DEFAULT 1,
|
||||
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
|
||||
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
|
||||
`warning_time` INT UNSIGNED DEFAULT 0,
|
||||
PRIMARY KEY (`id_nc`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||
|
||||
|
@ -2419,6 +2421,7 @@ CREATE TABLE IF NOT EXISTS `tlocal_component` (
|
|||
`prediction_threshold` INT DEFAULT 0,
|
||||
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
|
||||
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
|
||||
`warning_time` 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
|
||||
|
@ -2501,6 +2504,7 @@ CREATE TABLE IF NOT EXISTS `tpolicy_modules` (
|
|||
`cps` INT NOT NULL DEFAULT 0,
|
||||
`percentage_warning` TINYINT UNSIGNED DEFAULT 0,
|
||||
`percentage_critical` TINYINT UNSIGNED DEFAULT 0,
|
||||
`warning_time` INT UNSIGNED DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `main_idx` (`id_policy`),
|
||||
UNIQUE (`id_policy`, `name`)
|
||||
|
|
Loading…
Reference in New Issue