Ad Widget

Collapse

Template App Zabbix Server gives ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • porkcharsui
    Junior Member
    • May 2012
    • 15

    #1

    Template App Zabbix Server gives ZBX_NOTSUPPORTED

    Hello all,

    Im fairly new to linux in general and this is the first time I've set up a monitoring system. I've set up a Zabbix server @ my university to monitor our linux workstations, we have almost 200 and this will increase to almost a 1000. It works now, after several attempts, because every time I installed it, I tried some stuff and had to conclude it was fixed in the next version. I've upgraded from 1.8.2 to 1.8.5 to 2.0.0-rc5 and now I'm using the stable Zabbix 2.0.0, which mostly does what I want now. Of course I'm also using the latest Zabbix agent 2.0.0.

    So I thought I'd use the standard template "Template App Zabbix Server" to keep an eye on the server itself... but it doesn't work. When I want to use any of the 'items' I get the following:
    $ zabbix_get -s 127.0.0.1 -k zabbix[<doesnt matter what value's in here>]
    ZBX_NOTSUPPORTED

    Other templates and keys work perfectly... it's only the template "Template App Zabbix Server".

    I don't see anything about these attempts in the log files for server or agent. Can anyone please tell me if it isn't supported yet or if I should enable something or ...?

    Thanks for any help!
  • michelis
    Junior Member
    • Jan 2012
    • 14

    #2
    Hi,

    have you opened the correct ports in the firewall? Did you try
    Code:
    zabbix_get -s $IP_OF_ZABBIX -p 10050 -k "agent.version"
    Where $IP_OF_ZABBIX is not 127.0.0.1 but the "real" IP in the net?

    And what do the logs of the server and the agent say to this?

    Try a
    Code:
    netstat -l | egrep '(zabbix|10050)'
    to see if the agent is listening on the server.


    Greetz
    Tobias

    Comment

    • porkcharsui
      Junior Member
      • May 2012
      • 15

      #3
      Thanks for your reply michelis!

      The firewall is open, I get the following from netstat:
      Code:
      # netstat -tulpn | egrep '(zabbix|10050)'
      tcp  0  0  0.0.0.0:10050  0.0.0.0:*  LISTEN  30185/zabbix_agentd
      tcp  0  0  0.0.0.0:10051  0.0.0.0:*  LISTEN  8593/zabbix_server
      tcp6  0  0  :::10051  :::*  LISTEN  8593/zabbix_server
      But when I try zabbix_get:
      Code:
      On the server I get nothing, just a new prompt:
      # zabbix_get -s <real world IP#> -p 10050 -k "agent.version"
      #
      But when I try 127.0.0.1, I do get a reply.
      
      On a workstation I get an empty line and a new prompt:
      # zabbix_get -s <real server IP#> -p 10050 -k "agent.version"
      
      #
      The zabbix-agent log only shows the last restart:
      29861:20120606:161022.902 Got signal [signal:15(SIGTERM),sender_pid:30172,sender_uid:0,r eason:0]. Exiting ...
      29861:20120606:161024.903 Zabbix Agent stopped. Zabbix 2.0.0 (revision 27675).
      30185:20120606:161121.518 Starting Zabbix Agent [<hostname>]. Zabbix 2.0.0 (revision 27675).
      30188:20120606:161121.521 agent #2 started[listener]
      30187:20120606:161121.522 agent #1 started[listener]
      30189:20120606:161121.523 agent #3 started[listener]
      30186:20120606:161121.523 agent #0 started [collector]
      30190:20120606:161121.525 agent #4 started [active checks]

      The zabbix-server log doesn't show anything of my zabbix_get attempts.

      I don't get the ZBX_NOTSUPPORTED message though.
      Last edited by porkcharsui; 06-06-2012, 16:47.

      Comment

      • michelis
        Junior Member
        • Jan 2012
        • 14

        #4
        What is the value of 'Server' in your zabbix_agentd.conf?

        Comment

        • porkcharsui
          Junior Member
          • May 2012
          • 15

          #5
          The value of server was the hostname when I tried that it worked perfectly. I also changed the value to the real IP#, restarted the agent and that it worked on the IP#.

          On the server I get:
          Code:
          # zabbix_get -s <hostname or IP#> -p 10050 -k "agent.version"
          2.0.0
          #
          But when I try any of the zabbix keys:
          Code:
          # zabbix_get -s <hostname or IP#> -p 10050 -k zabbix[queue]
          ZBX_NOTSUPPORTED
          #
          And on a workstation I still get an empty line back from the server:
          Code:
          # zabbix_get -s <hostname or IP#> -p 10050 -k "agent.version"
          
          #
          I still don't see anything of this in the logs though.

          Comment

          • ghoz
            Senior Member
            • May 2011
            • 204

            #6
            * the "server" line in the agent config lists the IPs allowed to query the agent. as suggested michelis, that's why your workstation won't get any answer as long as it's not listed there.
            * the "zabbix[queue]" is an internal zabbix server item, the agent has nothing to do with that and as such answers ZBX_NOTSUPPORTED

            ghoz

            Comment

            • porkcharsui
              Junior Member
              • May 2012
              • 15

              #7
              Ah... that clears that up!

              Thanks Ghoz

              Comment

              • dhohn
                Junior Member
                • Nov 2014
                • 2

                #8
                internal checks debugging

                So if the internal checks can not be debugged by using zabbix_get how would I do about doing that?

                I have about 700 delayed items in the Administration>Queue Tab for one of my proxies in the web interface. However the zabbix[queue] item for that item is 0 for that proxy which is clearly wrong.

                Are the internal items sent by the proxy to the server? Or are they fetched from the server?

                Comment

                Working...