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 monitor internal values of a web application with PRTG?

Votes:

1

Is it possible (does anyone do this?) to create some kind of custom snmp/sensor/app for say a web application that can be queried by PRTG?

For example I would like to include stats from a running web application along with all the hardware monitoring i.e. number of purchases made / shopping carts active / number of product searches / pages served etc.

These are obviously custom values that I would need to persist in some application - that's a development problem. What I want to know is, do people do this with PRTG and if so what do they do to implement it so that PRTG can get to the information and display it?

custom-sensor http-content-sensor http-sensor prtg script web-application

Created on Dec 11, 2009 2:52:49 PM by  Michael Zeidler [Paessler Support] (112) 3 1

Last change on May 16, 2019 5:48:23 AM by  Florian Weik (1,927) 2 2



1 Reply

Accepted Answer

Votes:

0

This article applies as of PRTG 22

Using the HTTP Content sensor

The HTTP Content sensor is an easy way to monitor the internal values of a web server based application.

The sensor requests a URL from your server and looks for a numeric value that must be surrounded by brackets inside the HTML. The sensor uses this value as the sensor result (for example in graphs) and you can create triggers and notifications based on this value.

How to do it

Create a script on the web server that reads the desired value from the server and renders a small HTML page with the value between [] brackets. Then set up an HTTP Content sensor and enter the URL of the script.

Things you can monitor

  • Number of sold items
  • Number of customers
  • Number of new users
  • Daily/monthly/total sales
  • Database size
  • Records in a database table
  • Free disk space
  • CPU load
  • Any other value that can be accessed from your web application

Note: You can even monitor several values (each surrounded by brackets) with one HTTP Content sensor.

More

Created on Dec 11, 2009 2:59:33 PM by  Dirk Paessler [Founder Paessler AG] (11,025) 3 6

Last change on Jan 3, 2023 8:04:05 AM by  Brandy Greger [Paessler 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.