-
Problem report
-
Resolution: Unresolved
-
Major
-
7.0.3
-
Technical backlog, S24-W36/37
Currently very difficult to navigate through Zabbix log with debug level > 3 and enabled async processing. For example:
8529:20240829:162340.940 End of snmp_bulkwalk_add():SUCCEED fd:33 8529:20240829:162340.940 End of snmp_task_process() 8529:20240829:162340.940 End of async_event():ZBX_ASYNC_TASK_READ 8529:20240829:162340.940 In zbx_ipc_async_socket_recv() timeout:0 8529:20240829:162340.940 End of zbx_ipc_async_socket_recv():0 8529:20240829:162340.947 In async_event() 8529:20240829:162340.947 In snmp_task_process() event:2 fd:30 itemid:536920 8529:20240829:162340.947 In asynch_response() 8529:20240829:162340.947 operation:1 response id:1262316165 command:162 probe:0 8529:20240829:162340.947 In snmp_bulkwalk_handle_response() 8529:20240829:162340.947 End of snmp_bulkwalk_handle_response():SUCCEED running:1 8529:20240829:162340.947 End of asynch_response():SUCCEED 8529:20240829:162340.947 In snmp_bulkwalk_add() OID: '.1.3.6.1.2.1.2.2.1.19.1258' 8529:20240829:162340.947 In snmp_bulkwalk_add() sending 8529:20240829:162340.947 In snmp_bulkwalk_add() send completed 8529:20240829:162340.947 End of snmp_bulkwalk_add():SUCCEED fd:30 8529:20240829:162340.947 End of snmp_task_process() 8529:20240829:162340.947 End of async_event():ZBX_ASYNC_TASK_READ 8529:20240829:162340.947 In zbx_ipc_async_socket_recv() timeout:0 8529:20240829:162340.947 End of zbx_ipc_async_socket_recv():0 8529:20240829:162340.960 In async_event() 8529:20240829:162340.960 In snmp_task_process() event:2 fd:29 itemid:556118 8529:20240829:162340.960 In asynch_response() 8529:20240829:162340.960 operation:1 response id:1262316166 command:162 probe:0 8529:20240829:162340.960 In snmp_bulkwalk_handle_response() 8529:20240829:162340.960 End of snmp_bulkwalk_handle_response():SUCCEED running:1 8529:20240829:162340.960 End of asynch_response():SUCCEED 8529:20240829:162340.960 In snmp_bulkwalk_add() OID: '.1.3.6.1.2.1.31.1.1.1.11.1364' 8529:20240829:162340.960 In snmp_bulkwalk_add() sending 8529:20240829:162340.960 In snmp_bulkwalk_add() send completed 8529:20240829:162340.960 End of snmp_bulkwalk_add():SUCCEED fd:29 8529:20240829:162340.960 End of snmp_task_process() 8529:20240829:162340.960 End of async_event():ZBX_ASYNC_TASK_READ 8529:20240829:162340.960 In zbx_ipc_async_socket_recv() timeout:0 8529:20240829:162340.960 End of zbx_ipc_async_socket_recv():0 8529:20240829:162340.964 In async_event() 8529:20240829:162340.964 In snmp_task_process() event:2 fd:33 itemid:536919 8529:20240829:162340.964 In asynch_response() 8529:20240829:162340.964 operation:1 response id:1262316168 command:162 probe:0 8529:20240829:162340.964 In snmp_bulkwalk_handle_response() 8529:20240829:162340.964 End of snmp_bulkwalk_handle_response():SUCCEED running:1 8529:20240829:162340.964 End of asynch_response():SUCCEED 8529:20240829:162340.964 In snmp_bulkwalk_add() OID: '.1.3.6.1.2.1.2.2.1.19.693' 8529:20240829:162340.964 In snmp_bulkwalk_add() sending 8529:20240829:162340.964 In snmp_bulkwalk_add() send completed 8529:20240829:162340.964 End of snmp_bulkwalk_add():SUCCEED fd:33 8529:20240829:162340.964 End of snmp_task_process() 8529:20240829:162340.964 End of async_event():ZBX_ASYNC_TASK_READ 8529:20240829:162340.964 In zbx_ipc_async_socket_recv() timeout:0 8529:20240829:162340.964 End of zbx_ipc_async_socket_recv():0 8529:20240829:162340.965 In async_event() 8529:20240829:162340.965 In snmp_task_process() event:2 fd:24 itemid:556115 8529:20240829:162340.965 In asynch_response() 8529:20240829:162340.965 operation:1 response id:1262316167 command:162 probe:0 8529:20240829:162340.965 In snmp_bulkwalk_handle_response() 8529:20240829:162340.965 End of snmp_bulkwalk_handle_response():SUCCEED running:1 8529:20240829:162340.965 End of asynch_response():SUCCEED
All log records have one process ID, currently it is possible to filter messages only by fd or itemid, but such information is not available on each line. It is better to introduce additional ID which can clearly describe process thread.