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 Action - 401 unauthorized?

Votes:

0

Hi - I'm looking to create an HTTP action that will switch on the power port on an Aviosys 9258S.

I've successfully configured and tested the HTTP request that I need to make, but when I use it in the PRTG custom notification, nothing happens and the PRTG log reports "401 Unauthorized"?

The URL includes logon credentials, but perhaps these aren't being passed correctly? the format of the URL with the logon credentials has to be:

http://login:password@ipaddress/set.cmd?cmd=command

If I just pass the first part of the URL, without the command, I get no authorisation error in the logs, but obviously it's the command part of the URL that takes the action, so without it nothing happens!

The actual URL I'm, trying to pass is:

http://root:P@[email protected]/set.cmd?cmd=setpower+p61=1+p62=1+p63=1+p64=1

I'm using this entire string in the URL field of the HTTP action and leaving the Postdata field blank...

Any suggestions/better ideas?

Thanks, Nick

http notification prtg

Created on Jan 21, 2013 4:46:15 PM



1 Reply

Votes:

0

Hello,

I am very sorry, but PRTG does not support this type of authentication: http://login:password@ipaddress/set.cmd?cmd=command

Please consider moving this into a script notification, where the HTTP Call is made inside the script.

best regards.

Created on Jan 21, 2013 6:05:27 PM by  Torsten Lindner [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.