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

Item [system.sw.packages.get] failing in some cases with (null) values

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.18
    • Agent2 (G)
    • None

      Steps to reproduce:

      Item system.sw.packages.get is failing for 15 hosts (out of 750) with error "Failed to read sw value: cannot obtain package information." All problematic hosts use "fme-engine-2024" package. Apparently it turns out, it's failing on some package that has (null) in {ARCH} column and no {SIZE} column. It's happening independently of zabbix agent2 version and OS version (both on Zabbix agent 6.4.11/7.0.16/7.0.18 and RHEL7.9/9.5,/9.6).

      I'm using Zabbix server/proxy/frontend in version 7.0.16.

      Result:

      Direct command execution:

      LC_ALL=C rpm -qa --queryformat '%{NAME},%{VERSION}-%{RELEASE},%{ARCH},%{SIZE},%{BUILDTIME},%{INSTALLTIME}\n' | grep none
      gpg-pubkey,fd431d51-4ae0493b,(none),0,1256212795,1737117482
      gpg-pubkey,5a6340b3-6229229e,(none),0,1646863006,1737117482
      gpg-pubkey,3228467c-613798eb,(none),0,1631033579,1747232065
      fme-engine-2024,2024.2.2.0-24820.el9,x86_64,(none),1736897647,1747232166
      gpg-pubkey,8d8b756f-629e59ec,(none),0,1654544876,1747232228
      gpg-pubkey,8b4efbe6-629ec292,(none),0,1654571666,1747232228
      gpg-pubkey,b5333005-66308c87,(none),0,1714457735,1751463203

      Zabbix agent2 log:

      2025/09/04 16:09:43.014131 [Sw] failed to handle manager Failed test execution., %!s(MISSING) 2025/09/04 16:09:43.698187 [Sw] Failed to parse 'rpm -qa' output, err: strconv.ParseUint: parsing "(none)": invalid syntax 2025/09/04 16:09:43.698349 [Sw] failed to handle manager Failed to get output., %!s(MISSING) 2025/09/04 16:09:43.701857 [Sw] failed to handle manager Failed test execution., %!s(MISSING) 2025/09/04 16:09:43.704575 [Sw] failed to handle manager Failed test execution., %!s(MISSING) 2025/09/04 16:09:43.707346 [Sw] failed to handle manager Failed test execution., %!s(MISSING) 2025/09/04 16:09:43.707387 failed to execute direct exporter task for key 'system.sw.packages.get[[]]' error: 'Failed to read sw value: cannot obtain package information.' system.sw.packages.get                        [m|ZBX_NOTSUPPORTED] [Failed to read sw value: cannot obtain package information.] 2025/09/04 16:09:43.707430 manager has been stopped 

      Expected:
      Better parsing fields with (none) values.

            zabbix.support Zabbix Support Team
            pcyran94 Piotr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: