New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


How can I monitor internal values of a web application with PRTG?

Votes:

1

Your Vote:

Up

Down

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]

Last change on May 16, 2019 5:48:23 AM by  Florian Weik [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

Your Vote:

Up

Down

This article applies to PRTG Network Monitor 19 or later

Using the HTTP Content Sensor

The HTTP Content sensor offers the easiest way to monitor the internal values of a web server based application.

The sensor requests a URL from your server and looks for a numerical value that must be marked with a [ ] inside the HTML. This value will be used as the sensor result (for example in graphs) and you can create triggers and notifications based on this value.

How to do it

You need 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, enter the URL of the script. That's it.

Things you can monitor

Here are some types of information you can monitor using this approach:

  • 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
  • Or any other value that can be accessed from your web application

Notes

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] (10,858) 3 4

Last change on May 20, 2019 10:01:29 AM by  Brandy Mauff [Paessler Support]



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.