Does it means that the websever being monitored must return data like [].If so ,the http content sensor is not flexible. If not can you show me an url that could be used to "http content sensor",thanks


Article Comments

Hi,
I'm afraid the sensor is not intended to be flexible. It should only read a value in a certain notation from a website whereas the value can be either float or integer.
I'm also afraid I don't have any example website but to test you may create a file called "test.htm" and put the following content in it:

[12]

Now place the file in <PRTG Install Directory>\website (find precises path here). Now create a HTTP Content Sensor and point it to the webinterface of your PRTG installation, remove the extension (like group.htm) and add "test.htm" to the URL.
The sensor should now show the value you put as content in the file.
Best regards


Oct, 2012 - Permalink

To Konstantin, Thank your answer,I have a try, I create test.htm in <PRTG Install Directory>\website.And input url in IE "http://IP:8080/test.htm",it shows the number. But I add the http content sensor,Value Type:integer Number of Channels:1 There is no data.


Oct, 2012 - Permalink

Hi,
my apologies. Please move the file to the \website subfolder \public and then adjust the URL of the sensor to

http://IP:8080/public/test.htm

Now it should work. You only can access the webserver root when authenticated but this is not possible with the HTTP Content Sensor.
Best regards


Oct, 2012 - Permalink