Fixed Oracle sql data
This commit is contained in:
parent
b3917cdd30
commit
064ef44dcf
|
@ -41,7 +41,7 @@ INSERT INTO talert_commands (id, name, command, description, internal, fields_de
|
|||
INSERT INTO talert_commands (id, name, command, description, internal, fields_descriptions, fields_values) VALUES (9,'SMS','sendsms _field1_ _field2_','Send SMS using the Pandora FMS standard SMS device, using smstools.  Uses field2 as text message, field1 as destination phone (include international prefix!)',0,'[\Destination number\",\Message\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]','[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]');
|
||||
INSERT INTO talert_commands (id, name, command, description, internal, fields_descriptions, fields_values) VALUES (10,'Validate Event','Internal type','This alert validate the events matched with a module given the agent name (_field1_) and module name (_field2_)',1,'[\Agent name\",\Module name\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]','[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]');
|
||||
INSERT INTO talert_commands (id, name, command, description, internal, fields_descriptions, fields_values) VALUES (11,'Integria IMS Ticket','Internal type','This alert create a ticket into your Integria IMS.',1,'[\Integria IMS API path\",\Integria IMS API pass\",\Integria IMS user\",\Ticket title\",\Ticket group ID\",\Ticket priority\",\Ticket description\"]','[\"\",\"\",\"\",\"\",\"\",\"10,Maintenance;0,Informative;1,Low;2,Medium;3,Serious;4,Very Serious\",\"\"]');
|
||||
INSERT INTO talert_commands (id, name, command, description, internal, fields_descriptions, fields_values) VALUES (12,'Remote agent control','/usr/share/pandora_server/util/udp_client.pl _address_ 41122 "_field1_"','This command is used to send commands to the Pandora FMS agents with the UDP server enabled. The UDP server is used to order agents (Windows and UNIX) to "refresh" the agent execution: that means, to force the agent to execute and send data',0,'[\Command\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]','[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]');
|
||||
INSERT INTO talert_commands (id, name, command, description, internal, fields_descriptions, fields_values) VALUES (12,'Remote agent control','/usr/share/pandora_server/util/udp_client.pl _address_ 41122 "_field1_"','This command is used to send commands to the Pandora FMS agents with the UDP server enabled. The UDP server is used to order agents (Windows and UNIX) to "refresh" the agent execution: that means, to force the agent to execute and send data',0,'[\"Command\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]','[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]');
|
||||
|
||||
-- Update curr val of sequence
|
||||
update_currval('talert_commands', 'id');
|
||||
|
@ -58,13 +58,13 @@ BEGIN
|
|||
LOCK TABLE tconfig IN EXCLUSIVE MODE;
|
||||
INSERT INTO tconfig (token, value) VALUES ('language','en_GB');
|
||||
INSERT INTO tconfig (token, value) VALUES ('block_size','20');
|
||||
INSERT INTO tconfig (token, value) VALUES ('days_purge','60');
|
||||
INSERT INTO tconfig (token, value) VALUES ('days_purge','45');
|
||||
INSERT INTO tconfig (token, value) VALUES ('days_delete_unknown','0');
|
||||
INSERT INTO tconfig (token, value) VALUES ('days_compact','15');
|
||||
INSERT INTO tconfig (token, value) VALUES ('days_compact','0');
|
||||
INSERT INTO tconfig (token, value) VALUES ('graph_res','5');
|
||||
INSERT INTO tconfig (token, value) VALUES ('step_compact','1');
|
||||
INSERT INTO tconfig (token, value) VALUES ('db_scheme_version','4.0-dev');
|
||||
INSERT INTO tconfig (token, value) VALUES ('db_scheme_build','PD110122');
|
||||
INSERT INTO tconfig (token, value) VALUES ('db_scheme_version','6.0RC1');
|
||||
INSERT INTO tconfig (token, value) VALUES ('db_scheme_build','PD150901');
|
||||
INSERT INTO tconfig (token, value) VALUES ('show_unknown','0');
|
||||
INSERT INTO tconfig (token, value) VALUES ('show_lastalerts','1');
|
||||
INSERT INTO tconfig (token, value) VALUES ('style','pandora');
|
||||
|
@ -93,8 +93,8 @@ INSERT INTO tconfig (token, value) VALUES ('timezone', 'Europe/Berlin');
|
|||
INSERT INTO tconfig (token, value) VALUES ('string_purge', 7);
|
||||
INSERT INTO tconfig (token, value) VALUES ('audit_purge', 15);
|
||||
INSERT INTO tconfig (token, value) VALUES ('trap_purge', 7);
|
||||
INSERT INTO tconfig (token, value) VALUES ('event_purge', 15);
|
||||
INSERT INTO tconfig (token, value) VALUES ('gis_purge', 15);
|
||||
INSERT INTO tconfig (token, value) VALUES ('event_purge', 7);
|
||||
INSERT INTO tconfig (token, value) VALUES ('gis_purge', 7);
|
||||
INSERT INTO tconfig (token, value) VALUES ('sound_alert', 'include/sounds/air_shock_alarm.wav');
|
||||
INSERT INTO tconfig (token, value) VALUES ('sound_critical', 'include/sounds/Star_Trek_emergency_simulation.wav');
|
||||
INSERT INTO tconfig (token, value) VALUES ('sound_warning', 'include/sounds/negativebeep.wav');
|
||||
|
@ -123,7 +123,7 @@ INSERT INTO tconfig (token, value) VALUES ('meta_style', 'meta_pandora');
|
|||
INSERT INTO tconfig (token, value) VALUES ('enable_refr', 0);
|
||||
INSERT INTO tconfig (token, value) VALUES ('meta_num_elements', 100);
|
||||
INSERT INTO tconfig (token, value) VALUES ('update_manager_installed', 1);
|
||||
INSERT INTO tconfig (token, value) VALUES ('num_files_attachment', 100);
|
||||
INSERT INTO tconfig (token, value) VALUES ('num_files_attachment', 250);
|
||||
INSERT INTO tconfig (token, value) VALUES ('show_vc', 1);
|
||||
INSERT INTO tconfig (token, value) VALUES ('inventory_changes_blacklist', '1,2,20,21');
|
||||
INSERT INTO tconfig (token, value) VALUES ('custom_report_front', 0);
|
||||
|
@ -131,6 +131,8 @@ INSERT INTO tconfig (token, value) VALUES ('custom_report_front_font', 'FreeSans
|
|||
INSERT INTO tconfig (token, value) VALUES ('custom_report_front_logo', 'images/pandora_logo_white.jpg');
|
||||
INSERT INTO tconfig (token, value) VALUES ('custom_report_front_header', '');
|
||||
INSERT INTO tconfig (token, value) VALUES ('custom_report_front_footer', '');
|
||||
INSERT INTO tconfig (token, value) VALUES ('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}');
|
||||
|
||||
COMMIT;
|
||||
END;;
|
||||
|
||||
|
@ -334,8 +336,8 @@ END;;
|
|||
--
|
||||
BEGIN
|
||||
LOCK TABLE tusuario IN EXCLUSIVE MODE;
|
||||
INSERT INTO tusuario (id_user, fullname, firstname, lastname, middlename, password, comments, last_connect, registered, email, phone, is_admin, flash_chart, language, block_size, section) VALUES
|
||||
('admin', 'Pandora', 'Pandora', 'Admin', '', '1da7ee7d45b96d0e1f45ee4ee23da560', 'Admin Pandora', 1232642121, 0, 'admin@example.com', '555-555-5555', 1, -1, 'default', 0, 'Default');
|
||||
INSERT INTO tusuario (id_user, fullname, firstname, lastname, middlename, password, comments, last_connect, registered, email, phone, is_admin, flash_chart, language, block_size, section, data_section, metaconsole_access) VALUES
|
||||
('admin', 'Pandora', 'Pandora', 'Admin', '', '1da7ee7d45b96d0e1f45ee4ee23da560', 'Admin Pandora', 1232642121, 0, 'admin@example.com', '555-555-5555', 1, -1, 'default', 0, 'Default', '', 'advanced');
|
||||
COMMIT;
|
||||
END;;
|
||||
|
||||
|
@ -344,8 +346,8 @@ END;;
|
|||
--
|
||||
BEGIN
|
||||
LOCK TABLE tusuario_perfil IN EXCLUSIVE MODE;
|
||||
INSERT INTO tusuario_perfil (id_up, id_usuario, id_perfil, id_grupo, assigned_by, id_policy)
|
||||
VALUES (1,'admin',5,0,'admin',0);
|
||||
INSERT INTO tusuario_perfil (id_up, id_usuario, id_perfil, id_grupo, assigned_by, id_policy, tags)
|
||||
VALUES (1,'admin',5,0,'admin',0,'');
|
||||
COMMIT;
|
||||
END;;
|
||||
|
||||
|
@ -1088,6 +1090,7 @@ INSERT INTO tnetwork_component_group (id_sg, name, parent) VALUES (45,'Solaris',
|
|||
INSERT INTO tnetwork_component_group (id_sg, name, parent) VALUES (46,'AIX',5);
|
||||
INSERT INTO tnetwork_component_group (id_sg, name, parent) VALUES (47,'BSD',5);
|
||||
INSERT INTO tnetwork_component_group (id_sg, name, parent) VALUES (48,'MacOS',0);
|
||||
INSERT INTO tnetwork_component_group (id_sg, name, parent) VALUES (49,'DB2',15);
|
||||
|
||||
-- Update curr val of sequence
|
||||
update_currval('tnetwork_component_group', 'id_sg');
|
||||
|
@ -1107,6 +1110,7 @@ EXECUTE IMMEDIATE 'ALTER TRIGGER tnetwork_profile_inc DISABLE';
|
|||
|
||||
INSERT INTO tnetwork_profile (id_np, name, description) VALUES (2,'Basic Monitoring','Only ICMP check');
|
||||
INSERT INTO tnetwork_profile (id_np, name, description) VALUES (3,'Basic DMZ Server monitoring','This group of network checks, checks for default services located on DMZ servers...');
|
||||
INSERT INTO tnetwork_profile (id_np, name, description) VALUES (7,'Linux Server with SNMP','Group of "basic" modules for SNMP monitoring of Linux remote devices. This includes basic conectivity checks and a full range of System');
|
||||
|
||||
-- Update curr val of sequence
|
||||
update_currval('tnetwork_profile', 'id_np');
|
||||
|
@ -1127,6 +1131,15 @@ INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (34,3);
|
|||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (37,3);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (39,3);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (38,3);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (4,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (34,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (30,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (27,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (24,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (49,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (51,7);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (36,2);
|
||||
INSERT INTO tnetwork_profile_component (id_nc, id_np) VALUES (36,3);
|
||||
|
||||
COMMIT;
|
||||
END;;
|
||||
|
@ -1392,6 +1405,7 @@ INSERT INTO tevent_response VALUES (2,'SSH to host','Connect via&
|
|||
INSERT INTO tevent_response VALUES (3,'Create incident from event','Create a incident from the event with the standard incidents system of Pandora FMS','index.php?sec=workspace&sec2=operation/incidents/incident_detail&insert_form&from_event=_event_id_','url',0,0,0,1,'');
|
||||
INSERT INTO tevent_response VALUES (4,'Create Integria IMS incident from event','Create a incident from the event with integria incidents system of Pandora FMS. 

Is necessary to enable and configure the Integria incidents in Pandora FMS setup.','index.php?sec=workspace&sec2=operation/integria_incidents/incident&tab=editor&from_event=_event_id_','url',0,0,0,1,'');
|
||||
INSERT INTO tevent_response VALUES (5,'Restart agent','Restart the agent with using UDP protocol.

To use this response is necessary to have installed Pandora FMS server and console in the same machine.','/usr/share/pandora_server/util/udp_client.pl _agent_address_ 41122 "REFRESH AGENT"','command',0,620,500,0,'');
|
||||
INSERT INTO tevent_response VALUES (6,'Ping to module agent host','Ping to the module agent host','ping -c 5 _module_address_','command',0,620,500,0,'');
|
||||
|
||||
-- Update curr val of sequence
|
||||
update_currval('tevent_response', 'id');
|
||||
|
|
Loading…
Reference in New Issue