Ad Widget

Collapse

Installation help: CentOS 7 (Zabbix 4.0, from repos) "Cannot connect" error message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChinusGomes
    Junior Member
    • Oct 2019
    • 1

    #1

    Installation help: CentOS 7 (Zabbix 4.0, from repos) "Cannot connect" error message

    I'm trying to set up Zabbix with PostGres as the database on CentOS 7, but I'm getting stuck on setup.php with an error reading "Cannot connect to the database".

    I've installed Zabbix from the CentOS repos (specifically, I installed the following packages via "sudo yum install": zabbix40 zabbix40-dbfiles-pgsql zabbix40-proxy-pgsql zabbix40-server-pgsql zabbix40-web-pgsql), set up the database, and confirmed that the database can be reached via both command-line psql and a tiny test PHP program.

    I get nothing but "OK" statuses on the "Check of pre-requisites" screen of setup.php, but when I click "Next step", enter the database details on the "Configure DB connection" screen, and click "Next step" again, I get an error message reading "Cannot connect to the database." And expanding the details just shows "Error connecting to database."reverse phone lookupnba reddit pcpartpicker


    I've checked in /var/log/zabbixsrv/zabbix_server.log, /var/log/httpd/error.log, and /var/lib/pgsql/data/pg_log/postgresql-Fri.log to see if there were any hints in any of those files, and watched those files with tail -f to see if anything gets written to them as I try to set up the connection - and there's nothing in any of them.
    Last edited by ChinusGomes; 21-10-2019, 03:39.
  • storyteller
    Junior Member
    • Oct 2019
    • 23

    #2
    Do you have selinux active?
    Zabbix server and database are on the same machine?

    Comment

    • tech.rss
      Junior Member
      • Oct 2019
      • 10

      #3

      This is installation of zabbix using mysql. can you try this. zabbix-install-centos-7.txt

      Thanks.
      Attached Files

      Comment

      Working...