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

How can I include placeholders in HTTP notifications?

Votes:

0

So far the only placeholder that successfully resolve is the %sitename. Are the other placeholders in the list available for use in the POSTDATA section of the HTTP notification?

Thanks.

notifications placeholders postdata

Created on Aug 6, 2015 2:15:44 PM



5 Replies

Votes:

0

Hello vivacan,
There's an article in our KB that lists all possible placeholders that can be used within notifications. I hope that helps :)

Best Regards,

Created on Aug 7, 2015 7:03:40 AM by  Luciano Lingnau [Paessler]



Votes:

0

I've already seen that KB article, but when I tried to use any of the placeholders (like %device, %status, %message) they only come up verbatim.

e.g,:

[%name] down Alert for '%server' %device is %down

That's why I would like to know if the placeholders usable inside the POSTDATA of an HTTP notification is different than that for email or other notification methods.

Thanks a lot.

Regards, Arthur

Created on Aug 7, 2015 1:32:16 PM

Last change on Aug 10, 2015 5:50:43 AM by  Luciano Lingnau [Paessler]



Votes:

0

Hello Arthur,
please confirm that you are you running the latest PRTG version and how are you testing the HTTP Notification? Using the "Test" button within notifications or assigning the notification to a sensor and simulating an error status?

I've just tested the Postadata you've mentioned:

URLhttp://YOURPRTGSERVER/errorurl/
Postdata[%name] down Alert for '%server' %device is %down

I've tested it against the own HTTP Server of PRTG so that I could review it in the webserver's access log and this is the result in the webserver's log and the notification did update the placeholders according to the values in the device/sensor.

/errorurl/?%5BGreen%20IT%20%28Green%20IT%29%5D%20down%20Alert%20for%20%27DependencyTest%27%20DependencyTest%20is%20&errormsg=

In the test above, the sensor's name is "Green IT" and the device's name is "Dependency Test".

Created on Aug 10, 2015 6:01:42 AM by  Luciano Lingnau [Paessler]



Votes:

0

Hi,

If I use the simulate error status or set notification on an actual warning, it works! The test button is not processing the placeholders properly but simulate is fine.

Thanks a lot.

Created on Aug 12, 2015 3:02:07 PM



Votes:

0

Thank you for your feedback vivican.
It's great to hear that you got it working.

The test button will never substitute any placeholders, the test button sends the raw placeholders, its actually meant to test the end-to-end "delivery" of the message(Actually an HTTP operation in this case).

Best Regards,

Created on Aug 13, 2015 6:24:55 AM by  Luciano Lingnau [Paessler]




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.