From: Ming K. <min...@gm...> - 2018-10-18 08:47:14
|
I am trying to use zabbix lld to monitor tomcat 7.0.x in zabbix 3.4.12. I can see the data is get correctly from agent and server can also receive the data correctly from log file when I enable debug information. But the strange issue is: the data can't be saved to database correctly, all these data are saved as 0 in database. For example: The zabbix server got the value of errorCount which is 4, but it was saved as 0 in history_uint table, this only happens on zabbix lld way. How could I go about this: Below is the log info form zabbix_server.log: ---- 22770:20181018:163208.970 trapper got '{"request":"agent data","data":[ {"host":"server203_108","key":"jmx.tomcat.item[\"Catalina:type=GlobalRequestProcessor,name=http-bio-9092\",errorCount,19092]","value":"4","clock":1539851524,"ns":348408954}, {"host":"server203_108","key":"jmx.tomcat.item[\"Catalina:type=GlobalRequestProcessor,name=http-bio-9092\",requestCount,19092]","value":"60","clock":1539851524,"ns":792037842}, {"host":"server203_108","key":"jmx.tomcat.item[\"Catalina:type=GlobalRequestProcessor,name=http-bio-9092\",bytesSent,19092]","value":"33407","clock":1539851525,"ns":236373624}, {"host":"server203_108","key":"jmx.tomcat.item[\"Catalina:type=GlobalRequestProcessor,name=http-bio-9092\",errorCount,19092]","value":"4","clock":1539851526,"ns":882325371}, {"host":"server203_108","key":"jmx.tomcat.item[\"Catalina:type=GlobalRequestProcessor,name=http-bio-9092\",requestCount,19092]","value":"61","clock":1539851527,"ns":525672372}, {"host":"server203_108","key":"jmx.tomcat.item[\"Catalina:type=GlobalRequestProcessor,name=http-bio-9092\",bytesSent,19092]","value":"33534","clock":1539851527,"ns":970048633}],"clock":1539851528,"ns":970433273}' 22770:20181018:163208.970 In recv_agenthistory() 22770:20181018:163208.970 In process_client_history_data() 22770:20181018:163208.970 In parse_history_data() 22770:20181018:163208.971 End of parse_history_data():SUCCEED processed:6/6 22770:20181018:163208.971 In process_history_data() 22770:20181018:163208.971 In zbx_preprocess_item_value() 22770:20181018:163208.971 End of zbx_preprocess_item_value() 22770:20181018:163208.971 In zbx_preprocess_item_value() 22770:20181018:163208.971 End of zbx_preprocess_item_value() 22770:20181018:163208.971 In zbx_preprocess_item_value() 22770:20181018:163208.971 End of zbx_preprocess_item_value() 22770:20181018:163208.971 In zbx_preprocess_item_value() 22770:20181018:163208.971 End of zbx_preprocess_item_value() 22770:20181018:163208.971 In zbx_preprocess_item_value() 22770:20181018:163208.972 End of zbx_preprocess_item_value() 22770:20181018:163208.972 In zbx_preprocess_item_value() 22770:20181018:163208.972 End of zbx_preprocess_item_value() 22770:20181018:163208.972 In zbx_ipc_socket_write() 22770:20181018:163208.972 End of zbx_ipc_socket_write():SUCCEED 22770:20181018:163208.972 End of process_history_data() processed:6 22770:20181018:163208.972 End of process_client_history_data():SUCCEED 22770:20181018:163208.972 In zbx_send_response() 22789:20181018:163208.972 zbx_ipc_service_recv() code:2 size:442 data:01 70 00 00 00 00 00 00 | 03 04 00 00 00 00 00 01 | 04 45 c8 5b 06 11 c5 14 | 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 00 00 00 00 00 02 00 00 | 00 34 00 00 00 00 00 08 | 00 00 00 00 00 00 00 00 | 03 70 00 00 00 00 00 00 | 00 04 00 00 00 00 00 01 | 04 45 c8 5b 5e 4e 36 2f | 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 00 00 00 00 00 03 00 00 22770:20181018:163208.972 zbx_send_response() '{"response":"success","info":"processed: 6; failed: 0; total: 6; seconds spent: 0.001720"}' 22789:20181018:163208.972 End of zbx_ipc_service_recv():1 22770:20181018:163208.973 End of zbx_send_response():SUCCEED 22770:20181018:163208.973 End of recv_agenthistory() ... 22755:20181018:163209.795 query [txnlev:1] [insert into history_uint (itemid,clock,ns,value) values (28673,1539851524,348459270,0); 22755:20181018:163209.795 query [txnlev:1] [commit;] ... |