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

system.sw.packages.get ignores held packages (dpkg)

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.1
    • Agent (G)
    • None

      1. Steps to reproduce:

      unheld package listed as expected:

       

      # zabbix_get -s myhost -k system.sw.packages.get[nano,dpkg]
      [{"name":"nano","manager":"dpkg","version":"3.2-3+deb10u1","size":2269184,"arch":"amd64","buildtime":{"timestamp":0,"value":""},"installtime":{"timestamp":0,"value":""}}] 

      put it on hold:

      # apt-mark hold nano
      nano set on hold. 

      it isn't listed anymore:

      # zabbix_get -s myhost -k system.sw.packages.get[nano,dpkg]
      [] 

       

       

      Expected:
      All installed packages should be listed regardless of their hold status

            bkruszewski Bartosz Kruszewski (Inactive)
            dome Roni Väyrynen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: