Hello friends, I need some advice
Information:
Server - Zabbix 7.0
Host PC - Zabix Agent 2.0
Host PC - Windows 10
Goal: Monitoring installed on windows PCs
Tested:
I would start using a powershell script: "get_installed_apps.ps1"
$jsonOutput | ConvertTo-Json
The return value is in JSON format
[
{
"{#APPVERSION}": "12.0.40664",
"{#APPNAME}": "Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.40664".
},
{
"{#APPVERSION}": "4.80",
"{#APPNAME}": "Software602 Form Filler".
more...
]
editing zabbix.conf
UserParameter=installed.apps,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent 2\get_installed_apps.ps1"
UnsafeUserParameters=1
I created Discovery rules
Cannot create item: item with the same key "installed.app[{#APPNAME}]" already exists.
Cannot create item: item with the same key "installed.app[{#APPNAME}]" already exists.
I tried really many combinations and different ways, but everything ends the same. Unfortunately, the documentation for custom LLD using powershell script doesn't exist perhaps and I have drawn from various forums but have had no success. I am asking for your help in solving this problem, thank you. zz0.tguqk9irpbfzz
Information:
Server - Zabbix 7.0
Host PC - Zabix Agent 2.0
Host PC - Windows 10
Goal: Monitoring installed on windows PCs
Tested:
I would start using a powershell script: "get_installed_apps.ps1"
$jsonOutput | ConvertTo-Json
The return value is in JSON format
[
{
"{#APPVERSION}": "12.0.40664",
"{#APPNAME}": "Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.40664".
},
{
"{#APPVERSION}": "4.80",
"{#APPNAME}": "Software602 Form Filler".
more...
]
editing zabbix.conf
UserParameter=installed.apps,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent 2\get_installed_apps.ps1"
UnsafeUserParameters=1
I created Discovery rules
- Name: Installed Applications Discovery
- Type: Zabbix agent
- Key: installed.apps
- Macro: {#APPNAME}
- JSONPath: $.DisplayName
- Name: Installed Application: {#APPNAME}
- Type: Zabbix agent
- Key: installed.app[{#APPNAME}]
- Type of information: Character
Cannot create item: item with the same key "installed.app[{#APPNAME}]" already exists.
Cannot create item: item with the same key "installed.app[{#APPNAME}]" already exists.
I tried really many combinations and different ways, but everything ends the same. Unfortunately, the documentation for custom LLD using powershell script doesn't exist perhaps and I have drawn from various forums but have had no success. I am asking for your help in solving this problem, thank you. zz0.tguqk9irpbfzz
Comment