On Zabbix 5.0.2, when I setup network discovery rule:

I never get any discoveries in Monitoring->Discovery. Ping and SSH work fine.
I increased the log level on the discoverer process to debug and here is the result of the discovery attempt for the ip:
The problem seems to be in:
However,
returns
Can this be debugged a little deeper, specifically, what is happening in
that it returns the error. Am I missing some tools or is this a bug?
Also, if I add the host manually, the SNMP values seem to be read (specifically the OID used for discovery is read correctly in an added host).
I never get any discoveries in Monitoring->Discovery. Ping and SSH work fine.
I increased the log level on the discoverer process to debug and here is the result of the discovery attempt for the ip:
Code:
24657:20200729:143456.700 process_rule() ip:'192.168.1.9' 24657:20200729:143456.701 query [txnlev:0] [select dcheckid,type,key_,snmp_community,snmpv3_securityn ame,snmpv3_securitylevel,snmpv3_authpassphrase,snm pv3_privpassphrase,snmpv3_authprotocol,snmpv3_priv protocol,ports,snmpv3_contextname from dchecks where druleid=8 order by dcheckid] 24657:20200729:143456.701 In process_check() 24657:20200729:143456.701 process_check() port:161 24657:20200729:143456.701 In discover_service() 24657:20200729:143456.701 In substitute_simple_macros_impl() data:'PUBLIC' 24657:20200729:143456.701 In substitute_key_macros_impl() data:'1.3.6.1.2.1.1.5.0' 24657:20200729:143456.702 End of substitute_key_macros_impl():SUCCEED data:'1.3.6.1.2.1.1.5.0' 24657:20200729:143456.702 In get_values_snmp() host:'' addr:'192.168.1.9' num:1 24657:20200729:143456.702 In zbx_snmp_open_session() 24657:20200729:143456.702 SNMP [[email protected]:161] 24657:20200729:143456.702 End of zbx_snmp_open_session() 24657:20200729:143456.702 In zbx_snmp_process_standard() 24657:20200729:143456.702 In zbx_snmp_translate() OID:'1.3.6.1.2.1.1.5.0' 24657:20200729:143456.702 End of zbx_snmp_translate() oid_translated:'1.3.6.1.2.1.1.5.0' 24657:20200729:143456.702 In zbx_snmp_get_values() num:1 level:0 24657:20200729:143504.706 zbx_snmp_get_values() snmp_synch_response() status:2 s_snmp_errno:-24 errstat:-1 mapping_num:1 24657:20200729:143504.706 End of zbx_snmp_get_values():NETWORK_ERROR 24657:20200729:143504.712 End of zbx_snmp_process_standard():NETWORK_ERROR 24657:20200729:143504.712 In zbx_snmp_close_session() 24657:20200729:143504.712 End of zbx_snmp_close_session() 24657:20200729:143504.712 getting SNMP values failed: Timeout while connecting to "192.168.1.9:161". 24657:20200729:143504.712 End of get_values_snmp() 24657:20200729:143504.712 discovery: item [1.3.6.1.2.1.1.5.0] error: Timeout while connecting to "192.168.1.9:161". 24657:20200729:143504.712 End of discover_service():FAIL 24657:20200729:143504.712 End of process_check() 24657:20200729:143504.712 query [txnlev:1] [begin;] 24657:20200729:143504.713 In DBlock_record() 24657:20200729:143504.713 query [txnlev:1] [select null from drules where druleid=8 for update] 24657:20200729:143504.713 End of DBlock_record():SUCCEED 24657:20200729:143504.713 In process_services() 24657:20200729:143504.713 query [txnlev:1] [select dcheckid from dchecks where dcheckid=10 order by dcheckid for update] 24657:20200729:143504.714 In discovery_update_service() ip:'192.168.1.9' dns:'' port:161 status:1 value:'' 24657:20200729:143504.714 In discovery_register_host() ip:'192.168.1.9' status:1 value:''
Code:
24657:20200729:143504.706 zbx_snmp_get_values() snmp_synch_response() status:2 s_snmp_errno:-24 errstat:-1 mapping_num:1 24657:20200729:143504.706 End of zbx_snmp_get_values():NETWORK_ERROR 24657:20200729:143504.712 End of zbx_snmp_process_standard():NETWORK_ERROR
Code:
snmpget -v 1 -c public 192.168.1.9 1.3.6.1.2.1.1.5.0
Code:
SNMPv2-MIB::sysName.0 = STRING: SW9
Code:
zbx_snmp_get_values
Also, if I add the host manually, the SNMP values seem to be read (specifically the OID used for discovery is read correctly in an added host).
Comment