Ad Widget

Collapse

Cant install zabbix from packages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FildaSmile
    Member
    • Jul 2019
    • 61

    #1

    Cant install zabbix from packages

    Hello,

    i was working on zabbix few months ago and now im back into this bussines.

    I just wanted try to install fresh zabbix and refresh the installation steps.

    But i have problem, when i want install zabbix 5 on Ubuntu server 20.04 LTS i just stuck on step 3.

    c. Create initial database


    documentation
    Run the following on your database host.
    # sudo -u postgres createuser --pwprompt zabbix
    # sudo -u postgres createdb -O zabbix zabbix

    the result is:

    root@zabbix:~# sudo -u postgres createuser --pwprompt zabbix
    sudo: unknown user: postgres
    sudo: unable to initialize policy plugin

    when i try it without root (which make sense when i using sudo) result is:

    zabbix@zabbix:~$ sudo -u postgres createuser --pwprompt zabbix
    sudo: unknown user: postgres
    sudo: unable to initialize policy plugin
    zabbix@zabbix:~$

    Same story with MariaDB, same story with zabbix 4

    Any ideas ?

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by FildaSmile
    zabbix@zabbix:~$ sudo -u postgres createuser --pwprompt zabbix
    sudo: unknown user: postgres
    The "sudo: unknown user: postgres" is happening because there is no postgres user (in /etc/passwd or whatever information store you use as the source of information for authentication) on your Ubuntu server.

    Typically the postgres user is created when the database-related packages are installed on the system. You apparently haven't installed any of the PostgreSQL packages.

    Comment

    • FildaSmile
      Member
      • Jul 2019
      • 61

      #3
      Yes finally i figured it out by installing postgres server additionally.

      Last time when i installed zabbix, the database was included in the installation commands like, now the command saying -> # apt install zabbix-server-pgsql zabbix-frontend-php php7.4-pgsql zabbix-apache-conf zabbix-agent, i thought that "zabbix-server-pgsql" should contain database packages (no matter Maria od Postgres).

      So in conclusion, nowadays database packages are not included in the installation instructions ?

      BR

      Filip S.

      Comment

      Working...