Ad Widget

Collapse

Problem installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vettalex
    Junior Member
    • Sep 2018
    • 4

    #1

    Problem installation

    Hello everyone and thanks for the availability.
    It's the first time I install zabbix and I wanted to try to install it on centos 7.
    During the installation illustrated in this guide: https://www.zabbix.com/download?zabb...&db=PostgreSQL
    I receive an error to this command:
    sudo -u postgres createuser --pwprompt zabbix
    the error is:
    sudo: unknown user: postgres
    sudo: unable to initialize policy plugin

    How can I solve? thanks a lot to everyone in advance
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Have you installed a PostgreSQL server?
    If you are not installing, please install and initialize the package as follows.

    Code:
    # yum install postgresql-server
    # postgresql-setup initdb
    # systemctl start postgresql
    # systemctl enable postgresql
    Also, since ident authentication is the default, I think that it is necessary to change to md5.
    Please restart PostgreSQL server after changing.

    Code:
    # vi /var/lib/pgsql/data/pg_hba.conf
    -----
    host all all 127.0.0.1/32 ident
    host all all ::1/128 ident
    -----
    change to
    -----
    host all all 127.0.0.1/32 md5
    host all all ::1/128 md5
    -----

    Code:
    # systemctl restart postgresql

    Comment

    • vettalex
      Junior Member
      • Sep 2018
      • 4

      #3
      Hello and thanks for the help. Now when I try to launch:
      rpm -i https://repo.zabbix.com/zabbix/3.4/r...el7.noarch.rpm
      I receive this error:
      http://repo.zabbix.com/zabbix/3.4/rh...ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
      Trying other mirror.

      It seems that does not work this link or am I wrong?

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        Looking at the URL where 404 error occurred, the architecture is i386.
        CentOS 7 which is officially released is only x86_64, but is not the OS you are using a 32bit environment?

        If you are in a 32bit environment, there is no package in Zabbix's repository, so you need to create your own package or install from source.
    • vettalex
      Junior Member
      • Sep 2018
      • 4

      #4
      perfect, all installed, thanks for your patience.
      Unfortunately I can not get into the frontend via ip / zabbix, in my case http://192.168.8.140/zabbix
      the page loads for a while, after which it gives a timeout error.

      I noticed that during the installation, precisely at the command:
      sudo -u postgres createuser --pwprompt zabbix
      I receive an error:
      could not change directory to "/ root"
      Enter password for new role:

      at this point I entered a password, or oscar112
      the same passsword I then also entered in:
      d. Configure the database for Zabbix server
      Edit file /etc/zabbix/zabbix_server.conf

      DBPassword = password

      changing "password" with "oscar112"
      becoming like this:
      DBPassword = oscar112

      removing also the # symbol of the comment

      What can I check?

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        If httpd is running and can not be accessed from the web browser, check the Firewall setting.
        If you not change from default setting of CentOS 7, you can not access from port number 80 externally depending on firewalld setting.
    • vettalex
      Junior Member
      • Sep 2018
      • 4

      #5
      ok, I have not modified anything, so I think I have to change a few files in centos 7 to connect externally on port 80, can you advise me?

      Comment

      Working...