|
|
@@ -149,7 +149,7 @@ from `it_monitor_resource`;
|
|
|
INSERT INTO `it_monitor_resource` (`resource_id`, `template_id`, `agent_id`, `resource_group_id`, `resource_name`)
|
|
|
VALUES (1, 1, 1, 1, '资源1');
|
|
|
INSERT INTO `it_monitor_resource` (`resource_id`, `template_id`, `agent_id`, `resource_group_id`, `resource_name`)
|
|
|
-VALUES (2, 1, 2, 2, '资源2');
|
|
|
+VALUES (2, 1, 2, 1, '资源192.168.254.1');
|
|
|
|
|
|
|
|
|
delete
|
|
|
@@ -163,13 +163,15 @@ delete
|
|
|
from `it_monitor_agent`;
|
|
|
INSERT INTO `it_monitor_agent` (`agent_id`, `agent_name`, `agent_ip`, `agent_key_id`)
|
|
|
VALUES (1, 'agent1_local', '127.0.0.1', 1);
|
|
|
+INSERT INTO `it_monitor_agent` (`agent_id`, `agent_name`, `agent_ip`, `agent_key_id`)
|
|
|
+VALUES (2, 'agent2_local', '192.168.254.1', 2);
|
|
|
|
|
|
delete
|
|
|
from `it_monitor_item_group`;
|
|
|
INSERT INTO `it_monitor_item_group` (`group_id`, `group_name`, `template_id`, `interval`, `top_item_id`, `is_table`)
|
|
|
VALUES (1, 'CPU使用率', 1, 10, -1, 1);
|
|
|
INSERT INTO `it_monitor_item_group` (`group_id`, `group_name`, `template_id`, `interval`, `top_item_id`, `is_table`)
|
|
|
-VALUES (2, 'CPU信息', 1, 10, -1, 0);
|
|
|
+VALUES (2, 'CPU信息', 1, 600, -1, 0);
|
|
|
INSERT INTO `it_monitor_item_group` (`group_id`, `group_name`, `template_id`, `interval`, `top_item_id`, `is_table`)
|
|
|
VALUES (3, '内存', 1, 10, -1, 0);
|
|
|
|
|
|
@@ -179,7 +181,24 @@ from `it_monitor_item`;
|
|
|
INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
VALUES (1, '使用率', 'group1.usage', 1, 2);
|
|
|
INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
-VALUES (2, '核心数', 'group2.cores', 2, 1);
|
|
|
+VALUES (2, 'CPU', 'group2.cpu', 2, 1);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (3, '架构', 'group2.arch', 2, 0);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (4, '位数', 'group2.bits', 2, 1);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (5, '核心数', 'group2.cores', 2, 1);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (6, '百分比', 'group3.percent', 3, 2);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (7, '总大小', 'group3.total', 3, 3);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (8, '已用', 'group3.used', 3, 3);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (9, '缓存', 'group3.cache', 3, 3);
|
|
|
+INSERT INTO `it_monitor_item` (`item_id`, `item_name`, `item_key_name`, `item_group_id`, `item_type`)
|
|
|
+VALUES (10, '空闲', 'group3.free', 3, 3);
|
|
|
+
|
|
|
|
|
|
|
|
|
delete
|