Ad Widget

Collapse

Software inventory in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fargo01
    Junior Member
    • Mar 2019
    • 1

    #1

    Software inventory in Zabbix

    Hello,

    I'm new to Zabbix so I would like your assistance. I send logs from multiple devices (computers and servers) to Zabbix server, using Zabbix agent.
    Is there a way to have a Software Inventory (with all the software installed on each computer) - Windows computers?

    Thank you
  • dbatechnologies
    Junior Member
    • Dec 2014
    • 11

    #2
    Zabbix agent itself has no such functionality for windows machines, but you could use it if UserParameter and some scripting and powershell to extract that info.
    For example, issuing Get-CimInstance win32_product | Select-Object Name, version, InstallDate will give you the list of installed software, their version and when it was installed. Writing this to a temporary file, then processing with vbscript can give you a usable information for zabbix server. I've done that with linux, using LLD and some php scripting.
    Check this topic https://www.zabbix.com/forum/zabbix-...kages-in-linux on how I did that.
    But in fact, I will probably do this for windows servers as well, but am not sure when.

    Comment

    • Richard341
      Junior Member
      • Sep 2022
      • 8

      #3
      Hello, I accomplished the same thing you are describing here recently, so I thought I'll share it with you.
      I made a batch File with (just) this Code:

      echo off
      wmic product get Name, Version

      then I put the script on the windows Server/Computer where I want the programs to be collected.

      Then I went into %programfiles% / zabbix Agent / zabbix_agentd.conf
      and edited the file. I Added AllowKey = System.Run[*] and EnableRemoteCommands=1(The position isn't important, i think, just make sure that there isn't an DenyKey = System.Run[*]).
      After that I restarted the server.

      I went into the zabbix interface, klicked on the left panel on "Hosts" and accessed th einventory of the host/computer/server where i just put the batch file. I Created a new item,
      named it "SoftwareCheck" and added "system.run[C:\Bat_Softwarecheck\softwarecheck.bat]" as the key. In your case just put the path of your batch file into the brackets system.run[*path to your batch file*]
      Then just create the item.

      On the left Zabbix panel, go to the dashboard and add a new widget, select plain text, you host and it's newly created "SoftwareCheck" item.

      Things should be done at this point.
      Please keep in mind that it takes some time until the AllowKey rule kicks in after the restart, and until averything loads in the widget.

      I attached a screenshot of the end result​
      Attached Files

      Comment

      • Buozinis
        Junior Member
        • May 2024
        • 9

        #4
        Hello,
        I know it is an old topic and not 100% related.

        I have an extra requirement on this. I have done as Richard341 mentioned on his post about collecting installed apps with a batch script. On top of that I have created a trigger to flag if the new apps were installed / updated. Trigger works daily and it does flag if lets say chrome updated as the number changes from e.g. 123.1234 to 123.1255. But I have to check the past values and compere myself what has changed and there are. Is it possible Zabbix to tell me what was changed?

        Comment

        Working...