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

Monitor HTML content without []

Votes:

0

Hello,

we have special hardware here that is only able to send plain values without the []. It only sends one number back so it should be possible to monitor that. I was not able to get it work with the HTTP(Inhalt) sensor. Is it possible to monitor systems like that?
We are evaluating PRTG at the moment and it is essential for us to get this working.

greetings from Bochum,
Bastian Stock
SCISYS Deutschland GmbH

http http-content-sensor prtg

Created on Nov 23, 2016 10:20:51 AM

Last change on Nov 23, 2016 11:18:39 AM by  Luciano Lingnau [Paessler]



1 Reply

Votes:

0

Hello Bastian,
we appreciate your inquiry.

Please note that to use the HTTP Content sensor, the [ ] (square brackets) are mandatory. It should look like this:

<html>
 <body>
  Description: Script gives back current status of disk free (%) and CPU usage (%).
  [85.5][12.0]
 </body>
</html>

If your HTTP Data is XML/JSON encoded, you may want to consider using the HTTP XML Rest Value Sensor. In this case the data must look like this:

<?xml version="1.0" encoding="UTF-8" ?>
	<prtg>
		<result>
			<channel>Channel 1 (integer)</channel>
			<value>12</value>
		</result>
		<result>
			<channel>Channel 2 (integer)</channel>
			<value>42</value>
		</result>
		<text>The sensor's message</text>
	</prtg>
	

Or like this:

{
  "prtg": {
    "result": [
      {
        "channel": "Channel 1 (integer)",
        "value": "12"
      },
      {
        "channel": "Channel 2 (integer)",
        "value": "42"
      }
    ],
    "text": "The sensor's message"
  }
}

If you're not able to "control" how the data is presented by the device, you may want to consider using one of the following sensors:

These sensor types allow you to create a custom script/application that will fetch the data (as provided by the device), then "adjust" it's format to be compliant with the API for Custom sensors and then feed the results back into PRTG. For more information, see PRTG Manual: Custom Sensors.



Best Regards,
Luciano Lingnau [Paessler Support]

Created on Nov 23, 2016 11:27:46 AM by  Luciano Lingnau [Paessler]

Last change on Jul 30, 2018 10:11:43 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.