Hi,

Is there a way to access the placeholders values from a custom notification script?

Background: If I understand correctly, you must pass each placeholder you want to use in your custom notification script as a parameter separately. This can cause the parameter line to be really long and confusing/hard to read.

It would be great if there is a way to pass all the placeholders data using one variable and parse the content within the script. Or even better: All the placeholders could be set as environment variables within the process so the script could access them directly. Maybe there is a way to achieve this already, but I don't know about it. So any help appreciated.

Regards


Article Comments

Hello Sebastian,

Thank you for the post, for custom notification the placeholders you can use are fixed and they are here:

https://www.paessler.com/manuals/prtg/list_of_placeholders_for_notifications#summarizednotifications

They're used for summarized notifications.

It appears you're looking at the custom EXE/Script place holders from here:

https://www.paessler.com/manuals/prtg/exe_script_sensor

Those need to be defined 1 by 1.


Nov, 2022 - Permalink