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 Header Monitoring

Votes:

0

Hi, is it possible to monitor HTTP Headers in PRTG? For example i would like to monitor if in the HTTP response the header:

content-encoding: gzip

is included.

Or if a specific value is set in the "content-security-policy" Header.

Thank you + BR

header http monitoring prtg

Created on Nov 23, 2018 12:28:12 PM



1 Reply

Votes:

0

Hi there,

Unfortunately, there is no native sensor to check this. However in PowerShell you can check for certain headers and their value:

$site = Invoke-WebRequest -Uri "https://cspvalidator.org/" -UseBasicParsing
$site.Headers["content-security-policy"]

Maybe you can use this snippet to build a script that suits your needs:
https://kb.paessler.com/en/topic/71356-guide-for-powershell-based-custom-sensors

Best regards.

Created on Nov 23, 2018 2:32:33 PM by  Dariusz Gorka [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.