From 1d05774d35f84e9181e0f1ef2b5e10d369c83ef0 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 11 Jun 2018 22:07:38 +0900 Subject: [PATCH] ing --- pom.xml | 2 +- .../service/CentralNoAuthProbeService.java | 6 +- src/main/resources/local/init.sql | 237 +++++++++--------- 3 files changed, 129 insertions(+), 116 deletions(-) diff --git a/pom.xml b/pom.xml index 58d9b98..a7fa255 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ com.loafle.overflow commons-java - 1.0.34-SNAPSHOT + 1.0.36-SNAPSHOT diff --git a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java index 875d61e..2e2891c 100644 --- a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java @@ -135,9 +135,9 @@ public class CentralNoAuthProbeService implements NoAuthProbeService { probe.setTargetCount(0); probe.setMetaProbeStatus(new MetaProbeStatus((short) 1)); - String dispName = noAuthProbeDescription.getHost().getName(); - dispName += " probe"; - probe.setDisplayName(dispName); + String name = noAuthProbeDescription.getHost().getName(); + name += " probe"; + probe.setName(name); String addrStr = noAuthProbeDescription.getNetwork().getAddress(); String[] addrArr = addrStr.split("\\|"); diff --git a/src/main/resources/local/init.sql b/src/main/resources/local/init.sql index 48c7735..198976a 100644 --- a/src/main/resources/local/init.sql +++ b/src/main/resources/local/init.sql @@ -55,24 +55,24 @@ INSERT INTO public.meta_input_type (id , key , "name" ) VALUES ( 3 , 'NUMBER' , INSERT INTO public.meta_input_type (id , key , "name" ) VALUES ( 4 , 'BOOLEAN' , 'Boolean' ); INSERT INTO public.meta_input_type (id , key , "name" ) VALUES ( 5 , 'SELECT' , 'Select' ); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 1 , 'Loafle' , 'Windows Account ID' , '' , '' , 'ID' , '' , 'TRUE' , '23' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 2 , '' , 'Windows Account PW' , '' , '' , 'PassWord' , '' , 'TRUE' , '23' , '2'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 3 , 'public' , 'SNMP V2 Community' , '' , '' , 'Community' , '' , 'TRUE' , '20' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 4 , 'mysqldb' , 'MYSQL DB Name' , '' , '' , 'DB Name' , '' , 'TRUE' , '11' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 5 , 'Loafle' , 'MYSQL Account ID' , '' , '' , 'ID' , '' , 'TRUE' , '11' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 6 , '' , 'MYSQL Account PW' , '' , '' , 'PassWord' , '' , 'TRUE' , '11' , '2'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 7 , 'Loafle' , 'JMX Account ID' , '' , '' , 'ID' , '' , 'TRUE' , '17' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 8 , '' , 'JMX Account PW' , '' , '' , 'PassWord' , '' , 'TRUE' , '17' , '2'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 9 , 'MD5' , 'SNMP V3 Auth Type' , '' , 'MD5|SHA' , 'AuthType' , '' , 'TRUE' , '25' , '5'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 10 , 'Loafle' , 'SNMP V3 User ID' , '' , '' , 'ID' , '' , 'TRUE' , '25' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 11 , '' , 'SNMP V3 PassWord' , '' , '' , 'PassWord' , '' , 'TRUE' , '25' , '2'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 12 , 'DES' , 'SNMP V3 Encryption Type' , '' , 'DES|AES' , 'Encryption Type' , '' , 'TRUE' , '25' , '5'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 13 , 'Loafle' , 'SNMP V3 Encryption Key' , '' , '' , 'Encryption Key' , '' , 'TRUE' , '25' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 14 , 'redis' , 'Redis DB Name' , '' , '' , 'DB Name' , '' , 'TRUE' , '16' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 15 , 'Loafle' , 'Redis Account ID' , '' , '' , 'ID' , '' , 'TRUE' , '16' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 16 , '' , 'Redis Account PW' , '' , '' , 'PassWord' , '' , 'TRUE' , '16' , '2'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 17 , 'Loafle' , 'SSH User' , '' , '' , 'ID' , '' , 'TRUE' , '21' , '1'); -INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 18 , '' , 'SSH PW' , '' , '' , 'PassWord' , '' , 'TRUE' , '21' , '2'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 1 , 'Loafle' , '' , '' , 'ID' , '' , 'TRUE' , '23' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 2 , '' , '' , '' , 'PassWord' , '' , 'TRUE' , '23' , '2'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 3 , 'public' , '' , '' , 'Community' , '' , 'TRUE' , '20' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 4 , 'mysqldb' , '' , '' , 'DB Name' , '' , 'TRUE' , '11' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 5 , 'Loafle' , '' , '' , 'ID' , '' , 'TRUE' , '11' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 6 , '' , '' , '' , 'PassWord' , '' , 'TRUE' , '11' , '2'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 7 , 'Loafle' , '' , '' , 'ID' , '' , 'TRUE' , '17' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 8 , '' , '' , '' , 'PassWord' , '' , 'TRUE' , '17' , '2'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 9 , 'MD5' , 'MD5|SHA' , 'MD5|SHA' , 'AuthType' , '' , 'TRUE' , '25' , '5'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 10 , 'Loafle' , '' , '' , 'ID' , '' , 'TRUE' , '25' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 11 , '' , '' , '' , 'PassWord' , '' , 'TRUE' , '25' , '2'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 12 , 'DES' , 'DES|AES' , 'DES|AES' , 'Encryption Type' , '' , 'TRUE' , '25' , '5'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 13 , 'Loafle' , '' , '' , 'Encryption Key' , '' , 'TRUE' , '25' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 14 , 'redis' , '' , '' , 'DB Name' , '' , 'TRUE' , '16' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 15 , 'Loafle' , '' , '' , 'ID' , '' , 'TRUE' , '16' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 16 , '' , '' , '' , 'PassWord' , '' , 'TRUE' , '16' , '2'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 17 , 'Loafle' , '' , '' , 'ID' , '' , 'TRUE' , '21' , '1'); +INSERT INTO meta_crawler_input_item (id , default_value , key_name , key_value , name , pattern , required , meta_crawler_id , meta_input_type_id ) VALUES ( 18 , '' , '' , '' , 'PassWord' , '' , 'TRUE' , '21' , '2'); INSERT INTO public.meta_email_type ( id , key , "name" ) VALUES ( 1 , 'SIGNUP' , 'Signup confirm' ); INSERT INTO public.meta_email_type ( id , key , "name" ) VALUES ( 2 , 'RESET_PASSWORD' , 'Reset password confirm' ); @@ -218,12 +218,16 @@ INSERT INTO public.meta_target_type ( id , meta_infra_type_id , key , "name" , i INSERT INTO public.meta_target_type ( id , meta_infra_type_id , key , "name" , is_supported ) VALUES ( 1054 , 3 , 'ZIMBRA' , 'Zimbra' , 'false' ); + + + INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 1 , 1 , 'ZONE' , 'Zone' ); -INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 100 , 2 , 'OS' , 'Operating System' ); -INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 200 , 3 , 'DATABASE' , 'Database' ); -INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 200 , 3 , 'NOSQL' , 'NoSQL Database' ); -INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 200 , 3 , 'WEB' , 'WEB' ); -INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 200 , 3 , 'MAIL' , 'Mail' ); +INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 2 , 2 , 'OS' , 'Operating System' ); +INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 3 , 3 , 'DATABASE' , 'Database' ); +INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 4 , 3 , 'NOSQL' , 'NoSQL Database' ); +INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 5 , 3 , 'WEB' , 'WEB' ); +INSERT INTO public.meta_target_type_category ( id , meta_infra_type_id , key , "name" ) VALUES ( 6 , 3 , 'MAIL' , 'Zone' ); + INSERT INTO public.meta_probe_status ( id , key , "name" ) VALUES ( 1 , 'INITIAL' , 'Initial' ); INSERT INTO public.meta_probe_status ( id , key , "name" ) VALUES ( 2 , 'NORMAL' , 'Normal' ); @@ -496,27 +500,30 @@ INSERT INTO public.meta_crawler_mapping ( meta_target_type_id , meta_crawler_id -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (1,'','CPU'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (2,'','Memory'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (3,'','Disk IO'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (4,'','File System'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (5,'','Network'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (6,'','Process'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (7,'','Server'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (8,'','Client'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (9,'','Persistence'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (10,'','Stats'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (11,'','Replication'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (12,'','Cluster'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (13,'','Keyspace'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (14,'','InnoDB'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (15,'','Net'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (16,'','Performance'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (17,'','Thread'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (18,'','GlobalRequestProcessor'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (19,'','Servlet'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (20,'','StringCache'); -INSERT INTO public.meta_sensor_item_type (id,"name") VALUES (21,'','JspMonitor'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (1,'CPU','CPU'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (2,'MEMORY','Memory'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (3,'DISK_IO','Disk IO'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (4,'FILE_SYSTEM','File System'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (5,'NETWORK','Network'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (6,'PROCESS','Process'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (7,'SERVER','Server'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (8,'CLIENT','Client'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (9,'PERSISTENCE','Persistence'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (10,'STATS','Stats'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (11,'REPLICATION','Replication'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (12,'CLUSTER','Cluster'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (13,'KEYSPACE','Keyspace'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (14,'INNODB','InnoDB'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (15,'NET','Net'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (16,'PERFORMANCE','Performance'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (17,'THREAD','Thread'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (18,'GLOBAL_REQUEST_PROCESSOR','GlobalRequestProcessor'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (19,'SERVLET','Servlet'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (20,'STRING_CACHE','StringCache'); +INSERT INTO public.meta_sensor_item_type (id, key, "name") VALUES (21,'JSP_MONITOR','JspMonitor'); + + + INSERT INTO public.meta_sensor_item_unit (id,mark,unit) VALUES (0,'',''); INSERT INTO public.meta_sensor_item_unit (id,mark,unit) VALUES (1,'%','Percentage'); @@ -605,62 +612,68 @@ INSERT INTO meta_sensor_item_key (id,froms,"key",option_json,meta_crawler_id,met '146','Win32_OperatingSystem ','FreeSpaceInPagingFiles','','23','146','3'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'1','true','','CPU Total usage (%)','ssh.cpu.usage.total','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'2','false','','CPU User (%)','ssh.cpu.usage.user','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'3','false','','CPU Nice (%)','ssh.cpu.usage.nice','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'4','false','','CPU System (%)','ssh.cpu.usage.system','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'5','false','','CPU Idle (%)','ssh.cpu.usage.idle','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'6','false','','CPU IO wait (%)','ssh.cpu.usage.iowait','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'7','false','','CPU IRQ (%)','ssh.cpu.usage.irq','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'8','false','','CPU Soft IRQ (%)','ssh.cpu.usage.softirq','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'9','false','','CPU Steal (%)','ssh.cpu.usage.steal','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'10','false','','CPU Guest (%)','ssh.cpu.usage.guest','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'11','false','','CPU Guest Nice (%)','ssh.cpu.usage.gnice','21','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'12','true','','CPU Total usage (%)','wmi.cpu.usage.total','23','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'13','false','','CPU Idle (%)','wmi.cpu.usage.idle','23','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'14','false','','CPU Processor (%)','wmi.cpu.usage.processor','23','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'15','false','','CPU User (%)','wmi.cpu.usage.user','23','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'16','false','','CPU Privilege (%)','wmi.cpu.usage.privilege','23','1','1'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'17','true','','Memory Total Usage (%)','ssh.mem.usage.total','21','1','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'18','false','','Memory Free space (mb)','ssh.mem.usage.free','21','4','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'19','false','','Buffered Memory (mb)','ssh.mem.usage.buffers','21','4','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'20','false','','Cached Memory (mb)','ssh.mem.usage.cached','21','4','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'21','true','','Swap Total Usage (%)','ssh.mem.swap.usage.total','21','1','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'22','false','','Cached Swap (mb)','ssh.mem.swap.usage.cached','21','4','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'23','true','','Memory Total usage (%)','wmi.mem.usage.total','23','1','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'24','false','','Virtual Memory Usage (%)','wmi.mem.virtual.usage.total','23','1','2'); -INSERT INTO meta_sensor_display_item (id,is_default,display_name,"key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( -'25','false','','Paging Usage (%)','wmi.mem.paging.usage.total','23','1','2'); -INSERT INTO meta_sensor_display_item (id, is_default, description, display_name, key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES (201, true, 'The rate of connections to the server.', 'Connections', 'MYSQL.NET.CONNECTIONS', 11, 15, 6); -INSERT INTO meta_sensor_display_item (id, is_default, description, display_name, key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES (202, true, 'The rate of data reads and writes.', 'Reads & Writes', 'MYSQL.INNODB.READSWRITES', 11, 14, 6); -INSERT INTO meta_sensor_display_item (id, is_default, description, display_name, key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES (203, true, 'Fraction of time spent (ms/s) acquring row locks.', 'Row Lock Time (ms/s)', 'MYSQL.INNODB.ROW_LOCK_TIME', 11, 14, 0); -INSERT INTO meta_sensor_display_item (id, is_default, description, display_name, key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES (204, true, 'The number of times per second a row lock had to be waited for.', 'Row Lock Waits', 'MYSQL.INNODB.ROW_LOCK_WAITS', 11, 14, 6); -INSERT INTO meta_sensor_display_item (id, is_default, description, display_name, key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES (205, true, 'The rate of slow queries.', 'Slow Queries', 'MYSQL.PERFORMANCE.SLOW_QUERIES', 11, 16, 6); -INSERT INTO meta_sensor_display_item (id, is_default, description, display_name, key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES (206, true, 'The rate of queries.', 'Queries', 'MYSQL.PERFORMANCE.QUERIES', 11, 16, 6); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'1','true','CPU Total usage (%)','ssh.cpu.usage.total','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'2','false','CPU User (%)','ssh.cpu.usage.user','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'3','false','CPU Nice (%)','ssh.cpu.usage.nice','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'4','false','CPU System (%)','ssh.cpu.usage.system','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'5','false','CPU Idle (%)','ssh.cpu.usage.idle','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'6','false','CPU IO wait (%)','ssh.cpu.usage.iowait','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'7','false','CPU IRQ (%)','ssh.cpu.usage.irq','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'8','false','CPU Soft IRQ (%)','ssh.cpu.usage.softirq','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'9','false','CPU Steal (%)','ssh.cpu.usage.steal','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'10','false','CPU Guest (%)','ssh.cpu.usage.guest','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'11','false','CPU Guest Nice (%)','ssh.cpu.usage.gnice','21','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'12','true','CPU Total usage (%)','wmi.cpu.usage.total','23','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'13','false','CPU Idle (%)','wmi.cpu.usage.idle','23','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'14','false','CPU Processor (%)','wmi.cpu.usage.processor','23','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'15','false','CPU User (%)','wmi.cpu.usage.user','23','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'16','false','CPU Privilege (%)','wmi.cpu.usage.privilege','23','1','1'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'17','true','Memory Total Usage (%)','ssh.mem.usage.total','21','1','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'18','false','Memory Free space (mb)','ssh.mem.usage.free','21','4','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'19','false','Buffered Memory (mb)','ssh.mem.usage.buffers','21','4','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'20','false','Cached Memory (mb)','ssh.mem.usage.cached','21','4','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'21','true','Swap Total Usage (%)','ssh.mem.swap.usage.total','21','1','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'22','false','Cached Swap (mb)','ssh.mem.swap.usage.cached','21','4','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'23','true','Memory Total usage (%)','wmi.mem.usage.total','23','1','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'24','false','Virtual Memory Usage (%)','wmi.mem.virtual.usage.total','23','1','2'); +INSERT INTO meta_sensor_display_item (id,is_default, "name","key",meta_crawler_id,meta_sensor_item_unit_id,meta_sensor_item_type_id) VALUES ( +'25','false','Paging Usage (%)','wmi.mem.paging.usage.total','23','1','2'); +INSERT INTO meta_sensor_display_item (id, is_default, "name", key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES ( +201, true, 'Connections', 'MYSQL.NET.CONNECTIONS', 11, 15, 6); +INSERT INTO meta_sensor_display_item (id, is_default, "name", key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES ( +202, true, 'Reads & Writes', 'MYSQL.INNODB.READSWRITES', 11, 14, 6); +INSERT INTO meta_sensor_display_item (id, is_default, "name", key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES ( +203, true, 'Row Lock Time (ms/s)', 'MYSQL.INNODB.ROW_LOCK_TIME', 11, 14, 0); +INSERT INTO meta_sensor_display_item (id, is_default, "name", key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES ( +204, true, 'Row Lock Waits', 'MYSQL.INNODB.ROW_LOCK_WAITS', 11, 14, 6); +INSERT INTO meta_sensor_display_item (id, is_default, "name", key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES ( +205, true, 'Slow Queries', 'MYSQL.PERFORMANCE.SLOW_QUERIES', 11, 16, 6); +INSERT INTO meta_sensor_display_item (id, is_default, "name", key, meta_crawler_id, meta_sensor_item_type_id, meta_sensor_item_unit_id) VALUES ( +206, true, 'Queries', 'MYSQL.PERFORMANCE.QUERIES', 11, 16, 6); @@ -768,16 +781,16 @@ INSERT INTO meta_sensor_display_mapping (id,meta_sensor_display_item_id,meta_sen INSERT INTO public."member" (company_name,email,"name",phone,pw,meta_member_status_id) VALUES ( -'loafle','2017-06-26 11:07:27.625','overflow@loafle.com','overFlow','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); +'loafle','overflow@loafle.com','overFlow','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); INSERT INTO public."member" (company_name,email,"name",phone,pw,meta_member_status_id) VALUES ( -'loafle','2017-06-26 11:07:27.625','insanity@loafle.com','overFlow','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); +'loafle','insanity@loafle.com','overFlow','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); INSERT INTO public."member" (company_name,email,"name",phone,pw,meta_member_status_id) VALUES ( -'loafle','2017-06-26 11:07:27.625','snoop@loafle.com','overFlow','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); +'loafle','snoop@loafle.com','overFlow','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); INSERT INTO public."member" (company_name,email,"name",phone,pw,meta_member_status_id) VALUES ( -'loafle','2017-06-26 11:07:27.625','geekdev@naver.com','geek','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); +'loafle','geekdev@naver.com','geek','000-000-0000','$2a$10$G2bbjoX9.fOnxJx/8DZqPujFYrEQtIEB.f98/8K20XiGWEhwPakZ.',2); INSERT INTO public.email_auth (auth_confirm_date,email_auth_key,member_id, meta_email_type_id) VALUES ( '2017-06-26 15:28:48.895','dbseogns1234',1,1); @@ -824,10 +837,10 @@ INSERT INTO public.api_key (api_key,domain_id) VALUES ( INSERT INTO public.api_key (api_key,domain_id) VALUES ( '09c8c54f319911e8a41f3222d3c76cf6',4); -INSERT INTO public.probe (authorize_date,cidr,display_name,encryption_key,probe_key,authorize_member_id,domain_id,meta_probe_status_id, target_count) VALUES ( +INSERT INTO public.probe (authorize_date,cidr,"name", description,encryption_key,probe_key,authorize_member_id,domain_id,meta_probe_status_id, target_count) VALUES ( '2017-08-21 14:48:31.563','192.168.1.0/24','snoop probe','test probe 111111','8c51fa9c5bcc11e7980a080027658d13','899fdd145bcc11e7b611080027658d13',1,1,1,0); -INSERT INTO public.probe (authorize_date,cidr,display_name,encryption_key,probe_key,authorize_member_id,domain_id,meta_probe_status_id, target_count) VALUES ( +INSERT INTO public.probe (authorize_date,cidr,"name", description,encryption_key,probe_key,authorize_member_id,domain_id,meta_probe_status_id, target_count) VALUES ( '2017-08-21 15:00:09.691','192.168.2.0/24','insanity probe','test probe 22222','f1f72c8d2a814580bb7c4615ec43a6a8','95d8bcdc739741dca74c4a0e489e0774',1,1,1,0); @@ -858,15 +871,15 @@ INSERT INTO public.infra_host_daemon (id, infra_host_id, "name") VALUES (3, 2, ' INSERT INTO public.infra_service (id, meta_target_service_type_id) VALUES (3, 1035, 1, 1); -INSERT INTO public.target (id, infra_id, display_name, description, sensor_count) VALUES (1, 1, 'Zone', 'Zone Target', 1); -INSERT INTO public.target (id, infra_id, display_name, description, sensor_count) VALUES (2, 2, 'Host', 'Host Target', 1); -INSERT INTO public.target (id, infra_id, display_name, description, sensor_count) VALUES (3, 3, 'Service', 'Service Target', 1); +INSERT INTO public.target (id, infra_id, "name", description, sensor_count) VALUES (1, 1, 'Zone', 'Zone Target', 1); +INSERT INTO public.target (id, infra_id, "name", description, sensor_count) VALUES (2, 2, 'Host', 'Host Target', 1); +INSERT INTO public.target (id, infra_id, "name", description, sensor_count) VALUES (3, 3, 'Service', 'Service Target', 1); -INSERT INTO public.sensor (target_id, display_name, description, meta_sensor_status_id, meta_crawler_id, item_count) VALUES ( +INSERT INTO public.sensor (target_id, "name", description, meta_sensor_status_id, meta_crawler_id, item_count) VALUES ( 1, 'Zone Sensor', 'Network Change Detection', 1, 1, 0); -INSERT INTO public.sensor (target_id, display_name, description, meta_sensor_status_id, meta_crawler_id, item_count) VALUES ( +INSERT INTO public.sensor (target_id, "name", description, meta_sensor_status_id, meta_crawler_id, item_count) VALUES ( 2, 'Host Sensor', 'SSH', 1, 45, 0); -INSERT INTO public.sensor (target_id, display_name, description, meta_sensor_status_id, meta_crawler_id, item_count) VALUES ( +INSERT INTO public.sensor (target_id, "name", description, meta_sensor_status_id, meta_crawler_id, item_count) VALUES ( 3, 'PostgreSQL Sensor', 'PostgreSQL', 1, 35, 0);