Ad Widget

Collapse

net.dns -> "Unsupported item key."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dunuin
    Junior Member
    • Apr 2020
    • 3

    #1

    net.dns -> "Unsupported item key."

    Hi,

    I'm trying to check if DNS resolving for client works but I always get "Unsupported item key.".
    Server is running Zabbix 4.0 LTS von FreeBSD in a jail and client is using Raspbian and the 4.0 LTS agent.

    I tried different things like "net.dns[192.168.42.1,zabbix.com,A,2,1,udp]", "net.dns[8.8.8.8,google.com,,,,]", "net.dns[,google.com,,,,]", "net.dns[google.com]", "net.tcp.dns[8.8.8.8,google.com]" but always the same error.

    What do I have to do to get it working?

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    net.dns is an item that the Zabbix agent supports (or should support, anyway). Have you configured that item type as Zabbix agent or Zabbix agent (active)?

    What happens when you query your Raspbian client using zabbix_get from your Zabbix server?

    Code:
    sudo -u zabbix zabbix_get -k 'net.dns[8.8.8.8,google.com]' -s your_raspbian_client_here

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      There's no much use of running zabbix_get as user zabbix as all it does is connecting to the zabbix agent daemon, passing request and then the daemon performs all the job and returns back a string. What would make more sense is running the daemon in test mode, e. g.
      Code:
      sudo -u zabbix zabbix_agentd -t net.dns[8.8.8.8,google.com]
      but in this case you need to run it from the agent host.

      Comment

      • Dunuin
        Junior Member
        • Apr 2020
        • 3

        #4
        Thanks, looks like it works now.

        I think the problem was that I tried it as a "simple check" like all the other "net.tcp" items and not as "agent active".

        Code:
        sudo -u zabbix zabbix_agentd -t net.dns[8.8.8.8,google.com]
        ... gives me "net.dns[8.8.8.8,google.com] [u|1]".

        Comment

        Working...