Ad Widget

Collapse

Zabbix Proxy, passive checks doesnt work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Panda
    Junior Member
    • Oct 2015
    • 17

    #1

    Zabbix Proxy, passive checks doesnt work

    Hello,

    So I have a problem with my zabbix proxy. I have to configure a host in passive mode on another network. I managed to make it work in active but it doesnt work in passive and when I try to do a "zabbix_get" from the proxy, I receive an empty answer.
    (My proxy is configured in active mode)
    Also when I do a zabbix get on the host himself, I receive empty value...

    Code:
     zabbix_get -s 127.0.0.1 -k 'agent.version'

    The zabbix server and proxy reach each other without any problem.

    Zabbix server : 192.168.1.x
    Zabbix agent : 192.168.100.x

    Proxy.conf
    Code:
    Server=<name of zabbix server>
    ServerPort=<port that I use for my zabbix server>
    Hostname=<name of my host> (yeah it match exactly the name in frontend on the host and on the proxy)
    Zabbix agent
    Code:
    Server=<name of zabbix proxy,name of zabbix server>
    ServerActive=<name of the proxy>
    Hostname=<name of the host> (it match frontend)
    If you have any idea from where the problem could come from, thanks to let me know.

    Have a nice day.
    (Sorry for my bad english)
    Last edited by Panda; 20-01-2016, 11:56.
  • Erravandrhel
    Junior Member
    • Dec 2015
    • 14

    #2
    Did u change ur configuration of:

    ProxyMode=0/1

    1- passive
    0 - active

    Comment

    • Panda
      Junior Member
      • Oct 2015
      • 17

      #3
      No I left it in comment. By default it is active (I read it somewhere).

      Comment

      • Erravandrhel
        Junior Member
        • Dec 2015
        • 14

        #4
        So u must uncomment it and set it to 0 in that case if it is in active mode by default.

        Comment

        • Panda
          Junior Member
          • Oct 2015
          • 17

          #5
          The proxy have to be in passive mode if you want to monitor a host in passive ?

          Comment

          • Erravandrhel
            Junior Member
            • Dec 2015
            • 14

            #6
            So i missunderstood ur question.

            U want to have connection zabbix server - proxy server in passive mode or
            u have zabbix server - proxy server in active mode (and it is connecting)
            and problem is when u want to add host for monitoring via proxy server am i right now ?

            Comment

            • Panda
              Junior Member
              • Oct 2015
              • 17

              #7
              I don't care if I have the proxy in active or passive.
              I just want to have my host in passive mode.

              I did configure my proxy in active and my host in active too, and it worked fine. But when I try to configure my host in passive it doesnt work. Wheter the proxy is in passive or active mode.

              Sorry, I probably wasnt clear enough.

              Comment

              • Erravandrhel
                Junior Member
                • Dec 2015
                • 14

                #8
                Can u telnet to the host at 10050 port ?

                Comment

                • Panda
                  Junior Member
                  • Oct 2015
                  • 17

                  #9
                  With the proxy or the server ?

                  With the server I obviously can't because it isnt on the same network.

                  And from the proxy I can telnet the host on the port 10050.

                  Comment

                  • Panda
                    Junior Member
                    • Oct 2015
                    • 17

                    #10
                    Update :

                    I re-installed the proxy. I configured it in passive mode (with the port 10051 on frontend). I'm pretty sure that my config is right.

                    Zabbix proxy conf. :
                    Code:
                    ProxyMode=1
                    Hostname=<proxys ip>
                    DBhost=        (I left empty because I use postgresql)
                    I can telnet my proxy from the server on the port 10051.

                    I don't have any error on my proxy log.

                    And I have this one on my server :
                    Code:
                    cannot obtain data from proxy "<proxys ip>": ZBX_TCP_READ() failed: [104] Connection reset by peer
                    If someone has any advice.
                    Last edited by Panda; 25-01-2016, 16:06.

                    Comment

                    • Erravandrhel
                      Junior Member
                      • Dec 2015
                      • 14

                      #11
                      Can u telnet the port 10050 on host that u want to monitor?

                      Comment

                      • Panda
                        Junior Member
                        • Oct 2015
                        • 17

                        #12
                        Ok I found out the problem.
                        Thanks for your help.

                        I just had to add the internal network IP of my zabbix_proxy on the agent.conf on line ServerActive and Server.

                        Comment

                        Working...