Hi,
1. I set up a notification using Execute Program. The Parameters is:
%probe %group %device %name %sensorid %status %down %message
2. The code of powershell script:
$outfile = "C:\PRTGtoZendesk\ha.txt" for ($i=0; $i -lt 8; $i++) { $newline = "hello " + $args[$i] + "`n" Add-Content $outfile $newline }
3. I selected "Send test notification", then opened the file "C:\PRTGtoZendesk\ha.txt". The result was:
hello %probe
hello %group
hello %device
hello %name
hello %sensorid
hello %status
hello %down
hello %message
So my question is: how can I transfer the values of the placeholders to the powershell script ?
Thanks.
Add comment