Ad Widget

Collapse

Second web server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StephenJ
    Member
    • Dec 2018
    • 44

    #1

    Second web server

    We are currently running zabbix version 4.0.4. We have one server setup with database, zabbix server and zabbix web front end. I now have a second zabbix server setup acting just as a web front end. I want to connect this server to the main zabbix server.

    Currently the main zabbix server is running mysql and has a username setup as zabbix@localhost. This server runs on a 192.x.x.x IP address.

    The new web front end server sits on a 10.x.x.x IP. I can ping the main zabbix server from the web server.

    I configured the zabbix.conf.php in the web folder to point to the zabbix database. When I try the url it loads, but says that it can not connect to mysql, which I would expect with the user being zabbix@localhost



    My question is: can I set the username to allow access from the two servers? IE 192.168.2.x and the 10.255.16.x address?
    Last edited by StephenJ; 01-04-2019, 14:49.
  • StephenJ
    Member
    • Dec 2018
    • 44

    #2
    Can I have 2 users assigned to the zabbix database? EG:

    zabbix@localhost and
    [email protected]

    Would that work?
    Last edited by StephenJ; 01-04-2019, 14:49.

    Comment

    • max.ch.88
      Senior Member
      • Oct 2018
      • 206

      #3
      Hi. Yes, you can.
      Keep in mind - the frontend should have a connect with both sevices(hosts) : zabbix server and zabbix db.

      Comment

      • StephenJ
        Member
        • Dec 2018
        • 44

        #4
        Hi, I got the second user added to the zabbix server, in MYSQL. The main zabbix server is an all in one VM, hosting database, zabbix server and zabbix web front end.

        I have a second server, which was pointing to our old zabbix server, that just has a zabbix web front end. I edited the zabbix_conf.php file located in /etc/zabbix/web and set it up with the IP address of the zabbix server, the port is 0 and the new username and password. It still says unable to connect to database. Is there anything I am missing?

        Ah just found that the firewall is running on the web frontend server. Would I need to add a port for the new zabbix server?
        Ports 80 and 443 are open

        selinux is also enabled and enforcing
        Last edited by StephenJ; 01-04-2019, 14:57.

        Comment

        Working...