Fixed SQL errors.

This commit is contained in:
Ramon Novoa 2014-10-27 16:43:48 +01:00
parent 987bc2b3c6
commit 365394410b
1 changed files with 5 additions and 4 deletions

View File

@ -244,7 +244,8 @@ INSERT INTO `talert_commands` (`name`, `command`, `description`, `internal`, `fi
-- ---------------------------------------------------------------------
-- Table `talert_actions`
-- ---------------------------------------------------------------------
INSERT INTO `talert_actions` (`name`, `id_alert_command`, `field1`, `field2`, `field3`, `field4`, `field5`, `field6`, `field7`, `field8`, `field9`, `field10`, `id_group`, `action_threshold`) VALUES ('Create a ticket in Integria IMS',13,'http://localhost/integria/include/api.php','1234','admin','_agent_: _alert_name_','1','3','_alert_description_','','','',0,0);
SET @command_id = (SELECT id FROM talert_commands WHERE name='Integria IMS Ticket');
INSERT INTO `talert_actions` (`name`, `id_alert_command`, `field1`, `field2`, `field3`, `field4`, `field5`, `field6`, `field7`, `field8`, `field9`, `field10`, `id_group`, `action_threshold`) VALUES ('Create a ticket in Integria IMS',@command_id,'http://localhost/integria/include/api.php','1234','admin','_agent_: _alert_name_','1','3','_alert_description_','','','',0,0);
-- ---------------------------------------------------------------------
-- Table `tconfig`
@ -254,9 +255,9 @@ DELETE FROM `tconfig` WHERE `token`='sla_period';
-- ---------------------------------------------------------------------
-- Table `network_component`
-- ---------------------------------------------------------------------
UPDATE FROM `network_component` SET `module_inteval`= 3600 WHERE `id_nc`=53;
UPDATE FROM `network_component` SET `post_process`= 0.000000115740741 WHERE `id_nc`=53;
UPDATE FROM `network_component` SET `unit`= 'day' WHERE `id_nc`=53;
UPDATE `tnetwork_component` SET `module_interval`= 3600 WHERE `id_nc`=53;
UPDATE `tnetwork_component` SET `post_process`= 0.000000115740741 WHERE `id_nc`=53;
UPDATE `tnetwork_component` SET `unit`= 'day' WHERE `id_nc`=53;
-- ---------------------------------------------------------------------
-- Table `tnetwork_component`