I am calling a notification template for testing with the newest version of PRTG (now is November 2019). A batch file is called which looks like this:
rem Call_telegram_sender.bat c:\somepath\send_to_telegram.exe %1
The notification "Telegram-Post" in PRTG is defined like this:
- Execute Program
- Programm File: Call_telegram_sender.bat
- Parameters: %device
When clicking on "the bell" to test the notification template the batch file gets executed well and I am getting a message through telegram instant messaging service. But the Parameter is not resolved. I get the message: %device (percent-d-e-v-i-c-e)
I tried all this parameters:
- %device --> leads to: %device
- $device --> leads to: $device
- %DEVICE --> leads to: %DEVICE
- %%device --> leads to: %%device
- %%%device --> leads to: %%%device
- foo-%device --> leads to: foo-%device
- "foo-%device" --> leads to: foo-%device
- 'foo-%device' --> leads to: 'foo-%device'
It seems to like there is no resolution of variables
Add comment