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

Monitoring an internal webpage

Votes:

0

Been busy with this for quitte a while now.

We have a PRTG set up with 3 probes:

Environment 1 (on site) Environment 2 (off site) Environment 3 (off site)

On environment 2, we host 4 virtual machines: vm1, vm2, vm3, vm4. We have the PRTG probe installed on vm1. However: there is an internal webpage that I like to monitor on VM3, just a simple status code 200 "ok" will do.

Problem is: the page I want to monitor, is only available for requests sent from VM3, only from that machine you can reach that page.

I tried working with the HTTP normal and advanced sensors, but that doesnt work "Network is unreachable"

I tried using a powershell script in combination with a file content sensor, but unfortunately it isn't able to find the "200" statuscode, neither in plain string as in regular expression.

The script I used is found here: https://gallery.technet.microsoft.com/scriptcenter/Powershell-Script-for-13a551b3

Does anybody have a solution for this problem? unfortunately my powershell skills aren't good enough to eddit the script into only showing the plain errorcode, without all the fancy stuff, because I think that might work.

http-advanced http-content-sensor http-sensor powershell web-page

Created on May 1, 2020 9:23:40 AM



2 Replies

Votes:

0

the answer is in the question. that page is not available from the prob location so need a work round, such as a powershell script. a remote sensor would be a good feature, as the remote probe in cases like this seems overkill

Created on Dec 19, 2020 11:55:00 PM



Votes:

0

not great with PS either, but in looking at the script i think it would have to be run on the remote machine and return a result to work with, a local call to it would give the same results as the probe device

Created on Dec 20, 2020 12:04:37 AM




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.