-
Problem report
-
Resolution: Duplicate
-
Critical
-
None
-
5.0.1
Steps to reproduce:
1. Create any host with SNMP template
2. SNMP community and host interface IP specify as user macro
3. Open any SNMP item on the host
4. Click on test
5. check debug log, macros are note resolved:
204:20200617:180147.511 trapper got '{"request":"item.test","data":{"type":"20","proxy_hostid":"0","snmp_oid":"1.3.6.1.2.1.1.6.0","flags":"0","host":{"host":"some test"},"interface":{"address":"{$TEST_MACRO}","port":"161","useip":"1","interfaceid":"4","details":{"version":"1","bulk":"1","community":"{$SNMP_COMMUNITY}"}}},"sid":"1205ca586cc9627e02c0a141641f9bc5"}' 204:20200617:180147.511 In zbx_trapper_item_test() 204:20200617:180147.511 In DBget_user_by_active_session() sessionid:1205ca586cc9627e02c0a141641f9bc5 204:20200617:180147.511 query [txnlev:0] [select u.userid,u.type from sessions s,users u where s.userid=u.userid and s.sessionid='1205ca586cc9627e02c0a141641f9bc5' and s.status=0] 204:20200617:180147.511 End of DBget_user_by_active_session():SUCCEED 204:20200617:180147.511 In zbx_trapper_item_test_run() 204:20200617:180147.511 key:'' 204:20200617:180147.511 type: 20 204:20200617:180147.511 snmp_version: 1 204:20200617:180147.511 value_type: 0 204:20200617:180147.511 snmpv3_securitylevel: 0 204:20200617:180147.511 authtype: 0 204:20200617:180147.511 flags: 0 204:20200617:180147.511 snmpv3_authprotocol: 0 204:20200617:180147.511 snmpv3_privprotocol: 0 204:20200617:180147.511 follow_redirects: 1 204:20200617:180147.511 post_type: 0 204:20200617:180147.511 retrieve_mode: 0 204:20200617:180147.511 request_method: 0 204:20200617:180147.511 output_format: 0 204:20200617:180147.511 verify_peer: 0 204:20200617:180147.511 verify_host: 0 204:20200617:180147.511 ipmi_sensor:'' 204:20200617:180147.511 snmp_community:'{$SNMP_COMMUNITY}' 204:20200617:180147.511 snmp_oid:'1.3.6.1.2.1.1.6.0' 204:20200617:180147.511 snmpv3_securityname:'(null)' 204:20200617:180147.511 snmpv3_authpassphrase:'(null)' 204:20200617:180147.511 snmpv3_privpassphrase:'(null)' 204:20200617:180147.511 params:'' 204:20200617:180147.511 username:'(null)' 204:20200617:180147.511 publickey:'(null)' 204:20200617:180147.511 privatekey:'(null)' 204:20200617:180147.511 password:'(null)' 204:20200617:180147.511 snmpv3_contextname:'(null)' 204:20200617:180147.511 jmx_endpoint:'(null)' 204:20200617:180147.512 timeout:'(null)' 204:20200617:180147.512 url:'(null)' 204:20200617:180147.512 query_fields:'(null)' 204:20200617:180147.512 posts:'' 204:20200617:180147.512 status_codes:'(null)' 204:20200617:180147.512 http_proxy:'(null)' 204:20200617:180147.512 headers:'' 204:20200617:180147.512 ssl_cert_file:'(null)' 204:20200617:180147.512 ssl_key_file:'(null)' 204:20200617:180147.512 ssl_key_password:'(null)' 204:20200617:180147.512 interfaceid: 4 204:20200617:180147.512 useip: 1 204:20200617:180147.512 address:'{$TEST_MACRO}' 204:20200617:180147.512 port: 161 204:20200617:180147.512 hostid: 0 204:20200617:180147.512 proxy_hostid: 0 204:20200617:180147.512 host:'some test' 204:20200617:180147.512 maintenance_status: 0 204:20200617:180147.512 maintenance_type: 0 204:20200617:180147.512 snmp_available: 0 204:20200617:180147.512 available: 0 204:20200617:180147.512 ipmi_available: 0 204:20200617:180147.512 ipmi_authtype: -1 204:20200617:180147.512 ipmi_privilege: 2 204:20200617:180147.512 ipmi_username:'' 204:20200617:180147.512 ipmi_password:'' 204:20200617:180147.512 jmx_available: 0 204:20200617:180147.512 tls_connect: 1 204:20200617:180147.512 tls_issuer:'' 204:20200617:180147.512 tls_subject:'' 204:20200617:180147.512 tls_psk_identity:'' 204:20200617:180147.512 tls_psk:'' 204:20200617:180147.512 In get_values_snmp() host:'some test' addr:'{$TEST_MACRO}' num:1 204:20200617:180147.512 In zbx_snmp_open_session() 204:20200617:180147.555 End of zbx_snmp_open_session() 204:20200617:180147.555 getting SNMP values failed: {$TEST_MACRO}: [-2] Name does not resolve 204:20200617:180147.555 End of get_values_snmp() 204:20200617:180147.555 End of zbx_trapper_item_test_run():FAIL
Web-interface pass fields with unresolved user macro.
- duplicates
-
ZBX-17886 Zabbix 5.0.1 LLD Test Issue
- Closed