Ad Widget

Collapse

Replicated data from one server to another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DOUGLASTORRES
    Junior Member
    • Jul 2017
    • 1

    #1

    Replicated data from one server to another

    Good evening everyone,

    I'd like some help.

    I have a zabbix server on each base, performing their monitoring. I would like to know if it is possible for me to have a central zabbix server that harvests all data from other zabbix servers.

    Thank you in advance for your attention.
  • wick
    Member
    • May 2017
    • 57

    #2
    Hi !

    what's your zabbix version ? cause if it's 2.2 you can but the latest can't do somtehing like that... i think ...

    You can just centralize important information with scripts on each of your remote servers for example the number of active trigger by severity

    After you can just install grafana on your central server and add a data sources zabbix by remote server and after centralize important information on Grafana Dashboard. On this central server you can install a server zabbix who monitor your firewall and the zabbix server for each site.

    Comment

    • onallion
      Senior Member
      • Mar 2016
      • 131

      #3
      That's what Zabbix Proxies are for. Just have them gathering data in your remote sites and sending it to the central Zabbix Server.

      Comment

      • wick
        Member
        • May 2017
        • 57

        #4
        In my opinion, Zabbix proxy is a big joke for centralize information cause you can't have a local Interface if you loose the remote connection to your central server... so you don't know what going wrong on your site and you going to search a lot of time ...

        Comment

        • onallion
          Senior Member
          • Mar 2016
          • 131

          #5
          You can have several Zabbix servers in an active/passive cluster, in case one crashes the process launches on another server. That's what I do.

          Comment

          • wick
            Member
            • May 2017
            • 57

            #6
            Sure but you can't had a local monitoring server only a central server ... with all data from all site on the same server ...
            Last edited by wick; 04-07-2017, 15:58.

            Comment

            • mauroreggio
              Junior Member
              • Feb 2019
              • 10

              #7
              Hi all. This is my first post. Sorry if i just ask.
              I "know" Zabbix today and i play with configuration in a distributed environment.
              For now i play with 2 Appliance of 4.0 version of Zabbix: one like server and one like proxy in a remote location. The proxy is configured like Active Proxy and accept result of one local Windows server with agent. All seems works good.
              I choose this discussion because my main think is now the same of wick: "how can i MONITOR the remote location check result in the remote location too?"
              I focused in make proxy send result to two different server, one in remote and one in local too, so in the remote location i can monitor result in the local server (sorry for local remote joke). Is this a correct approach?
              If yes, this mean that i MUST install 2 different machine in remote location; one with proxy and one with server? I search about install proxy and server on the same machine ... but most of the time the discussion end with "is not the right way" and not say if is real possible or not.
              So ... how close the problem wick? Ora any other that experience this scenario?
              Thank you very much for your attention.
              Regards.
              Mauro.

              Comment

              • mauroreggio
                Junior Member
                • Feb 2019
                • 10

                #8
                Hi all.
                I just solve this question.
                Make a fresh install of Zabbix 4.0 on a CentOS 7 box, from RPM (follow instruction here https://www.zabbix.com/download?zabb...ion=7&db=mysql) is possible to install the Server, the Proxy and the Agent on the same machine and make it all works good.
                First of all o just install zabbix-server-mysql zabbix-web-mysql zabbix-agent from RPM.
                After i just "CHANGE THE PORT OF THE SERVER MODULE" ... for make this, edit /etc/zabbix/zabbix_server.conf and put ListenPort=xxxxx (where xxxxx is the number of the new port) in that file in the correct position (you can find it in comment on the file).
                Don't forget now, when configure Web Zabbix Frontend, to specify the same port number you write in the conf file for let Front End connect with server.
                Now, i can install zabbix-proxy-mysql too from rpm (yum install -y zabbix-proxy-mysql), create a new database for Zabbix Proxy (must not be the same of the server)
                # mysql -uroot -p
                mysql> create database zabbix_proxy character set utf8 collate utf8_bin;
                mysql> grant all privileges on zabbix_proxy.* to zabbix@localhost identified by 'password';
                mysql> quit;

                and import initial schema and data
                # zcat /usr/share/doc/zabbix-proxy-mysql*/schema.sql.gz | mysql -uzabbix -p zabbix_proxy
                Edit the /etc/zabbix/zabbix_proxy.conf in accordance with DBName, User and Password,
                Restart zabbix-proxy and enable it at startup
                # systemctl restart zabbix-proxy
                # systemctl enable zabbix-proxy


                In this way i have:
                - On the same machine Zabbix Server active on xxxxx tcp port and Zabbix Proxy active on the default 10051 tcp port
                - My network ACTIVE agent can communicate at the same time with Zabbix Proxy (that send all at another remote Zabbix Server) and local Zabbix Server. Only play with ServerActive=zzz.zzz.zzz.zzz:10051,zzz.zzz.zzz.zzz :xxxxx parameter in the Zabbix Agent config file.
                - In al two place (local place and remote place) i can play with Web Zabbix Frontend for have a status of the monitor.
                Hope this help someone.
                Thanks.
                Mauro.
                Last edited by mauroreggio; 09-02-2019, 13:06.

                Comment

                Working...