Hello, we have an application (Kotlin) that sends data to our Zabbix server using the `zabbix_sender` protocol. The problem is that some data are received and accepted as expected, but other data are not, and I can't see why. I can't see any significant difference between the host/item that accepts its data, and the host/item that doesn't.
The host that accepts its data looks like this:
and the item, like this:
The log covering the arrival and processing of one data item is:
whereas the host that apparently ignores its data is
and the item is
and the excerpt from the log is
The agent interfaces are left from my fumbling around and aren't relevant (I believe).
unknown validation error is not very helpful. The datum is a character, as is the datum that was accepted. Can anyone propose why the host/item does not see the data?
The host that accepts its data looks like this:
Code:
2567:20220901:160208.579 zbx_send_response_ext() '{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000125"}'
2567:20220901:160208.579 End of zbx_send_response_ext():SUCCEED
2567:20220901:160208.579 End of recv_senderhistory()
2567:20220901:160208.579 zbx_setproctitle() title:'trapper #4 [processed data in 0.000408 sec, waiting for connection]'
2568:20220901:160208.635 zbx_setproctitle() title:'trapper #5 [processing data]'
2568:20220901:160208.635 trapper got '{"request":"sender data","data":[{"host":"kitten-worker","key":"conclusion[CGNAT]","value":"2","clock":1662012128}]}'
2568:20220901:160208.636 In recv_senderhistory()
2568:20220901:160208.636 In process_client_history_data()
2568:20220901:160208.636 In parse_history_data()
2568:20220901:160208.636 End of parse_history_data():SUCCEED processed:1/1
2568:20220901:160208.636 In process_history_data()
2568:20220901:160208.636 In zbx_preprocess_item_value()
2568:20220901:160208.636 End of zbx_preprocess_item_value()
2568:20220901:160208.636 In zbx_ipc_socket_open()
2568:20220901:160208.636 End of zbx_ipc_socket_open():SUCCEED
2568:20220901:160208.636 In zbx_ipc_socket_write()
2568:20220901:160208.636 End of zbx_ipc_socket_write():SUCCEED
2568:20220901:160208.636 End of process_history_data() processed:1
2568:20220901:160208.636 End of process_client_history_data():SUCCEED
2568:20220901:160208.636 In zbx_send_response_ext()
2568:20220901:160208.636 zbx_send_response_ext() '{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000276"}'
2568:20220901:160208.636 End of zbx_send_response_ext():SUCCEED​
Code:
2542:20220901:160240.418 In zbx_ipc_service_recv() timeout:1
2568:20220901:160240.443 zbx_setproctitle() title:'trapper #5 [processing data]'
2568:20220901:160240.444 trapper got '{"request":"sender data","data":[{"host":"ASSET201098","key":"backup","value":"1","clock":1662012155}]}'
2568:20220901:160240.444 In recv_senderhistory()
2568:20220901:160240.444 In process_client_history_data()
2568:20220901:160240.444 In parse_history_data()
2568:20220901:160240.444 End of parse_history_data():SUCCEED processed:1/1
2568:20220901:160240.444 unknown validation error for item "backup"
2568:20220901:160240.444 In process_history_data()
2568:20220901:160240.444 End of process_history_data() processed:0
2568:20220901:160240.444 End of process_client_history_data():SUCCEED
2568:20220901:160240.444 In zbx_send_response_ext()
2568:20220901:160240.444 zbx_send_response_ext() '{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000121"}'
2568:20220901:160240.444 End of zbx_send_response_ext():SUCCEED​
unknown validation error is not very helpful. The datum is a character, as is the datum that was accepted. Can anyone propose why the host/item does not see the data?
Comment