Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25378

net.dns.get ignore quotes in flags field

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 7.0.3, 7.0.4
    • Agent (G)
    • None
    • Debian GNU/Linux 12 (bookworm), AMD64

      Steps to reproduce:

      1. Assignment in the 7th parameter of the net.dns.get key of several flags separated by commas according to the instructions causes an error.
      2. If only one flag is specified, it works as described in the instructions.

      Multiple flags:

      debian:~$ sudo /sbin/zabbix_agent2 -t net.dns.get[,198.51.100.1,PTR,,,,"cdflag,rdflag"]
      net.dns.get[,198.51.100.1,PTR,,,,cdflag,rdflag][m|ZBX_NOTSUPPORTED] [Too many parameters.]

      Single flag:

      debian:~$ sudo /sbin/zabbix_agent2 -t net.dns.get[,198.51.100.1,PTR,,,,"cdflag"]
      2024/10/10 12:06:05.862264 [NetCheck] plugin "/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-netcheck" process exited
      {{net.dns.get[,198.51.100.1,PTR,,,,cdflag]      [s|{"authority_section":[{"class":"IN","name":"100.51.198.in-addr.arpa.","rdata":{"expire":604800,"mbox":".","minttl":86400,"ns":"100.51.198.in-addr.arpa.","refresh":28800,"retry":7200,"serial":0},"rdlength":23,"ttl":900,"type":"SOA"}],"flags":["RD","RA","CD"],"query_time":"0.01","question_section":[{"qclass":"IN","qname":"1.100.51.198.in-addr.arpa.","qtype":"PTR"}],"response_code":"NXDOMAIN","zbx_error_code":0}]}}
      

       

            zabbix.dev Zabbix Development Team
            Kvantum Vladimir Kushnir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: