17 Return values

Overview

This section provides return value details for some Zabbix agent items.

system.sw.packages.get

The output of this item is an array of objects each containing the following keys:

  • name - package name
  • manager - package manager that reported this data (rpm, dpkg, pacman, or pkgtool)
  • version - package version
  • size - uncompressed package size (in bytes)
  • arch - package architecture
  • buildtime - an object with 2 entries:
    • timestamp - UNIX timestamp when the package was built (if not available, set to 0)
    • value - human readable date and time when the package was built (if not available, set to empty string)
  • installtime - an object with 2 entries:
    • timestamp - UNIX timestamp when the package was installed (if not available, set to 0)
    • value - human readable date and time when the package was installed (if not available, set to empty string)

For example:

  1. [
  2. {
  3. "name": "util-linux-core",
  4. "manager": "rpm",
  5. "version": "2.37.4-3.el9",
  6. "size": 1296335,
  7. "arch": "x86_64",
  8. "buildtime": {
  9. "timestamp" : 1653552239,
  10. "value" : "Sep 20 01:39:40 2021 UTC"
  11. },
  12. "installtime": {
  13. "timestamp" : 1660780885,
  14. "value" : "Aug 18 00:01:25 2022 UTC"
  15. }
  16. },
  17. {
  18. "name": "xfonts-base",
  19. "manager": "dpkg",
  20. "version": "1:1.0.5",
  21. "size": 7337984,
  22. "arch": "all",
  23. "buildtime": {
  24. "timestamp": 0,
  25. "value": ""
  26. },
  27. "installtime": {
  28. "timestamp": 0,
  29. "value": ""
  30. }
  31. }
  32. ]