Hello Zabbix Community,
I am trying to create a LLD Discovery rule in Zabbix that extract the folder name and the parent folder name. It works perfectly if I run the PowerShell command in Powershell but when I test it on Zabbix I get
error.
Here's the code:
Any Idea how to overcome this problem?
Thank you.
I am trying to create a LLD Discovery rule in Zabbix that extract the folder name and the parent folder name. It works perfectly if I run the PowerShell command in Powershell but when I test it on Zabbix I get
Invalid second parameter.
Here's the code:
Code:
system.run[powershell.exe -NoProfile -ExecutionPolicy bypass -c "Get-ChildItem -Path c:\apps -Directory -filter tomcat-* | Get-ChildItem -Directory | select name, @{Name = 'ParentFolder'; Expression = {$_.Parent.Name}}|ConvertTo-Json"]
Thank you.
Comment