Ad Widget

Collapse

Error Install Ubuntu 22 PFSQL Apache Postgres (database scripts)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RedInversa
    Junior Member
    • Apr 2022
    • 2

    #1

    Error Install Ubuntu 22 PFSQL Apache Postgres (database scripts)

    Hi.

    When i try install and configure Zabbix 6.2 on Ubuntu 22.04 with Postgres and Apache i use the instrucctions of
    https://www.zabbix.com/la/download?z...esql&ws=apache


    # zcat /usr/share/doc/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix
    cannot access '/usr/share/doc/zabbix-sql-scripts/postgresql/server.sql.gz': No such file or directory


  • vladimir_lv
    Senior Member
    • May 2022
    • 240

    #2
    Make sure that this one was installed zabbix-sql-scripts

    Comment

    • RedInversa
      Junior Member
      • Apr 2022
      • 2

      #3
      yes, im sure that install the packet Zabbix-sql-scripts



      root:/# sudo apt-get install zabbix-server-pgsql zabbix-sql-scripts --reinstall
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 2 not upgraded.
      Need to get 7920 kB of archives.
      After this operation, 0 B of additional disk space will be used.
      Get:1 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main amd64 zabbix-server-pgsql amd64 1:6.2.1-1+ubuntu22.04 [1247 kB]
      Get:2 https://repo.zabbix.com/zabbix/6.2/ubuntu jammy/main amd64 zabbix-sql-scripts all 1:6.2.1-1+ubuntu22.04 [6673 kB]
      Fetched 7920 kB in 14s (575 kB/s)
      debconf: delaying package configuration, since apt-utils is not installed
      (Reading database ... 18005 files and directories currently installed.)
      Preparing to unpack .../zabbix-server-pgsql_1%3a6.2.1-1+ubuntu22.04_amd64.deb ...
      Unpacking zabbix-server-pgsql (1:6.2.1-1+ubuntu22.04) over (1:6.2.1-1+ubuntu22.04) ...
      Preparing to unpack .../zabbix-sql-scripts_1%3a6.2.1-1+ubuntu22.04_all.deb ...
      Unpacking zabbix-sql-scripts (1:6.2.1-1+ubuntu22.04) over (1:6.2.1-1+ubuntu22.04) ...
      Setting up zabbix-sql-scripts (1:6.2.1-1+ubuntu22.04) ...
      Setting up zabbix-server-pgsql (1:6.2.1-1+ubuntu22.04) ...


      root:/# ls -la /usr/share/doc/zabbix-sql-scripts/postgresql/
      total 8
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 .
      drwxr-xr-x 5 root root 4096 Aug 3 12:54 ..


      root:/# ls -la /usr/share/doc/zabbix-sql-scripts/ -R
      /usr/share/doc/zabbix-sql-scripts/:
      total 36
      drwxr-xr-x 5 root root 4096 Aug 3 12:54 .
      drwxr-xr-x 1 root root 4096 Aug 3 00:55 ..
      -rw-r--r-- 1 root root 4466 Jul 14 12:12 changelog.Debian.gz
      -rw-r--r-- 1 root root 965 Jul 14 12:12 copyright
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 mysql
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 postgresql
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 sqlite3

      /usr/share/doc/zabbix-sql-scripts/mysql:
      total 8
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 .
      drwxr-xr-x 5 root root 4096 Aug 3 12:54 ..

      /usr/share/doc/zabbix-sql-scripts/postgresql:
      total 8
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 .
      drwxr-xr-x 5 root root 4096 Aug 3 12:54 ..

      /usr/share/doc/zabbix-sql-scripts/sqlite3:
      total 8
      drwxr-xr-x 2 root root 4096 Jul 14 12:12 .
      drwxr-xr-x 5 root root 4096 Aug 3 12:54 ..

      Comment

      Working...