[ZBX-23806] Zabbix Agent v6- system.sw.packages item no longer showing data with regex Created: 2023 Dec 07  Updated: 2024 Aug 20

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Packages (C)
Affects Version/s: 6.0.24
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Bartosz Mickiewicz (Inactive) Assignee: Dmitrijs Lamberts
Resolution: Unresolved Votes: 0
Labels: items
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File 6.0.22.log    
Issue Links:
Causes
Team: Team B

 Description   

Agent 6.0.24 doesn't work with system.sw.packages[<regex>]
Test with 6.0.0:

localhost:/home/bmi # zabbix_get -s 127.0.0.1 -k  agent.variant
1
localhost:/home/bmi # zabbix_get -s 127.0.0.1 -k  agent.version
6.0.0
localhost:/home/bmi # zabbix_get -s 127.0.0.1 -k  system.sw.packages[ya]
[rpm] autoyast2-installation-4.3.104-150300.3.52.1.noarch, libyajl2-2.1.0-150000.4.3.1.x86_64, libyaml-0-2-0.1.7-1.17.x86_64, libyaml-cpp0_6-0.6.1-4.5.1.x86_64, patterns-yast-x11_yast-20201210-1.25.x86_64, patterns-yast-yast2_basis-20201210-1.25.x86_64, yast2-4.3.69-150300.3.20.1.x86_64, yast2-add-on-4.3.10-150300.3.8.1.noarch, yast2-apparmor-4.3.2-3.3.1.noarch, yast2-bootloader-4.3.32-150300.3.11.1.x86_64, yast2-control-center-4.3.0-1.76.x86_64, yast2-control-center-qt-4.3.0-1.76.x86_64, yast2-core-4.3.3-1.44.x86_64, yast2-country-4.3.19-150300.3.14.1.x86_64, yast2-country-data-4.3.19-150300.3.14.1.x86_64, yast2-firewall-4.3.11-1.1.noarch, yast2-hardware-detection-4.1.2-1.1.x86_64, yast2-installation-4.3.55-150300.3.34.2.noarch, yast2-kdump-4.3.4-1.4.x86_64, yast2-ldap-4.1.0-1.28.x86_64, yast2-logs-4.3.69-150300.3.20.1.x86_64, yast2-migration-4.2.5-3.3.1.noarch, yast2-network-4.3.86-150300.3.35.1.noarch, yast2-ntp-client-4.3.3-3.3.1.noarch, yast2-online-update-4.2.2-1.176.noarch, yast2-online-update-frontend-4.2.2-1.176.noarch, yast2-packager-4.3.26-150300.3.11.1.x86_64, yast2-pam-4.3.4-1.3.noarch, yast2-perl-bindings-4.3.0-1.71.x86_64, yast2-pkg-bindings-4.3.11-1.1.x86_64, yast2-proxy-4.3.3-3.5.1.noarch, yast2-registration-4.3.26-150300.3.12.2.noarch, yast2-ruby-bindings-4.3.14-1.1.x86_64, yast2-security-4.3.17-3.3.1.noarch, yast2-services-manager-4.3.6-1.3.noarch, yast2-slp-4.1.1-1.143.x86_64, yast2-snapper-4.2.0-1.152.x86_64, yast2-storage-ng-4.3.60-150300.3.21.1.x86_64, yast2-support-4.3.0-1.99.noarch, yast2-theme-4.3.11-3.6.1.noarch, yast2-trans-stats-2.19.0-1.28.noarch, yast2-transfer-4.1.0-1.28.x86_64, yast2-update-4.3.4-150300.3.6.1.x86_64, yast2-users-4.3.14-3.8.1.x86_64, yast2-vm-4.3.1-1.40.x86_64, yast2-x11-4.3.0-1.1.x86_64, yast2-xml-4.1.1-1.33.x86_64, yast2-ycp-ui-bindings-4.3.9-1.2.x86_64
 

Test with 6.0.24:

localhost:/home/bmi # zabbix_get -s 127.0.0.1 -k  agent.version
6.0.24
localhost:/home/bmi # zabbix_get -s 127.0.0.1 -k  agent.variant
1
localhost:/home/bmi # zabbix_get -s 127.0.0.1 -k  system.sw.packages[ya]
[rpm]
localhost:/home/bmi #
 

OS version:

localhost:/home/bmi # cat /etc/os-release
NAME="SLES"
VERSION="15-SP3"
VERSION_ID="15.3"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP3"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp3"
DOCUMENTATION_URL="https://documentation.suse.com/"
 


 Comments   
Comment by dimir [ 2023 Dec 13 ]

bmickiewicz Please show the output of:

rpm -qa | grep pcre 
Comment by Bartosz Mickiewicz (Inactive) [ 2024 Jan 11 ]

libpcre2-8-0-10.31-150000.3.12.1.x86_64
libpcre1-8.45-150000.20.13.1.x86_64
libpcre2-16-0-10.31-150000.3.12.1.x86_64

Comment by dimir [ 2024 Jan 24 ]

What about

ldd /usr/sbin/zabbix_agentd | grep pcre

?

Comment by Bartosz Mickiewicz (Inactive) [ 2024 Mar 04 ]

[root@appliance ~]# ldd /usr/sbin/zabbix_agentd | grep pcre
        libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f80c504f000)

[root@appliance ~]# ldd /usr/sbin/zabbix_agent2 | grep pcre
        libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f0b47068000)

Comment by dimir [ 2024 Mar 19 ]

Tested with docker image dokken/opensuse-leap-15.3:latest

Indeed, the pcre in Zabbix agent does not work:

# zabbix_agentd -t system.sw.packages[perl]
system.sw.packages[perl]                      [t|[rpm]]

# zabbix_get -s 127.0.0.1 -k  system.sw.packages[perl]
[rpm]

# rpm -qa | grep perl
perl-base-5.26.1-150300.17.11.1.x86_64
perl-Try-Tiny-0.30-1.17.noarch
perl-Params-Util-1.07-1.26.x86_64
perl-Module-Implementation-0.09-1.22.noarch
perl-Params-Validate-1.29-1.25.x86_64
perl-5.26.1-150300.17.11.1.x86_64
perl-Sub-Install-0.928-1.24.noarch
perl-Module-Runtime-0.016-1.17.noarch
perl-Data-OptList-0.110-bp153.1.32.noarch
perl-Sub-Exporter-0.987-bp153.1.21.noarch
perl-Getopt-Long-Descriptive-0.102-bp153.1.16.noarch
Comment by dimir [ 2024 Jun 27 ]

Looks like either more investigation is needed to study the situation on SuSE or document this as known misbihavior.

Generated at Sat Apr 05 05:41:33 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.