From b5167a106daff830f4877cc990726f3c1f4895bb Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 27 Apr 2018 13:45:57 +0900 Subject: [PATCH] init.sql --- src/main/resources/local/init.sql | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/main/resources/local/init.sql b/src/main/resources/local/init.sql index e75a0ca..e2ec7c5 100644 --- a/src/main/resources/local/init.sql +++ b/src/main/resources/local/init.sql @@ -930,24 +930,24 @@ INSERT INTO public.api_key (api_key,create_date,domain_id) VALUES ( INSERT INTO public.api_key (api_key,create_date,domain_id) VALUES ( '09c8c54f319911e8a41f3222d3c76cf6','2017-06-26 13:02:28.347',4); -INSERT INTO public.probe (authorize_date,cidr,create_date,description,display_name,encryption_key,probe_key,authorize_member_id,domain_id,status) VALUES ( -'2017-08-21 14:48:31.563','192.168.1.0/24','2017-08-21 14:48:31.563','snoop probe','test probe 111111','8c51fa9c5bcc11e7980a080027658d13','899fdd145bcc11e7b611080027658d13',1,1,1); +INSERT INTO public.probe (authorize_date,cidr,create_date,description,display_name,encryption_key,probe_key,authorize_member_id,domain_id,status, target_count) VALUES ( +'2017-08-21 14:48:31.563','192.168.1.0/24','2017-08-21 14:48:31.563','snoop probe','test probe 111111','8c51fa9c5bcc11e7980a080027658d13','899fdd145bcc11e7b611080027658d13',1,1,1,0); -INSERT INTO public.probe (authorize_date,cidr,create_date,description,display_name,encryption_key,probe_key,authorize_member_id,domain_id,status) VALUES ( -'2017-08-21 15:00:09.691','192.168.2.0/24','2017-08-21 15:00:09.691','insanity probe','test probe 22222','f1f72c8d2a814580bb7c4615ec43a6a8','95d8bcdc739741dca74c4a0e489e0774',1,1,1); +INSERT INTO public.probe (authorize_date,cidr,create_date,description,display_name,encryption_key,probe_key,authorize_member_id,domain_id,status, target_count) VALUES ( +'2017-08-21 15:00:09.691','192.168.2.0/24','2017-08-21 15:00:09.691','insanity probe','test probe 22222','f1f72c8d2a814580bb7c4615ec43a6a8','95d8bcdc739741dca74c4a0e489e0774',1,1,1,0); -INSERT INTO public.target (create_date,description,display_name) VALUES ( -'2017-07-27 20:18:09.555','Machine Target','ghost target'); -INSERT INTO public.target (create_date,description,display_name) VALUES ( -'2017-07-27 20:18:09.555','OS target','ghost target'); -INSERT INTO public.target (create_date,description,display_name) VALUES ( -'2017-07-27 20:18:09.555','Host target','ghost target'); -INSERT INTO public.target (create_date,description,display_name) VALUES ( -'2017-07-27 20:18:09.555','Service target','ghost target'); -INSERT INTO public.target (create_date,description,display_name) VALUES ( -'2017-07-27 20:18:09.555','OS App target','ghost target'); -INSERT INTO public.target (create_date,description,display_name) VALUES ( -'2017-07-27 20:18:09.555','OS Daemon target','ghost target'); +INSERT INTO public.target (create_date,description,display_name,sensor_count) VALUES ( +'2017-07-27 20:18:09.555','Machine Target','ghost target',0); +INSERT INTO public.target (create_date,description,display_name,sensor_count) VALUES ( +'2017-07-27 20:18:09.555','OS target','ghost target',0); +INSERT INTO public.target (create_date,description,display_name,sensor_count) VALUES ( +'2017-07-27 20:18:09.555','Host target','ghost target',0); +INSERT INTO public.target (create_date,description,display_name,sensor_count) VALUES ( +'2017-07-27 20:18:09.555','Service target','ghost target',0); +INSERT INTO public.target (create_date,description,display_name,sensor_count) VALUES ( +'2017-07-27 20:18:09.555','OS App target','ghost target',0); +INSERT INTO public.target (create_date,description,display_name,sensor_count) VALUES ( +'2017-07-27 20:18:09.555','OS Daemon target','ghost target',0); INSERT INTO public.infra (infra_type,create_date,type_id,probe_id,target_id) VALUES ( 1,'2017-08-21 12:59:10.244',1,1,1); @@ -990,16 +990,16 @@ INSERT INTO public.infra_os_daemon ("name",id,os_id) VALUES ( insert into public.PROBE_INFRAHOST (HOST_ID, PROBE_ID) values (3, 1); -INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count) VALUES ( -NULL,'2017-06-26 20:19:07.009','My sensor 11111',1,1,1,3); -INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count) VALUES ( -NULL,'2017-06-26 20:19:07.074','My sensor 22222',1,2,1,1); -INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count) VALUES ( -NULL,'2017-08-28 16:17:05.506','OS_SERVICE-MYSQL_CRAWLER',11,1,4,2); -INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count) VALUES ( -NULL,'2017-09-05 12:26:02.738','HOST-WMI_CRAWLER',23,1,3,1); -INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count) VALUES ( -NULL,'2017-09-11 12:26:02.738','SERVICE-JMX_CRAWLER',17,1,4,4); +INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count,display_name) VALUES ( +NULL,'2017-06-26 20:19:07.009','My sensor 11111',1,1,1,0,'DisplayName1'); +INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count,display_name) VALUES ( +NULL,'2017-06-26 20:19:07.074','My sensor 22222',1,2,1,0,'DisplayName2'); +INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count,display_name) VALUES ( +NULL,'2017-08-28 16:17:05.506','OS_SERVICE-MYSQL_CRAWLER',11,1,4,0,'DisplayName3'); +INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count,display_name) VALUES ( +NULL,'2017-09-05 12:26:02.738','HOST-WMI_CRAWLER',23,1,3,0,'DisplayName4'); +INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id,item_count,display_name) VALUES ( +NULL,'2017-09-11 12:26:02.738','SERVICE-JMX_CRAWLER',17,1,4,0,'DisplayName5'); --INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( --'2017-06-26 20:21:16.626',1,1);