Ad Widget

Collapse

DNS Response time cant monitoring on zabbix 6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • izelb
    Junior Member
    • Sep 2022
    • 7

    #1

    DNS Response time cant monitoring on zabbix 6.0

    In the Zabbix 5.0 , we were monitoring the DNS resolve time in ms. We used the dns[IP,example.com] item key for this. Although there is no change in zabbix 6.0, this key is no longer supported.
    I am looking for another solution for dns resolve time monitoring.​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    it should be
    net.dns[<ip>,name,<type>,<timeout>,<count>,<protocol>]​
    not just dns[]...

    Comment

    • izelb
      Junior Member
      • Sep 2022
      • 7

      #3
      yeah ı know net.dns[]. this item key not supported float type. and it just show up or down. 1-0
      ı looking for solution for dns resolve time monitoring. it doesnt have to be with this item key.

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        As I understand you want to monitor the RTT value of the DNS request. Unfortunately nothing like that comes out of the Zabbix box. But you can create a custom item, for example, additional Zabbix agent user parameter:
        Code:
        UserParameter=dns.rtt[*],dig A $1 +noall +stats | grep 'Query time' | cut -d' ' -f4
        ​
        And then in the frontend create a Zabbix agent item with the domain that you want to query:
        Code:
        Key: dns.rtt[google.com]
        ​Type: Zabbix agent
        Type of information: Numeric (unsigned)​
        You will be receiving values in milliseconds. If you like, you can convert them to seconds but change the Type of information to Numeric (float) in this case.
        If you need, you can extend item parameters, e. g. if you also would like to specify the name server to use in request:
        Code:
        UserParameter=dns.rtt[*],dig @$1 A $2 +noall +stats | grep 'Query time' | cut -d' ' -f4
        
        Key: dns.rtt[8.8.8.8,google.com]
        And if you want this to work on Zabbix server/proxy side you can use an item of type External check.
        Last edited by dimir; 08-09-2022, 12:00.

        Comment

        Working...