From 7968d4f8dbca4d9c7e8745ec7c0d277643bb0d16 Mon Sep 17 00:00:00 2001 From: insanity Date: Thu, 2 Nov 2017 17:43:56 +0900 Subject: [PATCH] sensor is totally modifying --- .../service/MetaSensorItemTypeService.java | 8 + src/main/resources/local/init.sql | 990 +++++++++--------- .../MetaSensorItemTypeServiceTest.java | 94 +- 3 files changed, 583 insertions(+), 509 deletions(-) diff --git a/src/main/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeService.java b/src/main/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeService.java index 1e92668..59ca645 100644 --- a/src/main/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeService.java +++ b/src/main/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeService.java @@ -19,4 +19,12 @@ public class MetaSensorItemTypeService { public List readAll() { return this.sensorItemTypeDAO.findAll(); } + + public MetaSensorItemType regist(MetaSensorItemType type){ + return this.sensorItemTypeDAO.save(type); + } + + public List registAll(List list) { + return this.sensorItemTypeDAO.save(list); + } } diff --git a/src/main/resources/local/init.sql b/src/main/resources/local/init.sql index caa33fe..e6ca604 100644 --- a/src/main/resources/local/init.sql +++ b/src/main/resources/local/init.sql @@ -315,513 +315,491 @@ INSERT INTO public.meta_sensor_status (id,"name") VALUES ( INSERT INTO public.meta_sensor_status (id,"name") VALUES ( 2,'STOPPED'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'1','2017-06-26 19:49','CPU blah blah blah','CPU'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'2','2017-06-26 19:49','MEMORY blah blah blah','MEMORY'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'3','2017-06-26 19:49','DISK blah blah blah','DISK'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'4','2017-06-26 19:49','INNODB MYSQL','INNODB.MYSQL'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'5','2017-06-26 19:49','NET MYSQL','NET.MYSQL'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'6','2017-06-26 19:49','PERFOMANCE MYSQL','PERFOMANCE.MYSQL'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'7','2017-06-26 19:49','JMX Tomcat Thread Info','ThreadPool'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'8','2017-06-26 19:49','JMX Tomcat GlobalRequest Info','GlobalRequestProcessor'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'9','2017-06-26 19:49','JMX Tomcat Servlet Info','Servlet'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'10','2017-06-26 19:49','JMX Tomcat StringCache Info','StringCache'); -INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( -'11','2017-06-26 19:49','JMX Tomcat JspMonitor Info','JspMonitor'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cpu.usage','CPU USAGE','1'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cpu.free','CPU FREE','1'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage','MEMORY USAGE','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.free','MEMORY FREE','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.dump.status','Innodb_mysql_buffer_pool_dump_status','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.load.status','Innodb_mysql_buffer_pool_load_status','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.resize.status','Innodb_mysql_buffer_pool_resize_status','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.data','Innodb_mysql_buffer_pool_pages_data','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.bytes.data','Innodb_mysql_buffer_pool_bytes_data','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.dirty','Innodb_mysql_buffer_pool_pages_dirty','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.bytes.dirty','Innodb_mysql_buffer_pool_bytes_dirty','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.flushed','Innodb_mysql_buffer_pool_pages_flushed','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.free','Innodb_mysql_buffer_pool_pages_free','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.misc','Innodb_mysql_buffer_pool_pages_misc','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.total','Innodb_mysql_buffer_pool_pages_total','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.ahead.rnd','Innodb_mysql_buffer_pool_read_ahead_rnd','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.ahead','Innodb_mysql_buffer_pool_read_ahead','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.ahead.evicted','Innodb_mysql_buffer_pool_read_ahead_evicted','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.requests','Innodb_mysql_buffer_pool_read_requests','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.reads','Innodb_mysql_buffer_pool_reads','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.wait.free','Innodb_mysql_buffer_pool_wait_free','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.buffer.pool.write.requests','Innodb_mysql_buffer_pool_write_requests','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.fsyncs','Innodb_mysql_data_fsyncs','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.pending.fsyncs','Innodb_mysql_data_pending_fsyncs','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.pending.reads','Innodb_mysql_data_pending_reads','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.pending.writes','Innodb_mysql_data_pending_writes','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.read','Innodb_mysql_data_read','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.reads','Innodb_mysql_data_reads','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.writes','Innodb_mysql_data_writes','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.data.written','Innodb_mysql_data_written','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.dblwr.pages.written','Innodb_mysql_dblwr_pages_written','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.dblwr.writes','Innodb_mysql_dblwr_writes','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.log.waits','Innodb_mysql_log_waits','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.log.write.requests','Innodb_mysql_log_write_requests','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.log.writes','Innodb_mysql_log_writes','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.os.log.fsyncs','Innodb_mysql_os_log_fsyncs','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.os.log.pending.fsyncs','Innodb_mysql_os_log_pending_fsyncs','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.os.log.pending.writes','Innodb_mysql_os_log_pending_writes','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.os.log.written','Innodb_mysql_os_log_written','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.page.size','Innodb_mysql_page_size','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.pages.created','Innodb_mysql_pages_created','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.pages.read','Innodb_mysql_pages_read','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.pages.written','Innodb_mysql_pages_written','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.row.lock.current.waits','Innodb_mysql_row_lock_current_waits','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.row.lock.time','Innodb_mysql_row_lock_time','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.row.lock.time.avg','Innodb_mysql_row_lock_time_avg','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.row.lock.time.max','Innodb_mysql_row_lock_time_max','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.row.lock.waits','Innodb_mysql_row_lock_waits','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.rows.deleted','Innodb_mysql_rows_deleted','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.rows.inserted','Innodb_mysql_rows_inserted','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.rows.read','Innodb_mysql_rows_read','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.rows.updated','Innodb_mysql_rows_updated','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.num.open.files','Innodb_mysql_num_open_files','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.truncated.status.writes','Innodb_mysql_truncated_status_writes','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Innodb.mysql.available.undo.logs','Innodb_mysql_available_undo_logs','4'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.errors.accept','Connection_mysql_errors_accept','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.errors.internal','Connection_mysql_errors_internal','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.errors.max.connections','Connection_mysql_errors_max_connections','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.errors.peer.address','Connection_mysql_errors_peer_address','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.errors.select','Connection_mysql_errors_select','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.errors.tcpwrap','Connection_mysql_errors_tcpwrap','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.connections','Connection_mysql_connections','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.Max.used.connections','Connection_mysql_Max_used_connections','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Connection.mysql.Max.used.connections.time','Connection_mysql_Max_used_connections_time','5'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.accounts.lost','Performance_mysql_schema_accounts_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.cond.classes.lost','Performance_mysql_schema_cond_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.cond.instances.lost','Performance_mysql_schema_cond_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.digest.lost','Performance_mysql_schema_digest_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.file.classes.lost','Performance_mysql_schema_file_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.file.handles.lost','Performance_mysql_schema_file_handles_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.file.instances.lost','Performance_mysql_schema_file_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.hosts.lost','Performance_mysql_schema_hosts_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.index.stat.lost','Performance_mysql_schema_index_stat_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.locker.lost','Performance_mysql_schema_locker_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.memory.classes.lost','Performance_mysql_schema_memory_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.metadata.lock.lost','Performance_mysql_schema_metadata_lock_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.mutex.classes.lost','Performance_mysql_schema_mutex_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.mutex.instances.lost','Performance_mysql_schema_mutex_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.nested.statement.lost','Performance_mysql_schema_nested_statement_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.prepared.statements.lost','Performance_mysql_schema_prepared_statements_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.program.lost','Performance_mysql_schema_program_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.rwlock.classes.lost','Performance_mysql_schema_rwlock_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.rwlock.instances.lost','Performance_mysql_schema_rwlock_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.session.connect.attrs.lost','Performance_mysql_schema_session_connect_attrs_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.socket.classes.lost','Performance_mysql_schema_socket_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.socket.instances.lost','Performance_mysql_schema_socket_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.stage.classes.lost','Performance_mysql_schema_stage_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.statement.classes.lost','Performance_mysql_schema_statement_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.table.handles.lost','Performance_mysql_schema_table_handles_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.table.instances.lost','Performance_mysql_schema_table_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.table.lock.stat.lost','Performance_mysql_schema_table_lock_stat_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.thread.classes.lost','Performance_mysql_schema_thread_classes_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.thread.instances.lost','Performance_mysql_schema_thread_instances_lost','6'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','Performance.mysql.schema.users.lost','Performance_mysql_schema_users_lost','6'); - -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cpu.usage.total.idle','PercentIdleTime','1'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cpu.usage.total.processor','PercentProcessorTime','1'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cpu.usage.total.user','PercentUserTime','1'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cpu.usage.total.privilege','PercentPrivilegedTime','1'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage.total.virtual','TotalVirtualMemorySize','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage.total.physical','TotalVisibleMemorySize','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage.total.paging','SizeStoredInPagingFiles','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage.free.virtual','FreeVirtualMemory','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage.free.physical','FreePhysicalMemory','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','mem.usage.free.paging','FreeSpaceInPagingFiles','2'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','disk.usage.total[$0]','Size','3'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','disk.usage.free[$0]','FreeSpace','3'); - -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','thread.max[$0]','ThreadMax','7'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','thread.count[$0]','ThreadCount','7'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','thread.busy[$0]','ThreadBusy','7'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','global.request.bytes_sent[$0]','Sent Byte ','8'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','global.request.bytes_rcvd[$0]','rcvd','8'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','global.request.error_count[$0]','Error Count','8'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','global.request.request_count[$0]','Request Count','8'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','global.request.max_time[$0]','Request Max Time','8'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','global.request.processing_time[$0]','Processing Time','8'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','servlet.processing_time[$0]','Servlet Processing Time','9'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','servlet.error_count[$0]','Servlet Error Count','9'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','servlet.request_count[$0]','Servlet Request Count Time','9'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cache.access_count[$0]','String Cache Access Count','10'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','cache.hits_count[$0]','String Cache hits Count','10'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','jsp.monitor.jsp_count[$0]','Jsp Monitor Jsp CountCount','11'); -INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( -'2017-06-26 20:10','jsp.monitor.jsp_reload_count[$0]','Jsp Monitor Jsp Reload Count','11'); - -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_dump_status','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','5'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_load_status','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','6'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_resize_status','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','7'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_pages_data','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','8'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_bytes_data','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','9'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_pages_dirty','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','10'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_bytes_dirty','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','11'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_pages_flushed','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','12'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_pages_free','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','13'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_pages_misc','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','14'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_pages_total','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','15'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_read_ahead_rnd','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','16'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_read_ahead','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','17'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_read_ahead_evicted','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','18'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_read_requests','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','19'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_reads','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','20'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_wait_free','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','21'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_buffer_pool_write_requests','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','22'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','23'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_pending_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','24'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_pending_reads','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','25'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_pending_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','26'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_read','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','27'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_reads','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','28'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','29'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_data_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','30'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_dblwr_pages_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','31'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_dblwr_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','32'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_log_waits','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','33'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_log_write_requests','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','34'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_log_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','35'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_os_log_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','36'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_os_log_pending_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','37'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_os_log_pending_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','38'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_os_log_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','39'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_page_size','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','40'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_pages_created','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','41'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_pages_read','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','42'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_pages_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','43'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_row_lock_current_waits','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','44'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_row_lock_time','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','45'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_row_lock_time_avg','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','46'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_row_lock_time_max','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','47'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_row_lock_waits','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','48'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_rows_deleted','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','49'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_rows_inserted','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','50'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_rows_read','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','51'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_rows_updated','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','52'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_num_open_files','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','53'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_truncated_status_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','54'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Innodb_available_undo_logs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','55'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connection_errors_accept','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','56'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connection_errors_internal','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','57'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connection_errors_max_connections','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','58'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connection_errors_peer_address','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','59'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connection_errors_select','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','60'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connection_errors_tcpwrap','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','61'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Connections','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','62'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Max_used_connections','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','63'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Max_used_connections_time','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','64'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_accounts_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','65'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_cond_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','66'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_cond_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','67'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_digest_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','68'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_file_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','69'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_file_handles_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','70'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_file_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','71'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_hosts_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','72'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_index_stat_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','73'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_locker_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','74'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_memory_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','75'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_metadata_lock_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','76'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_mutex_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','77'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_mutex_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','78'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_nested_statement_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','79'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_prepared_statements_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','80'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_program_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','81'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_rwlock_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','82'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_rwlock_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','83'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_session_connect_attrs_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','84'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_socket_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','85'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_socket_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','86'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_stage_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','87'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_statement_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','88'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_table_handles_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','89'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_table_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','90'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_table_lock_stat_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','91'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_thread_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','92'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_thread_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','93'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Performance_schema_users_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','94'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','PercentIdleTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','95'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','PercentProcessorTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','96'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','PercentUserTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','97'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','PercentPrivilegedTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','98'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','TotalVirtualMemorySize','Win32_OperatingSystem','','23','99'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','TotalVisibleMemorySize','Win32_OperatingSystem','','23','100'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','SizeStoredInPagingFiles','Win32_OperatingSystem','','23','101'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','FreeVirtualMemory','Win32_OperatingSystem','','23','102'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','FreePhysicalMemory','Win32_OperatingSystem','','23','103'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','FreeSpaceInPagingFiles','Win32_OperatingSystem ','','23','104'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'2017-06-26 19:49','Size','Win32_LogicalDisk','{"arrayColumns": ["Caption"],"appends": ["Caption"]}','23','105'); -INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( -'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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"StringCache","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" ], "aliases":[{"key":"StringCache","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","index":0}]} ','17','122'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cpu.usage','CPU USAGE','1'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cpu.free','CPU FREE','1'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage','MEMORY USAGE','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.free','MEMORY FREE','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.dump.status','Innodb_mysql_buffer_pool_dump_status','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.load.status','Innodb_mysql_buffer_pool_load_status','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.resize.status','Innodb_mysql_buffer_pool_resize_status','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.data','Innodb_mysql_buffer_pool_pages_data','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.bytes.data','Innodb_mysql_buffer_pool_bytes_data','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.dirty','Innodb_mysql_buffer_pool_pages_dirty','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.bytes.dirty','Innodb_mysql_buffer_pool_bytes_dirty','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.flushed','Innodb_mysql_buffer_pool_pages_flushed','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.free','Innodb_mysql_buffer_pool_pages_free','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.misc','Innodb_mysql_buffer_pool_pages_misc','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.pages.total','Innodb_mysql_buffer_pool_pages_total','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.ahead.rnd','Innodb_mysql_buffer_pool_read_ahead_rnd','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.ahead','Innodb_mysql_buffer_pool_read_ahead','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.ahead.evicted','Innodb_mysql_buffer_pool_read_ahead_evicted','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.read.requests','Innodb_mysql_buffer_pool_read_requests','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.reads','Innodb_mysql_buffer_pool_reads','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.wait.free','Innodb_mysql_buffer_pool_wait_free','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.buffer.pool.write.requests','Innodb_mysql_buffer_pool_write_requests','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.fsyncs','Innodb_mysql_data_fsyncs','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.pending.fsyncs','Innodb_mysql_data_pending_fsyncs','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.pending.reads','Innodb_mysql_data_pending_reads','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.pending.writes','Innodb_mysql_data_pending_writes','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.read','Innodb_mysql_data_read','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.reads','Innodb_mysql_data_reads','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.writes','Innodb_mysql_data_writes','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.data.written','Innodb_mysql_data_written','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.dblwr.pages.written','Innodb_mysql_dblwr_pages_written','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.dblwr.writes','Innodb_mysql_dblwr_writes','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.log.waits','Innodb_mysql_log_waits','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.log.write.requests','Innodb_mysql_log_write_requests','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.log.writes','Innodb_mysql_log_writes','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.os.log.fsyncs','Innodb_mysql_os_log_fsyncs','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.os.log.pending.fsyncs','Innodb_mysql_os_log_pending_fsyncs','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.os.log.pending.writes','Innodb_mysql_os_log_pending_writes','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.os.log.written','Innodb_mysql_os_log_written','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.page.size','Innodb_mysql_page_size','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.pages.created','Innodb_mysql_pages_created','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.pages.read','Innodb_mysql_pages_read','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.pages.written','Innodb_mysql_pages_written','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.row.lock.current.waits','Innodb_mysql_row_lock_current_waits','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.row.lock.time','Innodb_mysql_row_lock_time','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.row.lock.time.avg','Innodb_mysql_row_lock_time_avg','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.row.lock.time.max','Innodb_mysql_row_lock_time_max','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.row.lock.waits','Innodb_mysql_row_lock_waits','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.rows.deleted','Innodb_mysql_rows_deleted','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.rows.inserted','Innodb_mysql_rows_inserted','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.rows.read','Innodb_mysql_rows_read','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.rows.updated','Innodb_mysql_rows_updated','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.num.open.files','Innodb_mysql_num_open_files','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.truncated.status.writes','Innodb_mysql_truncated_status_writes','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Innodb.mysql.available.undo.logs','Innodb_mysql_available_undo_logs','4'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.errors.accept','Connection_mysql_errors_accept','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.errors.internal','Connection_mysql_errors_internal','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.errors.max.connections','Connection_mysql_errors_max_connections','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.errors.peer.address','Connection_mysql_errors_peer_address','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.errors.select','Connection_mysql_errors_select','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.errors.tcpwrap','Connection_mysql_errors_tcpwrap','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.connections','Connection_mysql_connections','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.Max.used.connections','Connection_mysql_Max_used_connections','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Connection.mysql.Max.used.connections.time','Connection_mysql_Max_used_connections_time','5'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.accounts.lost','Performance_mysql_schema_accounts_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.cond.classes.lost','Performance_mysql_schema_cond_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.cond.instances.lost','Performance_mysql_schema_cond_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.digest.lost','Performance_mysql_schema_digest_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.file.classes.lost','Performance_mysql_schema_file_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.file.handles.lost','Performance_mysql_schema_file_handles_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.file.instances.lost','Performance_mysql_schema_file_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.hosts.lost','Performance_mysql_schema_hosts_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.index.stat.lost','Performance_mysql_schema_index_stat_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.locker.lost','Performance_mysql_schema_locker_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.memory.classes.lost','Performance_mysql_schema_memory_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.metadata.lock.lost','Performance_mysql_schema_metadata_lock_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.mutex.classes.lost','Performance_mysql_schema_mutex_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.mutex.instances.lost','Performance_mysql_schema_mutex_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.nested.statement.lost','Performance_mysql_schema_nested_statement_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.prepared.statements.lost','Performance_mysql_schema_prepared_statements_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.program.lost','Performance_mysql_schema_program_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.rwlock.classes.lost','Performance_mysql_schema_rwlock_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.rwlock.instances.lost','Performance_mysql_schema_rwlock_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.session.connect.attrs.lost','Performance_mysql_schema_session_connect_attrs_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.socket.classes.lost','Performance_mysql_schema_socket_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.socket.instances.lost','Performance_mysql_schema_socket_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.stage.classes.lost','Performance_mysql_schema_stage_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.statement.classes.lost','Performance_mysql_schema_statement_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.table.handles.lost','Performance_mysql_schema_table_handles_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.table.instances.lost','Performance_mysql_schema_table_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.table.lock.stat.lost','Performance_mysql_schema_table_lock_stat_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.thread.classes.lost','Performance_mysql_schema_thread_classes_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.thread.instances.lost','Performance_mysql_schema_thread_instances_lost','6'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','Performance.mysql.schema.users.lost','Performance_mysql_schema_users_lost','6'); +-- +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cpu.usage.total.idle','PercentIdleTime','1'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cpu.usage.total.processor','PercentProcessorTime','1'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cpu.usage.total.user','PercentUserTime','1'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cpu.usage.total.privilege','PercentPrivilegedTime','1'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage.total.virtual','TotalVirtualMemorySize','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage.total.physical','TotalVisibleMemorySize','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage.total.paging','SizeStoredInPagingFiles','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage.free.virtual','FreeVirtualMemory','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage.free.physical','FreePhysicalMemory','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','mem.usage.free.paging','FreeSpaceInPagingFiles','2'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','disk.usage.total[$0]','Size','3'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','disk.usage.free[$0]','FreeSpace','3'); +-- +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','thread.max[$0]','ThreadMax','7'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','thread.count[$0]','ThreadCount','7'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','thread.busy[$0]','ThreadBusy','7'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','global.request.bytes_sent[$0]','Sent Byte ','8'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','global.request.bytes_rcvd[$0]','rcvd','8'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','global.request.error_count[$0]','Error Count','8'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','global.request.request_count[$0]','Request Count','8'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','global.request.max_time[$0]','Request Max Time','8'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','global.request.processing_time[$0]','Processing Time','8'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','servlet.processing_time[$0]','Servlet Processing Time','9'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','servlet.error_count[$0]','Servlet Error Count','9'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','servlet.request_count[$0]','Servlet Request Count Time','9'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cache.access_count[$0]','String Cache Access Count','10'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','cache.hits_count[$0]','String Cache hits Count','10'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','jsp.monitor.jsp_count[$0]','Jsp Monitor Jsp CountCount','11'); +--INSERT INTO meta_sensor_item (create_date,"key",name,type_id) VALUES ( +--'2017-06-26 20:10','jsp.monitor.jsp_reload_count[$0]','Jsp Monitor Jsp Reload Count','11'); +-- +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_dump_status','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','5'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_load_status','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','6'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_resize_status','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','7'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_pages_data','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','8'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_bytes_data','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','9'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_pages_dirty','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','10'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_bytes_dirty','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','11'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_pages_flushed','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','12'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_pages_free','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','13'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_pages_misc','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','14'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_pages_total','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','15'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_read_ahead_rnd','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','16'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_read_ahead','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','17'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_read_ahead_evicted','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','18'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_read_requests','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','19'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_reads','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','20'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_wait_free','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','21'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_buffer_pool_write_requests','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','22'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','23'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_pending_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','24'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_pending_reads','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','25'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_pending_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','26'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_read','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','27'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_reads','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','28'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','29'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_data_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','30'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_dblwr_pages_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','31'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_dblwr_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','32'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_log_waits','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','33'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_log_write_requests','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','34'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_log_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','35'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_os_log_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','36'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_os_log_pending_fsyncs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','37'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_os_log_pending_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','38'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_os_log_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','39'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_page_size','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','40'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_pages_created','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','41'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_pages_read','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','42'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_pages_written','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','43'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_row_lock_current_waits','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','44'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_row_lock_time','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','45'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_row_lock_time_avg','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','46'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_row_lock_time_max','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','47'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_row_lock_waits','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','48'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_rows_deleted','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','49'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_rows_inserted','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','50'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_rows_read','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','51'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_rows_updated','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','52'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_num_open_files','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','53'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_truncated_status_writes','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','54'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Innodb_available_undo_logs','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','55'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connection_errors_accept','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','56'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connection_errors_internal','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','57'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connection_errors_max_connections','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','58'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connection_errors_peer_address','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','59'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connection_errors_select','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','60'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connection_errors_tcpwrap','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','61'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Connections','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','62'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Max_used_connections','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','63'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Max_used_connections_time','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','64'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_accounts_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','65'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_cond_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','66'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_cond_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','67'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_digest_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','68'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_file_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','69'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_file_handles_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','70'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_file_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','71'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_hosts_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','72'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_index_stat_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','73'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_locker_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','74'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_memory_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','75'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_metadata_lock_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','76'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_mutex_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','77'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_mutex_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','78'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_nested_statement_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','79'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_prepared_statements_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','80'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_program_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','81'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_rwlock_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','82'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_rwlock_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','83'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_session_connect_attrs_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','84'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_socket_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','85'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_socket_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','86'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_stage_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','87'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_statement_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','88'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_table_handles_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','89'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_table_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','90'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_table_lock_stat_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','91'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_thread_classes_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','92'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_thread_instances_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','93'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Performance_schema_users_lost','show status','{"valueColumn": "Value","keyColumns": ["Variable_name"]}','11','94'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','PercentIdleTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','95'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','PercentProcessorTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','96'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','PercentUserTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','97'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','PercentPrivilegedTime','Win32_PerfFormattedData_PerfOS_Processor','{"where": "Name=''_Total''"}','23','98'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','TotalVirtualMemorySize','Win32_OperatingSystem','','23','99'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','TotalVisibleMemorySize','Win32_OperatingSystem','','23','100'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','SizeStoredInPagingFiles','Win32_OperatingSystem','','23','101'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','FreeVirtualMemory','Win32_OperatingSystem','','23','102'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','FreePhysicalMemory','Win32_OperatingSystem','','23','103'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','FreeSpaceInPagingFiles','Win32_OperatingSystem ','','23','104'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'2017-06-26 19:49','Size','Win32_LogicalDisk','{"arrayColumns": ["Caption"],"appends": ["Caption"]}','23','105'); +--INSERT INTO meta_sensor_item_key (create_date,"key",froms,option_json,crawler_id,item_id) VALUES ( +--'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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"name","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" ], "aliases":[{"key":"StringCache","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" ], "aliases":[{"key":"StringCache","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" ], "aliases":[{"key":"WebModule","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" ], "aliases":[{"key":"WebModule","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); diff --git a/src/test/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeServiceTest.java b/src/test/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeServiceTest.java index b845e48..edcd6ef 100644 --- a/src/test/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeServiceTest.java +++ b/src/test/java/com/loafle/overflow/module/meta/service/MetaSensorItemTypeServiceTest.java @@ -3,16 +3,17 @@ package com.loafle.overflow.module.meta.service; import com.loafle.overflow.module.meta.model.MetaSensorItemType; import com.loafle.overflow.spring.AppConfigTest; import org.junit.Assert; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import java.util.ArrayList; +import java.util.Date; import java.util.List; -import static org.junit.Assert.*; - /** * Created by snoop on 17. 7. 27. */ @@ -24,10 +25,97 @@ public class MetaSensorItemTypeServiceTest { private MetaSensorItemTypeService sensorItemTypeService; @Test + @Ignore public void readAll() throws Exception { List metaSensorItemTypes = this.sensorItemTypeService.readAll(); Assert.assertNotEquals(metaSensorItemTypes.size(), 0); } -} \ No newline at end of file + @Test + public void regist() throws Exception { + List list = new ArrayList<>(); + + //SSH + MetaSensorItemType sshload = new MetaSensorItemType(); + sshload.setId((short)1); + sshload.setCreateDate(new Date()); + sshload.setName("ssh.load"); + list.add(sshload); + + MetaSensorItemType sshcpu = new MetaSensorItemType(); + sshcpu.setId((short)2); + sshcpu.setCreateDate(new Date()); + sshcpu.setName("ssh.cpu"); + list.add(sshcpu); + + MetaSensorItemType sshmem = new MetaSensorItemType(); + sshmem.setId((short)3); + sshmem.setCreateDate(new Date()); + sshmem.setName("ssh.mem"); + list.add(sshmem); + + MetaSensorItemType sshdiskio = new MetaSensorItemType(); + sshdiskio.setId((short)4); + sshdiskio.setCreateDate(new Date()); + sshdiskio.setName("ssh.disk_io"); + list.add(sshdiskio); + + MetaSensorItemType sshdiskfree = new MetaSensorItemType(); + sshdiskfree.setId((short)5); + sshdiskfree.setCreateDate(new Date()); + sshdiskfree.setName("ssh.disk_free"); + list.add(sshdiskfree); + + MetaSensorItemType sshnetwork = new MetaSensorItemType(); + sshnetwork.setId((short)6); + sshnetwork.setCreateDate(new Date()); + sshnetwork.setName("ssh.network"); + list.add(sshnetwork); + + MetaSensorItemType sshps = new MetaSensorItemType(); + sshps.setId((short)7); + sshps.setCreateDate(new Date()); + sshps.setName("ssh.process"); + list.add(sshps); + + //WMI + MetaSensorItemType wmicpu = new MetaSensorItemType(); + wmicpu.setId((short)8); + wmicpu.setCreateDate(new Date()); + wmicpu.setName("wmi.cpu"); + list.add(wmicpu); + + List result = this.sensorItemTypeService.registAll(list); + + Assert.assertEquals(list.size(), result.size()); + + } + +} + + +/* +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'1','2017-06-26 19:49','CPU blah blah blah','CPU'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'2','2017-06-26 19:49','MEMORY blah blah blah','MEMORY'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'3','2017-06-26 19:49','DISK blah blah blah','DISK'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'4','2017-06-26 19:49','INNODB MYSQL','INNODB.MYSQL'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'5','2017-06-26 19:49','NET MYSQL','NET.MYSQL'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'6','2017-06-26 19:49','PERFOMANCE MYSQL','PERFOMANCE.MYSQL'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'7','2017-06-26 19:49','JMX Tomcat Thread Info','ThreadPool'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'8','2017-06-26 19:49','JMX Tomcat GlobalRequest Info','GlobalRequestProcessor'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'9','2017-06-26 19:49','JMX Tomcat Servlet Info','Servlet'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'10','2017-06-26 19:49','JMX Tomcat StringCache Info','StringCache'); +INSERT INTO meta_sensor_item_type (id,create_date,description,name) VALUES ( +'11','2017-06-26 19:49','JMX Tomcat JspMonitor Info','JspMonitor'); + */ \ No newline at end of file