What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Your Vote:

Up

Down

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 by  vivacan (0) 1



5 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  vivacan (0) 1

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



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  vivacan (0) 1



Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.