Ad Widget

Collapse

Not a newbie question. But why does it not work?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kwoot
    Junior Member
    • Sep 2013
    • 8

    #1

    Not a newbie question. But why does it not work?

    Hi,

    I have honestly no clue why what I tried did not work. I wanted to change from server to agent to start using a passive proxy.

    Original setup:
    Server at home behind NAT firewall connecting to passive agent on a remote server and getting all info. For years.
    Currently all running version 5.0

    New Setup:
    Introduce a passive proxy on the remote server. Could not get it to work.

    This is what I did:
    1. Create proxy, set it to passive. Give it the remote IP address.
    2. In the gui change host to tell it to use the new proxy
    3. On the remote server install proxy sqlite version
    4. Configure proxy to be passive and accept from home server external IP address. Configure it's name. Create directory for sqlite db. Database file is created when removed and restarting the proxy.
    5. Change configuration of agent to now accept from server=127.0.0.1
    6. I can see in the web gui that zabbix server has connection with proxy like every 6 seconds.
    7. The agent log only says: failed to accept an incoming connection: connection from "127.0.0.1" rejected, allowed hosts: "<home Ip address>". So it seems as though proxy can forward the checks to the agent.
    8. Using the new test item functionality I can trigger a test but it only adds the previous log line to the agent log.
    I have no clue at the moment what I missed. Any of you guys?

    Regards, Jeroen
  • ivanhansson
    Junior Member
    • May 2020
    • 11

    #2
    Hi Kwoot

    Can you draw a simple sketch how the setup is today and the new setup and I will try to help you. Easier to to see the whole picture with a drawing

    //Ivan

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      change Zabbix Agent configuration file.
      in keyword "Server=<home ip address>" add an address of new proxy to allow connection from main Zabbix Serer AND from Zabbix Proxy
      Server=<home ip addres>,127.0.0.1

      Restart agent after reconfiguration and check log.file for any errors
      Sincerely yours,
      Aleksey

      Comment

      • kwoot
        Junior Member
        • Sep 2013
        • 8

        #4
        Sometimes I am sooo stupid.....

        root@mail:/etc/zabbix# grep -r '83.162' *
        zabbix_agentd.conf:Server=83.162.200.97,127.0.0.1
        zabbix_agentd.conf:ServerActive=83.162.200.97,127. 0.0.1
        zabbix_agentd.d/zabbix_agentd.userparams.conf:Server=83.162.200.97
        zabbix_proxy.conf:Server=83.162.200.97

        Old cruft. Don't know why I put it there. Probably because I wanted to get rid of the 'do you want to replace this config file' with every update of packages.
        Last edited by kwoot; 05-06-2020, 10:57.

        Comment

        Working...