Ad Widget

Collapse

How to monitor agents via proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkoon
    Junior Member
    • Jan 2009
    • 20

    #1

    How to monitor agents via proxy

    Hi

    I'm having problem monitoring agents via the zabbix proxy. The zabbix proxy is active and monitored by the zabbix server.

    The zabbix agent is not accessible by the zabbix server in anyway. Firewall ports(Port 10050 and 10051) have been opened between the agent and the proxy.

    But the status of the availability of the agent is still "Unknown". From the proxy server, i've did a zabbix_get to the agent and able to retrieve results.

    According to previous posts, it is not really important to have the availability as Available. Can anyone confirm on this?
    Even so, the web interface of the zabbix server is still not able to retrieve any data from the agent(monitored via proxy)


    Please advise on what other files or parameters i would need to modify to get it working?

    Thanks in advance!!!
    Last edited by kkoon; 17-04-2009, 05:24.
  • kkoon
    Junior Member
    • Jan 2009
    • 20

    #2
    More updates:

    The proxy log file shows:
    12013:20090417:140331 Send list of active checks to [x.x.x.x] failed: host [host.domain.com] not found

    The agent log shows:
    4647:20090417:140750 Unsucesfull response received from server


    Any one have any idea what's the problem for this?

    And should the server ip stated in the agent file be pointing to the zabbix server or the zabbix proxy?

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      The reason for failed active checks... in the zabbix_agentd.conf file, active checks are only sent to the first IP address on the "Server=" line. If you don't use active checks, then disregard that message. It is really just more of an info message than an error.

      Now, for your config setups....

      On your proxy:

      zabbix_proxy.conf
      Code:
      Server=xxx.xxx.xxx.xxx  <-- the IP of your Zabbix server
      Hostname=xxxxxxxxx   <-- this must be a unique name and match [U]exactly[/U] the name as you have it on your Zabbix server
      If you make changes to the above, be sure to restart your proxy service

      On your host:

      zabbix_agentd.conf
      Code:
      Server=xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx  <-- Zabbix server [B]and[/B] Zabbix proxy IP's. Comma seperated.
      LogFile=c:\zabbix\zabbix_agentd.log
      Hostname=xxxxxxx   <-- Unique hostname, match exactly as entered on Zabbix server
      If you make conf changes, restart the agent(s)

      On the Zabbix GUI... Configuration --> Hosts --> Select "Proxies" from the dropdown and make sure that there is a value under the "Last seen (age)" column. Preferably not more than a few seconds old.

      Finally, make sure that the host(s) are set to be monitored by the appropriate proxy

      Comment


      • vishnuvs369
        vishnuvs369 commented
        Editing a comment
        I tried this method and now i'm getting an error message in zabbix UI "Get value from agent failed: ZBX_TCP_READ() timed out"

        Can you please help on this?
    • Luke5310
      Junior Member
      • Jan 2010
      • 2

      #4
      I did everything that you said and value under the "Last seen (age)" column is never more than a minute. But all my hosts which are monitored by proxy no retrieve any data.
      Please help !

      Sry for my bad english, I'm french


      Luke

      Comment

      • exkg
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified Specialist
        • Mar 2007
        • 718

        #5
        Hi Luke,

        Some checks to do:

        - Log files on ZABBIX Agent;
        - Log files on ZABBIX Proxy;
        - Log files on ZABBIX Server;

        ... logs are friends

        Can you do a 'zabbbix_get -s <HOST AGENT> -k agent.ping' (from ZABBIX Proxy) ?


        []s,
        Luciano
        --
        Luciano Alves
        www.zabbix.com
        Brazil | México | Argentina | Colômbia | Chile
        Zabbix Performance Tuning

        Comment

        • Luke5310
          Junior Member
          • Jan 2010
          • 2

          #6
          Hi Luciano,
          Thanx for your anwser

          The zabbix proxy log and zabbix server log return me the same error : Connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket 'var/run/mysqld/mysqld.sock' (2)

          But I checked and the file mysqld.sock is in the good directory

          I didn't see any other error in log files.

          The command 'zabbbix_get -s <HOST AGENT> -k agent.ping' only return me a "1"

          Thanx for help

          Luke

          Comment

          Working...