Ad Widget

Collapse

Server and Proxy on same machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acropia
    Junior Member
    • Mar 2015
    • 26

    #1

    Server and Proxy on same machine

    I've read about people asking how to install Zabbix Proxy on the same machine as the Zabbix Server service. Mostly the answer is like "That's not the use of a Proxy. Install it on a own machine between Zabbix Server and Zabbix Agent.".

    But I designed a situation where I think Zabbix Proxy and Server on the same machine can be legit, but yum does not allow me to install both packages.

    What do I want?
    I have a datacenter with multiple clusters. I have one Zabbix Server. A Zabbix Proxy per cluster (10 in total) monitoring 1000+ hosts in total. All working fine.

    But I want some more:
    • Monitoring and escalation of the Zabbix Server
    • External check of connection to the datacenter


    Therefor I created a brandnew Cloud VM in another datacenter. I installed an own instance of Zabbix Server. This server is monitoring my main Zabbix Server inside my own datacenter. Working OK.

    But, now I like to monitor some items (connections, websites) from the outside perspective of my own datacenter. I could add them to my remote standalone Zabbix Server, which will work I guess. But wouldn't it be better to report that data back to my main Zabbix Server. That's what a Proxy does. That way I have all my templates, checks, escallations, authorizations, maps, screens, etc. in one place. My ideal situation.

    The problem is, yum does not allow me to install both packages on the same server. I think that should be possible because:
    • All services have different config locations
    • All services can have different configure port numbers


    And yes, I could install to different Cloud VMs, but that looks so much overhead for just some simple services.

    Anybody an idea?
    Last edited by acropia; 24-06-2015, 18:18. Reason: Solved
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    What is your yum issue and which zabbix version are you using?
    Code:
    [root@zabbix]# yum install zabbix-server
    ...
    [root@zabbix]# yum install zabbix-proxy
    ...
    [root@zabbix]# rpm -qa | grep zabbix
    zabbix-get-2.4.3-1.el6.x86_64
    zabbix-web-2.4.4-1.el6.noarch
    zabbix-proxy-mysql-2.4.5-1.el6.x86_64
    zabbix-release-2.4-1.el6.noarch
    zabbix-2.4.3-1.el6.x86_64
    zabbix-web-pgsql-2.4.4-1.el6.noarch
    zabbix-agent-2.4.4-1.el6.x86_64
    zabbix-proxy-2.4.5-1.el6.x86_64
    zabbix-server-2.4.5-1.el6.x86_64
    zabbix-server-mysql-2.4.5-1.el6.x86_64
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • acropia
      Junior Member
      • Mar 2015
      • 26

      #3
      My OS is CentOS Linux 7.1 (1503) and I use the most recent version of Zabbix available in the Zabbix repo, version 2.4.5.

      zabbix-server installs fine. When I try to install zabbix-proxy it is downloading OK, but after downloading some checks run, and the die with a conflict on /usr/lib/zabbix/externalscripts

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        I got it.

        Download all required packages and install it by rpm (because yum doesn't provide ignore error option) and run rpm with replace files option. Conflict /usr/lib/zabbix/externalscripts is empty folder, so it's safe to replace empty folder with another empty folder:
        Code:
        [root@zabbix ~]# wget http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-proxy-sqlite3-2.4.5-1.el7.x86_64.rpm
        ...
        [root@zabbix ~]# wget http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-proxy-2.4.5-1.el7.x86_64.rpm
        ...
        [root@zabbix ~]# rpm -i --replacefiles zabbix-proxy-sqlite3-2.4.5-1.el7.x86_64.rpm  zabbix-proxy-2.4.5-1.el7.x86_64.rpm
        [root@zenoss5 ~]# rpm -qa | grep zabbix
        zabbix-release-2.4-1.el7.noarch
        zabbix-get-2.4.4-1.el7.x86_64
        zabbix-server-mysql-2.4.5-1.el7.x86_64
        zabbix-server-2.4.5-1.el7.x86_64
        zabbix-2.4.4-1.el7.x86_64
        zabbix-proxy-2.4.5-1.el7.x86_64
        zabbix-agent-2.4.4-1.el7.x86_64
        zabbix-proxy-sqlite3-2.4.5-1.el7.x86_64
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        • acropia
          Junior Member
          • Mar 2015
          • 26

          #5
          Solved by given workaround

          @jan.garaj: You're commands work for me. I did install the proxy with MySQL also (not the SQLite you mentioned). But is working. Thanks!

          I really think this should be working from the yum repositories without errors, so I will try to create a feature request for this one.

          Comment

          • Dila1993
            Junior Member
            • May 2023
            • 2

            #6
            i have installed zabbix server and zabbix proxy both on the same ubuntu server but the zabbix server is not working and in it's log it said that database table is empty

            Comment

            • PeterZielony
              Senior Member
              • Nov 2022
              • 146

              #7
              You didnt point proxy at same database as zabbix server i hope?

              Hiring in the UK? Drop a message

              Comment

              • Dila1993
                Junior Member
                • May 2023
                • 2

                #8
                Yes i did, i point the same Database.
                I have a Zabbix Server on ubuntu server 22.04 but this server is Offline, so I want to forward all trigger to another zabbix server that is online and the action i want to accure is send trigger messages in slack

                Comment

                • PeterZielony
                  Senior Member
                  • Nov 2022
                  • 146

                  #9
                  I'm confused. So you have 2x zabbix servers
                  1st offline where you installed proxy that points to same dB as offline db (never do that)
                  2nd online and you want to plug proxy to it?

                  You cant deploy proxy and point to same db as zabbix server

                  Hiring in the UK? Drop a message

                  Comment

                  Working...