What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Custom notification - Pass/access all placeholders in script at once

Votes:

0

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

custom development notification placeholders script sensor-hub

Created on Oct 30, 2022 8:49:20 AM



1 Reply

Votes:

0

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.

Created on Nov 3, 2022 2:05:39 PM by  Oscar Chavarria [Paessler Technical Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.