Ad Widget

Collapse

"Unknown proxy" error, though configuration seems okay.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alan.oceallaigh
    Junior Member
    • Oct 2009
    • 11

    #1

    "Unknown proxy" error, though configuration seems okay.

    Hi all,

    I've set up a basic Master/proxy configuration consisting of a single Master Zabbix 1.6.6 server and currently a single Zabbix 1.6.6 proxy. Though I believe the configuration to be correct on both sides, the Master is not processing any data received from the proxy, reporting 'Unknown proxy "proxy1"' in the zabbix_server.log.

    The hostname directive in the zabbix_proxy.conf is set to "proxy1", ServerPort=10051, and on the Master server zabbix_server is listening on 10051 and the proxy is defined as "proxy1".

    In case it's relevant, the proxy is behind a NAT firewall. Any assistance would be greatly appreciated.

    Regards,


    Alan
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Do you have the proxy created in the front-end under Configuration->Hosts (select Proxies)?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • alan.oceallaigh
      Junior Member
      • Oct 2009
      • 11

      #3
      Hi Alexei,

      Thanks for the response. Yes, I added the proxy in the gui. I used the same name as in the hostname directive in the zabbix_proxy.conf.

      Is there somewhere in the database that I can verify that the proxy hostname is set correctly on the Master server or that there aren't duplicate entries or something similar?

      Regards,


      Alan.
      Last edited by alan.oceallaigh; 23-11-2009, 00:35.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Double-check that you don't have any spaces around proxy1 in the zabbix_proxy.conf.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • alan.oceallaigh
          Junior Member
          • Oct 2009
          • 11

          #5
          Thanks, confirmed that there are no spaces in the hostname as specified in either the zabbix_proxy.conf or in the gui.

          Are there any undocumented limitations on the characters that can be used in proxy hostnames? I originally configured it with a name consisting of alphanumeric characters interspersed with hyphens and periods.

          Comment

          • alan.oceallaigh
            Junior Member
            • Oct 2009
            • 11

            #6
            Update:

            I've checked the database and there are no duplicate entries, typos etc. Deleted everything on both servers and started from scratch with two monitored hosts, one proxy and one Master server and the result is the same.

            Using tcpdump on both servers I can see communication happening, and of course the "Unknown proxy" error on the Master indicates that communication is happening. There are also "Heartbeat message failed" errors in the proxy log file.

            Is there any other useful information that I can provide?
            Last edited by alan.oceallaigh; 23-11-2009, 12:52. Reason: typo

            Comment

            • frankcheong
              Member
              • Oct 2009
              • 73

              #7
              I am encountering exactly the same problem and am going to clean up the database and redo again. While it seems like it won't help, right?

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Please double-check you configurations: Hostname in the Proxy configuration file, no spaces or extra characters in the GUI and the Hostname, etc. I'm quite confident it is due to some misconfiguration.

                You may also try to execute this SQL statement on server side: select * from hosts where status=5 and name='proxy1'
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • frankcheong
                  Member
                  • Oct 2009
                  • 73

                  #9
                  finally I know what is my problem. It is because I thought like to group proxy by creating a proxy with name representating a group of host.

                  So why can I assign more than one host to a single proxy?

                  Anyway, problem solved.

                  Comment

                  • Alexei
                    Founder, CEO
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Sep 2004
                    • 5654

                    #10
                    Originally posted by frankcheong
                    So why can I assign more than one host to a single proxy?
                    Because one proxy may monitor thousands of hosts obviously.
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • alan.oceallaigh
                      Junior Member
                      • Oct 2009
                      • 11

                      #11
                      Issue resolved, though I still don't know the exact cause. I scrubbed and re-created the database again and now all is fine.

                      Thanks for the replies.

                      Alan.

                      Comment

                      Working...