From 5a38f29dadafe1b3aa6304a52e1f7ae4d23fc82c Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 26 Jun 2017 20:26:58 +0900 Subject: [PATCH] sensor item --- src/main/resources/init.sql | 273 ++++++++++++++++++++++++++++++++++++ 1 file changed, 273 insertions(+) diff --git a/src/main/resources/init.sql b/src/main/resources/init.sql index 8b13789..6a07936 100644 --- a/src/main/resources/init.sql +++ b/src/main/resources/init.sql @@ -1 +1,274 @@ +INSERT INTO public.meta_member_status (id,"name") VALUES ( +1,'NOAUTH'); +INSERT INTO public.meta_member_status (id,"name") VALUES ( +2,'NORMAL'); +INSERT INTO public.meta_member_status (id,"name") VALUES ( +3,'DIAPAUSE'); +INSERT INTO public.meta_member_status (id,"name") VALUES ( +4,'WITHDRAWAL'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +1,'2017-06-25 17:31:42.770','MACHINE'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +2,'2017-06-25 17:31:42.894','HOST'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +3,'2017-06-25 17:31:42.906','OS'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +4,'2017-06-25 17:31:42.906','OS_APPLICATION'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +5,'2017-06-25 17:31:42.906','OS_DAEMON'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +6,'2017-06-25 17:31:42.906','OS_PORT'); +INSERT INTO public.meta_infra_type (id,create_date,"name") VALUES ( +7,'2017-06-25 17:31:42.906','OS_SERVICE'); + + +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +1,'2017-06-25 17:31:42.916','APPLE',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +2,'2017-06-25 17:31:42.937','MICROSOFT',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +3,'2017-06-25 17:31:42.949','ASUS',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +4,'2017-06-25 17:31:42.960','HP',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +5,'2017-06-25 17:31:42.972','DELL',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +6,'2017-06-25 17:31:42.982','LENOVO',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +7,'2017-06-25 17:31:42.993','ACER',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +8,'2017-06-25 17:31:43.004','SAMSUNG',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +9,'2017-06-25 17:31:43.023','LG',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +10,'2017-06-25 17:31:43.036','CISCO',1); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +11,'2017-06-25 17:31:43.052','Windows',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +12,'2017-06-25 17:31:43.070','Mac OS',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +13,'2017-06-25 17:31:43.084','Ubuntu',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +14,'2017-06-25 17:31:43.102','Cent OS',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +15,'2017-06-25 17:31:43.116','Fedora',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +16,'2017-06-25 17:31:43.130','Red Hat',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +17,'2017-06-25 17:31:43.144','Debian',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +18,'2017-06-25 17:31:43.156','SUSE',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +19,'2017-06-25 17:31:43.169','Core OS',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +20,'2017-06-25 17:31:43.181','Amazon Linux',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +21,'2017-06-25 17:31:43.192','Kubernetes',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +22,'2017-06-25 17:31:43.202','Docker',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +23,'2017-06-25 17:31:43.214','iOS',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +24,'2017-06-25 17:31:43.229','Android',2); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +25,'2017-06-25 17:31:43.242','Windows',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +26,'2017-06-25 17:31:43.255','Mac OS',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +27,'2017-06-25 17:31:43.271','Ubuntu',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +28,'2017-06-25 17:31:43.285','Cent OS',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +29,'2017-06-25 17:31:43.298','Fedora',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +30,'2017-06-25 17:31:43.312','Red Hat',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +31,'2017-06-25 17:31:43.324','Debian',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +32,'2017-06-25 17:31:43.336','SUSE',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +33,'2017-06-25 17:31:43.347','Core OS',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +34,'2017-06-25 17:31:43.361','Amazon Linux',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +35,'2017-06-25 17:31:43.375','Kubernetes',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +36,'2017-06-25 17:31:43.387','Docker',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +37,'2017-06-25 17:31:43.399','iOS',3); +INSERT INTO public.meta_infra_vendor (id,create_date,"name",type_id) VALUES ( +38,'2017-06-25 17:31:43.410','Android',3); + + +INSERT INTO public.meta_crawler (id,create_date,description,"name") VALUES ( +1,'2017-06-25 17:00:43.869','WMI','WMI_CRAWLER'); +INSERT INTO public.meta_crawler (id,create_date,description,"name") VALUES ( +2,'2017-06-25 17:00:43.919','SNMPV2','SNMP_V2_CRAWLER'); +INSERT INTO public.meta_crawler (id,create_date,description,"name") VALUES ( +3,'2017-06-25 17:00:43.941','SNMPV3','SNMP_V3_CRAWLER'); +INSERT INTO public.meta_crawler (id,create_date,description,"name") VALUES ( +4,'2017-06-25 17:00:43.969','MYSQL','MYSQL_CRAWLER'); + +INSERT INTO public.meta_input_type (id,create_date,description,"name") VALUES ( +1,'2017-06-25 17:00:53.861','TEXT','TEXT_TYPE'); +INSERT INTO public.meta_input_type (id,create_date,description,"name") VALUES ( +2,'2017-06-25 17:00:53.893','PASSWORD','PASSWORD_TYPE'); +INSERT INTO public.meta_input_type (id,create_date,description,"name") VALUES ( +3,'2017-06-25 17:00:53.901','NUMBER','NUMBER_TYPE'); +INSERT INTO public.meta_input_type (id,create_date,description,"name") VALUES ( +4,'2017-06-25 17:00:53.910','BOOLEAN','BOOLEAN_TYPE'); +INSERT INTO public.meta_input_type (id,create_date,description,"name") VALUES ( +5,'2017-06-25 17:00:53.920','SELECT','SELECT_TYPE'); + + +INSERT INTO public.meta_crawler_input_item (id,create_date,default_value,description,key_name,key_value,"name",pattern,required,crawler_id,type_id) VALUES ( +1,'2017-06-25 17:01:01.961','Loafle','Windows Account ID',NULL,NULL,'ID','',true,1,1); +INSERT INTO public.meta_crawler_input_item (id,create_date,default_value,description,key_name,key_value,"name",pattern,required,crawler_id,type_id) VALUES ( +2,'2017-06-25 17:01:02.008','','Windows Account PW',NULL,NULL,'PassWord','',true,1,2); +INSERT INTO public.meta_crawler_input_item (id,create_date,default_value,description,key_name,key_value,"name",pattern,required,crawler_id,type_id) VALUES ( +3,'2017-06-25 17:01:02.023','public','SNMP V2 Community',NULL,NULL,'Community','',true,2,1); +INSERT INTO public.meta_crawler_input_item (id,create_date,default_value,description,key_name,key_value,"name",pattern,required,crawler_id,type_id) VALUES ( +4,'2017-06-25 17:01:02.046','mysqldb','MYSQL DB Name',NULL,NULL,'DB Name','',true,4,1); +INSERT INTO public.meta_crawler_input_item (id,create_date,default_value,description,key_name,key_value,"name",pattern,required,crawler_id,type_id) VALUES ( +5,'2017-06-25 17:01:02.067','Loafle','MYSQL Account ID',NULL,NULL,'ID','',true,4,1); +INSERT INTO public.meta_crawler_input_item (id,create_date,default_value,description,key_name,key_value,"name",pattern,required,crawler_id,type_id) VALUES ( +6,'2017-06-25 17:01:02.078','','MYSQL Account PW',NULL,NULL,'PassWord','',true,4,2); + +INSERT INTO public.meta_probe_architecture (id,architecture,create_date) VALUES ( +1,'x86-64bit','2017-06-25 16:48:15.317'); +INSERT INTO public.meta_probe_architecture (id,architecture,create_date) VALUES ( +2,NULL,'2017-06-25 16:48:15.350'); + +INSERT INTO public.meta_probe_os (id,create_date,"name") VALUES ( +1,'2017-06-25 16:48:28.617','Windows'); +INSERT INTO public.meta_probe_os (id,create_date,"name") VALUES ( +2,'2017-06-25 16:48:28.683','Debian'); +INSERT INTO public.meta_probe_os (id,create_date,"name") VALUES ( +3,'2017-06-25 16:48:28.699','Ubuntu'); +INSERT INTO public.meta_probe_os (id,create_date,"name") VALUES ( +4,'2017-06-25 16:48:28.708','Fedora'); + + +INSERT INTO public.meta_probe_version (id,create_date,"version") VALUES ( +1,'2017-06-25 16:48:00.520','1.0.0'); +INSERT INTO public.meta_probe_version (id,create_date,"version") VALUES ( +2,'2017-06-25 16:48:00.558','1.1.0'); + + +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +1,'2017-06-25 16:59:59.194',1,1,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +2,'2017-06-25 16:59:59.216',1,2,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +3,'2017-06-25 16:59:59.255',1,3,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +4,'2017-06-25 16:59:59.268',1,4,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +5,'2017-06-25 16:59:59.279',2,1,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +6,'2017-06-25 16:59:59.307',2,2,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +7,'2017-06-25 16:59:59.317',2,3,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +8,'2017-06-25 16:59:59.330',2,4,1); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +9,'2017-06-25 16:59:59.363',1,1,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +10,'2017-06-25 16:59:59.395',1,2,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +11,'2017-06-25 16:59:59.416',1,3,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +12,'2017-06-25 16:59:59.446',1,4,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +13,'2017-06-25 16:59:59.468',2,1,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +14,'2017-06-25 16:59:59.484',2,2,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +15,'2017-06-25 16:59:59.507',2,3,2); +INSERT INTO public.meta_probe_package (id,create_date,architecture_id,os_id,version_id) VALUES ( +16,'2017-06-25 16:59:59.522',2,4,2); + +INSERT INTO public.meta_probe_status (id,"name") VALUES ( +1,'INITIAL'); +INSERT INTO public.meta_probe_status (id,"name") VALUES ( +2,'NORMAL'); + +INSERT INTO public.meta_noauth_probe_status (id,"name") VALUES ( +1,'ACCEPT'); +INSERT INTO public.meta_noauth_probe_status (id,"name") VALUES ( +2,'DENY'); +INSERT INTO public.meta_noauth_probe_status (id,"name") VALUES ( +3,'PROCESS'); + +INSERT INTO public.meta_probe_task_type (id,create_date,description,"name") VALUES ( +1,'2017-06-26 15:58:02.397','DISCOVERY START','DISCOVERY'); + +INSERT INTO public.meta_sensor_status (id,"name") VALUES ( +1,'RUNNING'); +INSERT INTO public.meta_sensor_status (id,"name") VALUES ( +2,'STOPPED'); + +INSERT INTO public.meta_sensor_item_type (id,create_date,description,"name") VALUES ( +1,'2017-06-26 19:49:39.690','CPU blah blah blah','CPU'); +INSERT INTO public.meta_sensor_item_type (id,create_date,description,"name") VALUES ( +2,'2017-06-26 19:49:39.811','MEMORY blah blah blah','MEMORY'); +INSERT INTO public.meta_sensor_item_type (id,create_date,description,"name") VALUES ( +3,'2017-06-26 19:49:39.824','DISK blah blah blah','DISK'); + +INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES ( +1,'2017-06-26 20:10:08.269','cpu.usage','CPU USAGE',1); +INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES ( +2,'2017-06-26 20:10:08.361','cpu.free','CPU FREE',1); +INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES ( +3,'2017-06-26 20:10:08.376','mem.usage','MEMORY USAGE',2); +INSERT INTO public.meta_sensor_item (id,create_date,"key","name",type_id) VALUES ( +4,'2017-06-26 20:10:08.394','mem.free','MEMORY FREE',2); + +-- +-- +-- +-- +-- +INSERT INTO public."member" (id,company_name,create_date,email,"name",phone,pw,pw_salt,status_id) VALUES ( +1,'loafle','2017-06-26 11:07:27.625','overflow@loafle.com','overFlow','000-000-0000','qwer5795','abcdabcdabcdabcd',2); + +INSERT INTO public."member" (id,company_name,create_date,email,"name",phone,pw,pw_salt,status_id) VALUES ( +2,'loafle','2017-06-26 11:07:27.625','geek@loafle.com','geek','000-000-0000','qwer5795','abcdabcdabcdabcd',1); + +INSERT INTO public.email_auth (id,auth_confirm_date,create_date,email_auth_key,member_id) VALUES ( +1,NULL,'2017-06-26 15:28:48.895','dbseogns1234',1); + +INSERT INTO public."domain" (id,create_date,"name") VALUES ( +1,'2017-06-26 11:25:44.866','overFlow''s domain'); + +INSERT INTO public.domain_member (id,create_date,domain_id,member_id) VALUES ( +1,'2017-06-26 11:27:43.023',1,1); + +INSERT INTO public.api_key (id,api_key,create_date,domain_id) VALUES ( +1,'52abd6fd57e511e7ac52080027658d13','2017-06-26 13:02:28.347',1); + +INSERT INTO public.noauth_probe (id,api_key,create_date,host_name,ip_address,mac_address,temp_probe_key,domain_id,probe_id,status) VALUES ( +1,'52abd6fd57e511e7ac52080027658d13','2017-06-26 12:43:46.877','snoop',3232235980,8796753988883,'1cf2555c57d511e79714080027658d13',1,NULL,3); + +INSERT INTO public.probe (id,create_date,description,encryption_key,last_polling_date,next_polling_date,probe_key,domain_id,status) VALUES ( +1,'2017-06-26 12:44:59.813','snoop probe','9c8d41ab57de11e7a2c9080027658d13',NULL,NULL,'a1e1710557de11e78799080027658d13',1,1); + +INSERT INTO public.infra_machine (id,create_date,meta,probe_id) VALUES ( +0,'2017-06-26 12:12:11.698',NULL,1); + +INSERT INTO public.infra (id,child_id,create_date,type_id) VALUES ( +1,0,'2017-06-26 12:12:11.809',1); + +INSERT INTO public.target (id,create_date,infra_id,probe_id) VALUES ( +1,'2017-06-26 12:37:22.854',1,1); + +INSERT INTO public.sensor (id,crawler_input_items,create_date,description,crawler_id,status,target_id) VALUES ( +1,NULL,'2017-06-26 20:19:07.009','My sensor',1,1,1); +INSERT INTO public.sensor (id,crawler_input_items,create_date,description,crawler_id,status,target_id) VALUES ( +2,NULL,'2017-06-26 20:19:07.074','My sensor',1,1,1); + +INSERT INTO public.sensor_item (id,create_date,item_id,sensor_id) VALUES ( +1,'2017-06-26 20:21:16.626',1,1); +INSERT INTO public.sensor_item (id,create_date,item_id,sensor_id) VALUES ( +2,'2017-06-26 20:21:50.988',2,2); \ No newline at end of file