Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22678

Agent2 item system.sw.packages.get is unsupported

    XMLWordPrintable

Details

    • Problem report
    • Resolution: Fixed
    • Major
    • 6.4.9rc1, 7.0.0alpha8, 7.0 (plan)
    • 6.4.1
    • None
    • Debian Buster 10 (4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux)
      Ubuntu Focal 20.04 (5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux)
    • Team B
    • Product delivery backlog
    • 1

    Description

      On some linux servers system.sw.packages.get is unsupported with error "[Sw] Failed to parse 'dpkg --get-selections' output, err: strconv.ParseUint: parsing "": invalid syntax"

      Steps to reproduce:

      1. Login via ssh to linux server
      2. Switch to root
      3. Execute "zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t system.sw.packages.get -v"

      Result:
      See log files ubuntu_system_sw_packages_get.log / debian_system_sw_packages_get.log
      Output of "dpkg --get-selections" and "LC_ALL=C dpkg-query -W -f='${Status},${Package},${Version},${Architecture},${Installed-Size}\n'", from sw module (sw_linux.go) in attachments.
      Item also not supported in monitoring via latest linux os template.
      However, item system.sw.packages is working fine.

      Expected:
      The item is supported and work fine.

      Attachments

        Issue Links

          Activity

            People

              jlambda Juris Lambda
              signatev Svyatoslav Ignatev
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: