Hi,
I am trying to get a simple powershell script to output to an item.
The powershell script simply says,
Write-Output "Hello World"
The UserPreference looks like this,
UserParameter=TestPref,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\scripts\test.ps1"
The Item looks like,
Name: Test
Type: Zabbix Agent
Key: TestPref
Type: Text (tried log too)
However all I get in the Latest data is
W
W
W
W
over and over.
If I change the UserPreference to echo "Hello World" it works fine. Tried many different scripts and many different settings but I just cannot get anything but "W" as output from a powershell script.
Thanks,
D
I am trying to get a simple powershell script to output to an item.
The powershell script simply says,
Write-Output "Hello World"
The UserPreference looks like this,
UserParameter=TestPref,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix\scripts\test.ps1"
The Item looks like,
Name: Test
Type: Zabbix Agent
Key: TestPref
Type: Text (tried log too)
However all I get in the Latest data is
W
W
W
W
over and over.
If I change the UserPreference to echo "Hello World" it works fine. Tried many different scripts and many different settings but I just cannot get anything but "W" as output from a powershell script.
Thanks,
D