From d6eed3b1750b41cebb7047c63b82245c29649716 Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 11 Sep 2017 19:03:35 +0900 Subject: [PATCH] init.sql jmx item, item_key, sensor, sensor_item insert --- src/main/resources/local/init.sql | 51 ++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/src/main/resources/local/init.sql b/src/main/resources/local/init.sql index e79b7c5..79a6e5b 100644 --- a/src/main/resources/local/init.sql +++ b/src/main/resources/local/init.sql @@ -780,37 +780,37 @@ INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id '2017-06-26 19:49','FreeSpace','Win32_LogicalDisk','{"arrayColumns": ["Caption"],"appends": ["Caption"]}','23','106'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','maxThreads','*Catalina:type=ThreadPool,*','{"arrayColumns" : [ "ThreadPool" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','108'); +'2017-06-26 19:49','maxThreads','*Catalina:type=ThreadPool,*','{"arrayColumns" : [ "ThreadPool" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','107'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','currentThreadCount','*Catalina:type=ThreadPool,*','{"arrayColumns" : [ "ThreadPool" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','109'); +'2017-06-26 19:49','currentThreadCount','*Catalina:type=ThreadPool,*','{"arrayColumns" : [ "ThreadPool" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','108'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','currentThreadsBusy','*Catalina:type=ThreadPool,*','{"arrayColumns" : [ "ThreadPool" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','110'); +'2017-06-26 19:49','currentThreadsBusy','*Catalina:type=ThreadPool,*','{"arrayColumns" : [ "ThreadPool" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','109'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','bytesSent','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','111'); +'2017-06-26 19:49','bytesSent','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','110'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','bytesReceived','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','112'); +'2017-06-26 19:49','bytesReceived','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','111'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','errorCount','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','113'); +'2017-06-26 19:49','errorCount','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','112'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','requestCount','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','114'); +'2017-06-26 19:49','requestCount','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','113'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','maxTime','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','115'); +'2017-06-26 19:49','maxTime','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','114'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','processingTime','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','116'); +'2017-06-26 19:49','processingTime','*Catalina:type=GlobalRequestProcessor,*','{"arrayColumns" : [ "GlobalRequestProcessor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','115'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( '2017-06-26 19:49','processingTime','*Catalina:j2eeType=Servlet,*','{"arrayColumns" : [ "Servlet" ]}, "extend":{"aliases:[{"key":"Catalina:j2eeType","index":0}]"}','17','116'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','errorCount','*Catalina:j2eeType=Servlet,*','{"arrayColumns" : [ "Servlet" ]}, "extend":{"aliases:[{"key":"Catalina:j2eeType","index":0}]"}','17','116'); +'2017-06-26 19:49','errorCount','*Catalina:j2eeType=Servlet,*','{"arrayColumns" : [ "Servlet" ]}, "extend":{"aliases:[{"key":"Catalina:j2eeType","index":0}]"}','17','117'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','requestCount','*Catalina:j2eeType=Servlet,*','{"arrayColumns" : [ "Servlet" ]}, "extend":{"aliases:[{"key":"Catalina:j2eeType","index":0}]"}','17','116'); +'2017-06-26 19:49','requestCount','*Catalina:j2eeType=Servlet,*','{"arrayColumns" : [ "Servlet" ]}, "extend":{"aliases:[{"key":"Catalina:j2eeType","index":0}]"}','17','118'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','accessCount','*Catalina:type=StringCache,*','{"arrayColumns" : [ "StringCache" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','116'); +'2017-06-26 19:49','accessCount','*Catalina:type=StringCache,*','{"arrayColumns" : [ "StringCache" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','119'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','hitCount','*Catalina:type=StringCache,*','{"arrayColumns" : [ "StringCache" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','116'); +'2017-06-26 19:49','hitCount','*Catalina:type=StringCache,*','{"arrayColumns" : [ "StringCache" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','120'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','jspCount','*Catalina:type=JspMonitor,*','{"arrayColumns" : [ "JspMonitor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','116'); +'2017-06-26 19:49','jspCount','*Catalina:type=JspMonitor,*','{"arrayColumns" : [ "JspMonitor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','121'); INSERT INTO meta_sensor_item_key (create_date,"key","froms",option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','jspReloadCount','*Catalina:type=JspMonitor,*','{"arrayColumns" : [ "JspMonitor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','116'); +'2017-06-26 19:49','jspReloadCount','*Catalina:type=JspMonitor,*','{"arrayColumns" : [ "JspMonitor" ]}, "extend":{"aliases:[{"key":"Catalina:type","index":0}]"} ','17','122'); INSERT INTO public.meta_vendor_crawler (id,create_date,crawler_id,vendor_id) VALUES ( 1,'2017-07-27 15:29:48.634',23,26); @@ -973,6 +973,8 @@ INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_i NULL,'2017-08-28 16:17:05.506','OS_SERVICE-MYSQL_CRAWLER',11,1,4); INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id) VALUES ( NULL,'2017-09-05 12:26:02.738','HOST-WMI_CRAWLER',23,1,3); +INSERT INTO public.sensor (crawler_input_items,create_date,description,crawler_id,status,target_id) VALUES ( +NULL,'2017-09-11 12:26:02.738','SERVICE-JMX_CRAWLER',17,1,4); INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( '2017-06-26 20:21:16.626',1,1); @@ -1184,6 +1186,25 @@ INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( '2017-09-05 12:26:02.738',106,4); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',107,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',108,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',109,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',110,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',111,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',112,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',113,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',114,5); +INSERT INTO public.sensor_item (create_date,item_id,sensor_id) VALUES ( +'2017-09-11 12:26:02.738',115,5); + INSERT INTO public.noauth_probe (api_key,create_date,host_name,ip_address,mac_address,temp_probe_key,domain_id,probe_id,status) VALUES ( '52abd6fd57e511e7ac52080027658d13','2017-06-26 12:43:46.877','snoop',3232235980,8796753988883,'1cf2555c57d511e79714080027658d13',1,NULL,3);