-
Problem report
-
Resolution: Fixed
-
Trivial
-
7.0.10
-
None
-
S25-W10/11, S25-W12/13, S25-W14/15
-
1
net.dns.get has some issues:
1.
$ zabbix_get -s localhost -k 'net.dns.get[1.1.1.1,_nonexistant__.google.com,A]' {"flags":["RA"],"query_time":"0.00","question_section":[{"qclass":"IN","qname":"_nonexistant__.google.com.","qtype":"A"}],"response_code":"SERVFAIL","zbx_error_code":0}
But:
$ zabbix_get -s localhost -k 'net.dns.get[1.1.1.1,_nonexistant__.google.com,A,,,,""]' {"authority_section":[{"class":"IN","name":"google.com.","rdata":{"expire":1800,"mbox":"dns-admin.google.com.","minttl":60,"ns":"ns1.google.com.","refresh":900,"retry":900,"serial":731662737},"rdlength":38,"ttl":60,"type":"SOA"}],"flags":["RD","RA"],"query_time":"0.04","question_section":[{"qclass":"IN","qname":"_nonexistant__.google.com.","qtype":"A"}],"response_code":"NXDOMAIN","zbx_error_code":0}
2.
query_time has 2 decimal places precision. This means that times below 10ms will not be reported properly. It must be increased to 6 decimal places.