Ad Widget

Collapse

"zabbix_get" not available in "zabbix-proxy-pgsql" package

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • s0r1n
    Junior Member
    • Feb 2013
    • 23

    #1

    "zabbix_get" not available in "zabbix-proxy-pgsql" package

    Let's suppose zabbix_get is not installed:

    $ zabbix_get -s <hostname> - k"system.uptime"

    Der Befehl 'zabbix_get' wurde nicht gefunden, kann aber installiert werden mit:

    sudo apt install zabbix-proxy-mysql # version 1:4.0.17+dfsg-1, or
    sudo apt install zabbix-proxy-pgsql # version 1:4.0.17+dfsg-1
    sudo apt install zabbix-proxy-sqlite3 # version 1:4.0.17+dfsg-1
    sudo apt install zabbix-server-mysql # version 1:4.0.17+dfsg-1
    sudo apt install zabbix-server-pgsql # version 1:4.0.17+dfsg-1


    but this message is false and confusing because zabbix-proxy-pgsql is already installed and zabbix_get is missing:

    $ sudo apt-get install zabbix-proxy-pgsql
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    zabbix-proxy-pgsql ist schon die neueste Version (1:4.0.29-1+focal).
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    I think that zabbix_get command is included in another package called zabbix-get.

    Comment

    • s0r1n
      Junior Member
      • Feb 2013
      • 23

      #3
      This is correct there is a package called zabbix-get which contains the zabbix_get command.

      But when zabbix_get isn't installed, the indication to install it thru zabbix-proxy-mysql or zabbix-proxy-pgsql or zabbix-proxy-sqlite3 or zabbix-server-mysql or zabbix-server-pgsql is erroneous and confusing and it should be changed.

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        The OS or package you are using is probably outputting the message. It seems that you are not using the official Zabbix package, so ask the maintainer of the OS or package you are using to fix it.
    • s0r1n
      Junior Member
      • Feb 2013
      • 23

      #4
      Which are the official Zabbix packages? The packages I use are downloaded from repo.zabbix.com

      Code:
      # cat /etc/apt/sources.list.d/zabbix.list
      deb [ arch=amd64 ] http://repo.zabbix.com/zabbix/4.0/ubuntu/ focal main

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #5
        These are official.

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #6
          The presented output comes from "command-not-found" package in Ubuntu (at least). Maybe it can be improved somehow, I don't know.

          Code:
          markku@test:~$ dpkg -l comm*
          Desired=Unknown/Install/Remove/Purge/Hold
          | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
          |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
          ||/ Name Version Architecture Description
          +++-=================-============-============-================================================== ===========
          ii command-not-found 20.04.4 all Suggest installation of packages in interactive bash sessions
          
          markku@test:~$ dpkg -L command-not-found
          /.
          /etc
          /etc/apt
          /etc/apt/apt.conf.d
          /etc/apt/apt.conf.d/50command-not-found
          /etc/zsh_command_not_found
          /usr
          /usr/lib
          /usr/lib/cnf-update-db
          /usr/lib/command-not-found
          /usr/share
          /usr/share/doc
          /usr/share/doc/command-not-found
          /usr/share/doc/command-not-found/README.md
          /usr/share/doc/command-not-found/copyright
          /var
          /var/lib
          /var/lib/command-not-found
          /usr/share/doc/command-not-found/changelog.gz
          Markku

          Comment

          • mwildam
            Member
            • Feb 2021
            • 72

            #7
            And anyway, I think the zabbix_get has pretty no dependency so you could just copy it over.

            Comment

            Working...