New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.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


Script to get data from webpage

Votes:

0

Your Vote:

Up

Down

Hi all, I'm trying PRTG to replace our old nagios monitoring and I'm very happy how easy and well documented this tool are.

Anyway I need some help to get the temperature value from an environmental sensor made for Nagios (eesensor). The sensor haven't snmp/telnet/ssh, only HTTP with only one row in the page with temperature and humnidity and illumination:

aN022631TC: 26.6HU:42.5%IL: 0.3

I've ask to support and they told me that I need a powershell script like this, but the script world out of the support: $site = invoke-webrequest IPadress $site.content

I tried to do it all alone, but I'm not a "script-guru", can someone give me a little help?

Thanks in advance

exexml prtg script

Created on May 27, 2020 7:32:28 AM by  Cipo80 (0) 1



1 Reply

Votes:

1

Your Vote:

Up

Down

Hi there,

Please take a look at this site where we describe how the response have to look like. I would recommend to use something like regular expression to cut out the values and place them into the defined output.

Created on May 27, 2020 12:48:37 PM by  Moritz Heller [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.