I need additional information on how to set up an HTTP Transaction sensor, especially on how to find out the correct POSTDATA settings.
This article applies as of PRTG 21
The HTTP Transaction sensor - tips and tricks
With the the HTTP Transaction sensor, you can monitor a sequence of URLs on a web server. This is useful, for example, to ensure that placing products into a shopping cart and then passing the checkout actually works.
A word of caution
For some web applications, it can be quite complicated if not impossible to create an HTTP Transaction sensor in PRTG Network Monitor.
Be aware that our support team cannot take over the duty of creating and debugging the HTTP Transaction sensor settings for you and your website. However, the sensor is already in use on many different websites and can be considered reliable.
What you need
The HTTP Transaction sensor simulates the HTTP requests that are send to a server by a user visiting a sequence of webpages (while preserving the cookies during all requests).
To simulate this, you must give the URLs and their POSTDATA (for POST requests only) to the HTTP Transaction sensor. Simply copy the URLs from the URL edit field of your web browser. To get the POSTDATA, see the steps below:
Getting POSTDATA via developer tools
You can get the POSTDATA in a few mouse clicks with your web browser's developer tools. They help you to find out the URLs and the POSTDATA strings that are send to a web server while visiting a sequence of URLs.
How to open developer tools in Chrome
- Go to Options | More Tools | Developer tools or via the Windows shortcut Control+Shift+I.
- Go to the Network tab.
How to open developer tools In Firefox
- Go to Options | Web Developer | Network or via the Windows shortcut Control+Shift+E.
Note: In both Chrome and Firefox, you can also right-click an element and inspect it to open the developer tools.
- In the browser window, use the mouse to go through the URL sequence you want to record. While you access each page, the URL and - if you submit a POST request - the POSTDATA is stored in the list of the developer tools console.
- Stop the recording when you reach the last web page of your URL sequence.
- When you are done, you can use the URL list's context menu to copy or save URLs or POSTDATA.
Note: For more information on the developer tools options, see your browser's website.
Transferring the data to PRTG Network Monitor
- Open the PRTG web interface.
- Create a new HTTP Transaction sensor and copy the URLs (and for POST requests, the POSTDATA) with the information from the developer tools into the edit fields of PRTG Network Monitor.
- Check the other settings of the sensor and submit the page.
You should now be able to monitor the sequence as desired.
IMPORTANT: Be aware that if the sequence you recorded was a shopping cart or any other transactional activity, PRTG will now cause the same purchase or transaction every few minutes if you do not prevent this.
How can we be of assistance?
That would require some special coding, as PRTG does not have sensors that work with those elements out of the box.