I found out that there are some placeholders to adjust the notifications / pass arguments to script..
BUT, how can I define my own placeholders for device ?
Imagine Situation, with 2 devices:
- APC PDU Unit
- IP Camera (power cable connected to APC PDU, outlet #1)
Now, IP Camera has stopped responding, and I want to use PRTG to take an action - execute "notification/script" to reset power on PDU for outlet #1 - So, I need to define some custom attributes/properties for my WIFI:
- PDU IP Address
- PDU Outlet number Now I want to use these attributes/properties and pass it to script "restart_pdu_outlet.bat" with arguments IP & Outlet_Number. Script will connect to PDU and reset power..
Is it possible in PRTG ?
thanks !
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Hi there,
In your notification template, you can choose the option to select the option Execute Program. With this you also can use placeholders. You may use the placeholders %host and %device as parameters in your script. To be able to select the script, you will need to store your script on your Core Server in \Notifications\EXE.
Kind regards
Felix Wiesneth - Team Tech Support
Dec, 2020 - Permalink