Ad Widget

Collapse

Zabbix Proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #1

    Zabbix Proxy

    I've been digging around trying to find out more information about the new proxy function but haven't come up with much so far.

    My main question is how is it intended to be deployed? Is it intended to be deployed near the SQL server and act as a direct feed into the SQL database, or is it meant to sit somewhere aggregating data from agents into one stream which is then sent to the zabbix_server process? Where does it fit in the agent/server/database interaction?
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Bump!

    Alexei, other devs, would ya'll mind giving us a little more information please?
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • NOB
      Senior Member
      Zabbix Certified Specialist
      • Mar 2007
      • 469

      #3
      Hi

      last time I checked the sources it'll use ODBC (under Windows and UNIX/Linux)
      to connect to the DB.
      So you need an ODBC driver for it.
      The Windows version won't be ready in 1.6

      That's all I know.

      Regards

      Norbert.

      Comment

      • jahlewis
        Junior Member
        • Sep 2004
        • 2

        #4
        my understanding (and hope) is that it will act as a proxy collector in networks behind firewalls or slow wan links, so that the actual zabbix server talks only to the proxy, which then communicates to the internal hosts.

        internal hosts -> zabbix proxy -> firewall -> WAN -> firewall -> zabbix server

        is this a correct assumption? I'm hoping it is, as this is a major feature I've been waiting for, and once available, will allow me to monitor multiple remote sites across the internet.

        Comment

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

          #5
          Originally posted by jahlewis
          my understanding (and hope) is that it will act as a proxy collector in networks behind firewalls or slow wan links, so that the actual zabbix server talks only to the proxy, which then communicates to the internal hosts.

          internal hosts -> zabbix proxy -> firewall -> WAN -> firewall -> zabbix server

          is this a correct assumption? I'm hoping it is, as this is a major feature I've been waiting for, and once available, will allow me to monitor multiple remote sites across the internet.
          ZABBIX Proxy will work exactly as you described. It will collect performance and availability data, also perform auto-discovery on ZABBIX Server behalf. There are several cool things about the proxy:

          1. It is immune to communication problems. Data is locally stored.
          2. It requires one-way (Proxy to Server) TCP connections only.
          3. Almost zero maintenance. For example, if a local Proxy database does not exist, the proxy will create one automatically. So, basically a binary and small configuration file is required to setup a proxy.
          4. Configuration is stored and fully managed on Server side from the normal WEB GUI.
          5. I am sure I forgot many other interesting things....
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • BusteR81
            Senior Member
            • Apr 2007
            • 150

            #6
            how to use proxy function , anyone ?

            Originally posted by Alexei
            ZABBIX Proxy will work exactly as you described. It will collect performance and availability data, also perform auto-discovery on ZABBIX Server behalf. There are several cool things about the proxy:

            1. It is immune to communication problems. Data is locally stored.
            2. It requires one-way (Proxy to Server) TCP connections only.
            3. Almost zero maintenance. For example, if a local Proxy database does not exist, the proxy will create one automatically. So, basically a binary and small configuration file is required to setup a proxy.
            4. Configuration is stored and fully managed on Server side from the normal WEB GUI.
            5. I am sure I forgot many other interesting things....
            This feature is awesome. However I couldn't find any help topics (even from zabbix manual v1.4) on the usage of proxy server. Can someone enlighten mi, please ??

            Cheers

            Comment

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

              #7
              Originally posted by BusteR81
              This feature is awesome. However I couldn't find any help topics (even from zabbix manual v1.4) on the usage of proxy server. Can someone enlighten mi, please ??

              Cheers
              Take a look at the manual included into 1.5.1. The proxy is covered there.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • BusteR81
                Senior Member
                • Apr 2007
                • 150

                #8
                at last v1.6 manual xD

                Originally posted by Alexei
                Take a look at the manual included into 1.5.1. The proxy is covered there.
                THanks Alexei. i do have a suggestion that you insert/update the v1.4 manual on zabbix website. it took mi abt 10 minutes to seach for the v1.6 manual download link as it is not updated in certain places.

                Comment

                • BusteR81
                  Senior Member
                  • Apr 2007
                  • 150

                  #9
                  db creation

                  Originally posted by Alexei
                  3. Almost zero maintenance. For example, if a local Proxy database does not exist, the proxy will create one automatically. So, basically a binary and small configuration file is required to setup a proxy.
                  Can you explain what you meant? do i no longer have to create database zabbix and cat data.sql | mysql DB, etc. for a zabbix proxy server ???

                  Comment

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

                    #10
                    Originally posted by BusteR81
                    Can you explain what you meant? do i no longer have to create database zabbix and cat data.sql | mysql DB, etc. for a zabbix proxy server ???
                    Yes, the database will be created automatically provided the proxy user has permissions to do it.
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • BusteR81
                      Senior Member
                      • Apr 2007
                      • 150

                      #11
                      root ran proxy BUT doesnt auto create dB

                      Originally posted by Alexei
                      Yes, the database will be created automatically provided the proxy user has permissions to do it.
                      I don't think it is able to do it.

                      [root@ALPHA6U02 zabbix]# /usr/local/sbin/zabbix_proxy

                      /tmp/zabbix_proxy.log :
                      22177:20080421:165205 Failed to connect to database: Error: Unknown database 'proxy' [1049]

                      zabbix_proxy.conf :
                      # Database host name
                      # Default is localhost

                      #DBHost=localhost

                      # Database name
                      # SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored.
                      DBName=proxy

                      # Database user

                      DBUser=root

                      # Database password
                      # Comment this line if no password used

                      #DBPassword=<password>

                      # Connect to MySQL using Unix socket?

                      #DBSocket=/tmp/mysql.sock

                      ------------------manually create just database ----------------
                      [zabbix@ALPHA6U02 ~]$ mysql -u root
                      Welcome to the MySQL monitor. Commands end with ; or \g.
                      Your MySQL connection id is 298 to server version: 4.1.20

                      Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

                      mysql> create database proxy;
                      Query OK, 1 row affected (0.00 sec)

                      /tmp/zabbix_proxy.log :
                      22281:20080421:165642 Query failed:Table 'proxy.items' doesn't exist [1146]

                      Comment

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

                        #12
                        It is currently implemented for SQLite only, more to come (including MySQL) in 1.6.
                        Alexei Vladishev
                        Creator of Zabbix, Product manager
                        New York | Tokyo | Riga
                        My Twitter

                        Comment

                        • NL_Daan
                          Junior Member
                          • Apr 2008
                          • 9

                          #13
                          Hi,
                          did someone notice that the Availability in the hosts overviews doesn't work anymore after implementing the proxy?

                          Comment

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

                            #14
                            Originally posted by NL_Daan
                            Hi,
                            did someone notice that the Availability in the hosts overviews doesn't work anymore after implementing the proxy?
                            The availability column will be removed in 1.6. This is a major source of confusion for many ZABBIX users....
                            Alexei Vladishev
                            Creator of Zabbix, Product manager
                            New York | Tokyo | Riga
                            My Twitter

                            Comment

                            • Emir Imamagic
                              Member
                              • Mar 2008
                              • 67

                              #15
                              Originally posted by Alexei
                              It is currently implemented for SQLite only, more to come (including MySQL) in 1.6.
                              Could you confirm that auto creation for MySQL is implemented in 1.6? I installed proxy today and it was complaining that DB is missing. Only after I manually created the DB and executed SQL scripts, proxy started working.

                              Cheers,
                              emir

                              Comment

                              Working...