Ad Widget

Collapse

Problem using proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulhaygarth
    Junior Member
    • Mar 2018
    • 5

    #1

    Problem using proxy

    I have a host that I had a few triggers being monitored by the zabbix server, using the active agent setting. I am now trying to test the proxy functionality, since I'll be rolling out proxies to other locations, but i can't get the proxy to monitor the agent server. In the logfiles I see the following error on the proxy:
    cannot send list of active checks to "10.142.0.14": host [test2] not found

    I have changed the config files to use the proxy instead of the server, and per other posts, I have verified the hostname in the GUI is the same as the one defined in the zabbix_agentd.conf file on the agent server. Here is my configuration:

    zabbix_agentd.conf on test2 (10.142.0.14):
    PidFile=/var/run/zabbix/zabbix_agentd.pid
    LogFile=/var/log/zabbix/zabbix_agentd.log
    LogFileSize=0
    DebugLevel=3
    SourceIP=10.142.0.14
    EnableRemoteCommands=1
    LogRemoteCommands=1
    Server=10.142.0.9
    StartAgents=3
    ServerActive=10.142.0.9
    Hostname=test2
    Include=/etc/zabbix/zabbix_agentd.d/*.conf

    zabbix_proxy.conf on zproxy(10.142.0.9):
    ProxyMode=0
    Server=10.142.0.7
    Hostname=zproxy
    LogFile=/var/log/zabbix/zabbix_proxy.log
    LogFileSize=0
    PidFile=/var/run/zabbix/zabbix_proxy.pid
    DBName=zabbix
    DBUser=zabbix
    DBPassword=123Mypw123$
    ConfigFrequency=120
    SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
    Timeout=4
    ExternalScripts=/usr/lib/zabbix/externalscripts
    LogSlowQueries=3000

    zabbix_server.conf on zabbix(10.142.0.7):
    LogFile=/var/log/zabbix/zabbix_server.log
    LogFileSize=0
    PidFile=/var/run/zabbix/zabbix_server.pid
    SocketDir=/var/run/zabbix
    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=Zabbix
    SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
    Timeout=4
    AlertScriptsPath=/usr/lib/zabbix/alertscripts
    ExternalScripts=/usr/lib/zabbix/externalscripts
    LogSlowQueries=3000

    What am I missing? Any help would be appreciated.
  • vesper1978
    Member
    • Nov 2016
    • 59

    #2
    Have you setup the proxy in the Zabbix Frontend and assigned the host to it?

    Comment

    • paulhaygarth
      Junior Member
      • Mar 2018
      • 5

      #3
      Yes. The proxy has been added, and the Zabbix server sees it. I have also assigned the host to the proxy.

      So, currently the agent.ping shows as unreachable (PROBLEM status), but if I switch everything (frontend and configs) back to the host being monitored by the main zabbix server, then the agent.ping works (OK Status).

      Comment

      • paulhaygarth
        Junior Member
        • Mar 2018
        • 5

        #4
        Solved it. It turned out that the proxy was running version 3.2, but the agent and zabbix server were using version 3.4. Once we compiled the proxy with the 3.4 source, everything starting working as expected.

        Comment

        Working...