Ad Widget

Collapse

Zabbix proxy configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivy310
    Junior Member
    • Aug 2013
    • 15

    #1

    Zabbix proxy configuration

    I have zabbix-server installation in 2.2 release. Only zabbix_server without zabbix_proxy.

    Number of hosts - 864
    Number of items - 412406

    I use zabbix_agents and zabbix_sender to collecting and sending data to zabbix_server directly.
    I'd like to change it and send zabbix-agents traffic by zabbix_proxy but zabbix_sender traffic - directly to zabbix_server trappers.

    I'm trying to configure zabbix_proxy but i have some problems with it.

    Some questions regarding configuration:
    1) What db should be used for zabbix_proxy? Copy of already used db for zabbix_server or just clean db for 2.2 created by script schema.sql?

    2) Hostname parameter for zabbix_proxy should be:

    "Unique, case sensitive Proxy name. Make sure the Proxy name is known to the server!"

    But should it be uniqe in zabbix_proxies scope or all the hosts at all? I mean - can I have zabbix_proxy with name "server1" and regular host with the same name?

    3) How should I set parameter Server in zabbix_agent config file:
    - Server=zabbix_proxy_name
    - Server=hostname_where_zabbix_proxy_is_installed
    - Server=any of above,zabbix_server


    I'm using copy of db that zabbix-server uses and tried to set Hostname to name of server where it's installed (such host exist in zabbix) as well as to some other name which doesn't exist in zabbix at all. In both configuration it doesn't work.
    I of course configured host in zabbix to use proxy.
    Administration -> DM shows (age) for my proxy not longer than 60s.

    Is there anything that I'm doing wrong or just I should do more?

    In zabbix_proxy log I see messages:

    21360:20140506:102819.849 Zabbix agent item "system.cpu.util[,steal,avg1]" on host "box_configured_to_use_proxy" failed: another network error, wait for 15 seconds
    21364:20140506:102835.860 [Z3005] query failed: [1205] Lock wait timeout exceeded; try restarting transaction [update hosts set disable_until=1399389328,error='Received empty response from Zabbix Agent at [ip_box_configured_to_use_proxy]. Assuming that agent dropped connection because of access permissions.' where hostid=11129]
    21364:20140506:102835.860 Zabbix agent item "vm.memory.size[cached]" on host "box_configured_to_use_proxy" failed: another network error, wait for 15 seconds
    21363:20140506:103043.499 temporarily disabling Zabbix agent checks on host "Different_host_not_configured_to_use_proxy": host unavailable
    21362:20140506:103145.987 [Z3005] query failed: [1205] Lock wait timeout exceeded; try restarting transaction [update hosts set available=2,disable_until=1399389564,error='Receiv ed empty response from Zabbix Agent at [ip_box_configured_to_use_proxy]. Assuming that agent dropped connection because of access permissions.' where hostid=11129]
    21362:20140506:103145.987 temporarily disabling Zabbix agent checks on host "box_configured_to_use_proxy": host unavailable


    I'm using:
    # zabbix_server -V
    Zabbix server v2.2.1 (revision 40808) (09 December 2013)

    # zabbix_proxy -V
    Zabbix proxy v2.2.1 (revision 40808) (09 December 2013)

    MySQL 5.6
  • sivy310
    Junior Member
    • Aug 2013
    • 15

    #2
    Solution

    I think I've found all the answers.

    1) DB - it should be clean database created by script schema.sql (don't run scripts: images.sql and data.sql).

    2) I used uniqe name at all (hostname_proxy). Configured proxy in zabbix (Administration -> DM) with exactly the same name. Edited all hosts that you want to handle by proxy (set your proxy_name in Proxy by: list)

    3) Server=host_where_proxy_is_installed (not proxy name)

    After those setting I restarted proxy and watched in logs (debug mode) that data are sent for my hosts.

    Hope it will save someone's time for research in future.

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Sounds good!

      Thank you for sharing your solution with us.
      Sincerely yours,
      Aleksey

      Comment

      Working...