Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(topology) Correct URL options for service pages #7327

Closed
wants to merge 13 commits into from
6 changes: 3 additions & 3 deletions www/install/insertTopology.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topo
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (21,'Downtimes',210,21001,10,1,'./include/monitoring/downtime/downtime.php',NULL,'0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (24,'Status Details',2,202,10,1,NULL,NULL,'0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (25,'Services',202,20201,20,7,'./include/monitoring/status/monitoringService.php', NULL,'0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (28,'Services Grid',202,20204,40,7,'./include/monitoring/status/monitoringService.php','&o=svcOV','0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (37,'Services by Hostgroup',202,20209,40,7,'./include/monitoring/status/monitoringService.php','&o=svcOVHG','0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (39,'Services by Servicegroup',202,20212,80,7,'./include/monitoring/status/monitoringService.php','&o=svcOVSG','0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (28,'Services Grid',202,20204,40,7,'./include/monitoring/status/monitoringService.php','&o=svcOV_pb','0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (37,'Services by Hostgroup',202,20209,40,7,'./include/monitoring/status/monitoringService.php','&o=svcOVHG_pb','0','0','1',NULL,NULL,NULL,'1');
INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (39,'Services by Servicegroup',202,20212,80,7,'./include/monitoring/status/monitoringService.php','&o=svcOVSG_pb','0','0','1',NULL,NULL,NULL,'1');

INSERT INTO `topology` (`topology_id`, `topology_name`, `topology_parent`, `topology_page`, `topology_order`, `topology_group`, `topology_url`, `topology_url_opt`, `topology_popup`, `topology_modules`, `topology_show`, `topology_style_class`, `topology_style_id`, `topology_OnClick`, `readonly`) VALUES (32,'Comments',210,21002,30,1,'./include/monitoring/comments/comments.php',NULL,'0','0','1',NULL,NULL,NULL,'1');

Expand Down
6 changes: 6 additions & 0 deletions www/install/sql/centreon/Update-DB-20.04.0-beta.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--
-- Update topology of service grid / by host group / by service group
--
UPDATE topology SET topology_url_opt = '&o=svcOV_pb' WHERE topology_page = 20204;
UPDATE topology SET topology_url_opt = '&o=svcOVHG_pb' WHERE topology_page = 20209;
UPDATE topology SET topology_url_opt = '&o=svcOVSG_pb' WHERE topology_page = 20212;