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

HTTP content scrape

Votes:

0

Hi All,

I'm attempting to put together a custom HTTP content sensor with some screen scraped data from a website.

The background of the concept is we have a national power provider that publishes network load on a dashboard on their website. We are wanting to scrape the content using variables such as "mainContentPlaceHolder_lbTotalNetwork" into PRTG The variable above will return a numeric value which is in Megawatts.

Would this be able to be done with a custom written lookup ? I have a basic understanding on how the XML for the lookups works but unsure how to specify it to look for the value under "mainContentPlaceHolder_lbTotalNetwork"

We do also have powershell scripts which does the same job but get PE132 Response not wellformed error when attempting to run it.

Cheers!

http-advanced lookups powershell

Created on Aug 21, 2015 12:04:59 AM



3 Replies

Votes:

0

You have a link to that page? You'll definitely have to use a custom script sensor, since they probably don't publish this information via JSON/XML or anything like that, do they?

Created on Aug 21, 2015 11:20:52 AM by  Stephan Linke [Paessler Support]



Votes:

0

Here is a copy to the page in question: https://online.oriongroup.co.nz/LoadManagement/default.aspx

We're able to get the data via a powershell script but get the error "Response not wellformed: "(562 )" (code: PE132)" 562 is the result we're wanting in this example, it is possible to change the expected behavior of the answer message ? That would likely bypass the issue of having to try and do custom lookups.

Created on Aug 23, 2015 8:04:24 PM



Votes:

0

What does the current result look like? It has to be something like this:

<prtg>
  <result>
    <channel>First channel</channel>
    <value>10</value>
  </result>
  <result>
    <channel>Second channel</channel>
    <value>20</value>
  </result>
</prtg>

Created on Aug 24, 2015 5:46:04 AM by  Stephan Linke [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.