Ad Widget

Collapse

Zabbix for multiple customer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vini_ferazzini
    Junior Member
    • Jul 2017
    • 4

    #1

    Zabbix for multiple customer

    Hi Guys,

    Im new with Zabbix and i have a doubt regarding a topology for multiple customers.

    Topology 1

    Should i have one Zabbix server (Core) and multiples Proxys(representing customers)

    Topology 2

    Should i have on zabbix server per customer and on Zabbix as Core?


    Im openned for suggestions.

    Thanks in advance

    Vinicius
  • wick
    Member
    • May 2017
    • 57

    #2
    Hi vini_ferazzini,

    I have some question:

    For you customer is server or human ? This question is funny ^^
    What do you want to do can we have some details ?

    Sorry for my bad english

    Comment

    • vini_ferazzini
      Junior Member
      • Jul 2017
      • 4

      #3
      Multiple Sites

      Hi Wick,

      I have two customer and i would like to monitor using just one Zabbix Server.

      Customer One - Has a Central Location (Main Site) and 10 remote locations(Remote sites);

      Customer Two - Has a Central Location (Main site) and 2 Remote Locations (Remote sites)

      I would like to monitor both customers with all sites using the one Zabbix Server, is it possible?

      Should i use a proxy per location?

      Thanks in advance

      Vinicius

      Comment

      • wick
        Member
        • May 2017
        • 57

        #4
        These remote central sites already have a supervisory server in place?
        You can do it by proxy on the central site on each customer.
        Last edited by wick; 23-01-2018, 10:26.

        Comment

        • vini_ferazzini
          Junior Member
          • Jul 2017
          • 4

          #5
          Multiple Sites

          Thx Wick, that was my ideia, do you have any material of dashboards of it?

          Comment

          • wick
            Member
            • May 2017
            • 57

            #6
            material of dashbord ? i don't understand ...
            Zabbix Server is easy to install and configure the same for Proxy

            For all linux machine do that :
            Code:
            # wget http://repo.zabbix.com/zabbix/3.2/debian/pool/main/z/zabbix-release/zabbix-release_3.2-1+jessie_all.deb
            # dpkg -i zabbix-release_3.2-1+jessie_all.deb
            # apt-get update

            For the server do that :

            Code:
            # apt-get install zabbix-server-mysql zabbix-frontend-php
            
            shell> mysql -uroot -p<root_password>
            mysql> create database zabbix character set utf8 collate utf8_bin;
            mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
            mysql> quit;
            
            # zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
            
            
            # nano /etc/zabbix/zabbix_server.conf
            DBHost=localhost
            DBName=zabbix
            DBUser=zabbix
            DBPassword=<password>
            
            # service zabbix-server start
            # update-rc.d zabbix-server enable
            
            # nano  /etc/zabbix/apache.conf
            php_value max_execution_time 300
            php_value memory_limit 128M
            php_value post_max_size 16M
            php_value upload_max_filesize 2M
            php_value max_input_time 300
            php_value always_populate_raw_post_data -1
            php_value date.timezone Europe/Riga
            
            
            # service apache2 restart
            and on your browser go to http://<your_ip_address>/zabbix
            and follow the configuration of the frontend

            For the Proxy do something like that :

            Code:
            # apt-get install zabbix-proxy-mysql
            shell> mysql -uroot -p<root_password>
            mysql> create database zabbix character set utf8 collate utf8_bin;
            mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
            mysql> quit;
            
            # zcat /usr/share/doc/zabbix-proxy-mysql/schema.sql.gz | mysql -u<username> zabbix
            
            # nano /etc/zabbix/zabbix_proxy.conf
            Server = < Server_IP >
            Hostname = <Your_hostname_unique_to configure_proxy_on_server>
            
            # service zabbix-proxy start
            For the Zabbix Agent on all your remote Linux server :

            Code:
            # apt-get install zabbix-agent
            
            # nano /etc/zabbix/zabbix_agentd.conf
            Server =< Proxy_IP >
            ServerActive =< Proxy_IP >
            
            # service zabbix-agent start
            For the Zabbix Agent on all your remote Windows server :


            Code:
            Create a directory Zabbix Where you want 
            c:\Zabbix
            Copy your compressed file in this directory
            
            Change the config file in conf directory
            
            Server =< Ip_Proxy>
            ServerActive =< Ip_proxy >
            HostMetadataItem=system.uname
            
            cd c:\Zabbix\bin\win64
            or 
            cd c:\Zabbix\bin\win32
            zabbix_agentd.exe -c c:\Zabbix\conf\zabbix_agentd.win.conf --install
            zabbix_agentd.exe --config .\zabbix_agentd.conf --start

            After that go on your server

            http://<IP_SERVER>/zabbix

            Go to Administration/Proxies
            Click on Create Proxy
            Put the hostname of the config proxy on the Proxy Name !!! Important
            Select Active
            Click Add

            If all is good after 1 minute Last seen change to 1s

            Go to Configuration/Actions
            Event Sources Auto-Registration
            After click on Create action
            Name it Linux
            In New Condition Select Host metadata Like Linux
            In Operations tab Click New
            Operation type : Add Host -> Click on th little Add
            New again
            Operation type : Add to Host Group -> Select the Host Group -> Click on th little Add
            New again again ^^
            Operation type : Link to Template -> Select Template OS Linux -> Click on th little Add
            AND Click on the big add
            Do the same thing for Windows
            and wait i think it's good after that

            You could see your remote Host

            I think it's complete ^^
            Last edited by wick; 13-07-2017, 08:43. Reason: correction

            Comment

            • wick
              Member
              • May 2017
              • 57

              #7
              If you have any question ask me ^^

              Comment

              Working...