Hello,
If have created two items which is calling a powershell script.
But I don't get to see the value in the interface
When I run this command from the console it does return the value:
zabbix_get -s 10.161.12.16 -k teverwerken
2338
In the agent conf I included the following line
UserParameter=teverwerken,powershell -NoProfile -ExecutionPolicy Bypass -File "Path to script\tvermap.ps1"
Item 1:
Type: zabbix agent (active)
Key: system.run[powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Zabbix_Agent\tvermap.ps1"]
type of information: Character
Item2:
Type: zabbix agent (active)
Key: teverwerken
type of information: Character
can anyone tell me what I'm doing wrong?
Rgds,
John
If have created two items which is calling a powershell script.
But I don't get to see the value in the interface
When I run this command from the console it does return the value:
zabbix_get -s 10.161.12.16 -k teverwerken
2338
In the agent conf I included the following line
UserParameter=teverwerken,powershell -NoProfile -ExecutionPolicy Bypass -File "Path to script\tvermap.ps1"
Item 1:
Type: zabbix agent (active)
Key: system.run[powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Zabbix_Agent\tvermap.ps1"]
type of information: Character
Item2:
Type: zabbix agent (active)
Key: teverwerken
type of information: Character
can anyone tell me what I'm doing wrong?
Rgds,
John