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 Feb 18, 2010 1:01:06 PM by  Daniel Zobel [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

Your Vote:

Up

Down

This article applies to PRTG Network Monitor 14 or later

Using the HTTP Content Sensor

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

The sensor requests an URL from your server and looks for a numerical value inside the HTML which must be marked with a [ ]. This value will be used as the sensor result (e.g. 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 a HTTP Content Sensor, enter the URL of the script. That's it.

Stuff you can monitor

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

  • monitor number of sold items
  • monitor number of customers
  • monitor number of new users
  • monitor daily/monthly/total sales
  • monitor database size
  • monitor records in a database table
  • monitor free disk space
  • monitor cpu load
  • Or monitor any other value that can be accessed from your web application

Notes

You can even monitor several values (each between a pair of brackets) with one HTTP Content Sensor.

More

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

Last change on Dec 2, 2014 6:00:08 PM by  Gerald Schoch [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.