Ad Widget

Collapse

Allow zabbix to have an inventory of softwares installed on a machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jerometeano
    Junior Member
    • Sep 2022
    • 7

    #1

    Allow zabbix to have an inventory of softwares installed on a machine

    Hi. Im a newbie in managing and configuring zabbix. I need to configure zabbix to monitor and have an inventory of all the software installed on my server. Can someone guide me on how to do this? Thank you.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2

    system.sw.packages[<package>,<manager>,<format>]
    Listing of installed packages. Text package - all (default) or a regular expression
    manager - all (default) or a package manager
    format - full (default) or short
    Supported platforms:
    Linux.

    Lists (alphabetically) installed packages whose name matches the given package regular expression (all lists them all).

    Example:
    => system.sw.packages[mini,dpkg,short] → python-minimal, python2.6-minimal, ubuntu-minimal

    Supported package managers (executed command):
    dpkg (dpkg --get-selections)
    pkgtool (ls /var/log/packages)
    rpm (rpm -qa)
    pacman (pacman -Q)

    If format is specified as full, packages are grouped by package managers (each manager on a separate line beginning with its name in square brackets).
    If format is specified as short, packages are not grouped and are listed on a single line.

    Supported since Zabbix 2.0.

    Works only on linux.

    Comment

    • jerometeano
      Junior Member
      • Sep 2022
      • 7

      #3
      Currently looking at how to configure items. Thanks for the response.
      Last edited by jerometeano; 02-09-2022, 10:40.

      Comment

      • jerometeano
        Junior Member
        • Sep 2022
        • 7

        #4
        Hi.

        Is there a way to present these values at a more readable manner? The result is like a raw version of data from the system.sw.package item key for zabbix agent. Thanks.

        Click image for larger version

Name:	image.png
Views:	2259
Size:	79.6 KB
ID:	450992

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #5
          Unfortunately, not out of the box.

          Comment

          • jerometeano
            Junior Member
            • Sep 2022
            • 7

            #6
            Hi guys,

            Is it possible to add this software installed package in hosts inventory so that it can viewed as additional details for the hosts? Thanks.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              "populate inventory" is an option, but I am not sure if there is a field big enough to contain all of that...

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                Meanwhile, you might want to go and vote for https://support.zabbix.com/browse/ZBXNEXT-336 :-)

                Comment

                Working...