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

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 Download

Top Tags


View all Tags

HTTP PUSH DATA ADVANCED SENSOR Doesn't working?

Votes:

1

Your Vote:

Up

Down

Hello,

I am trying to send data (from .xml file) from application using POST method to prtg. I have correct token, port 5050 is open for me, I do have respond from prtg probe but this one: { "status": "Ok", "Matching Sensors": "0" }

I am executing this http request: http://127.0.0.1/token

Obviously I can't contact that specific sensor (even though token is right and I am sure about it).

Do you have any idea how can I resolve it?

PRTG version 18.4.45.1898+

Thank you for any help!

http-push-data-advanced post postdata prtg sensor

Created on Oct 31, 2018 9:18:54 AM by  Lukas (1) 1



6 Replies

Votes:

0

Your Vote:

Up

Down

Hello Lukas,

You also need to enter the port in the url, please "How to use" here.

Also, unless the event that sends the data to PRTG is not running on the same server, you need to use the PRTG server's external IP, currently the webhook addresses the machine itself where the webhook is being exeuted (localhost, 127.0.0.1)

Kind regards,

Erhard

Created on Oct 31, 2018 11:24:19 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello Erhard,

That address supposed to be example, i know that i need to use port and also external IP.

Thank you

Created on Oct 31, 2018 9:20:15 PM by  Lukas (1) 1



Votes:

0

Your Vote:

Up

Down

Hello Erhard. That supposed to be an example. I know how to use that syntax.

Also thing is, when I try HTTP PUSH Count what should probably work the same, and I put request to the web browser, i do have response from server { "status": "Ok", "Matching Sensors": "1" }.

Sadly this thing is not happening when I am trying to requesting HTTP PUSH DATA ADVANCED sensor...

Created on Nov 1, 2018 7:25:54 AM by  Lukas (1) 1



Votes:

0

Your Vote:

Up

Down

Hello Lukas,

Please send us additional details by email ([email protected]) from the sensor, screenshots from the sensor's Overview, Settings and Log tabs would be great as a starting point.

Kind regards,

Erhard

Created on Nov 1, 2018 7:34:07 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Your Vote:

Up

Down

I'm not sure if this thread is still active. I had the same problem with my Version 19.2.50.2842 and switching from "POST" to GET worked.

Excerpt from my PowerShell $prtgresult contains a valid XML als string. $prtgurl is something like "http://prtg.uclabor.de:5050/token" The following works

	    $Answer=Invoke-RestMethod `
		    -method "GET" `
		    -URI ("$($prtgurl)?content=$([System.Web.HttpUtility]::UrlEncode($prtgresult))") `
		    -ContentType "application/xml"

And this does not work

	    $Answer=Invoke-RestMethod `
		    -method "POST" `
		    -URI ($prtgurl) `
		    -ContentType "application/xml" `
		    -Body ([System.Web.HttpUtility]::UrlEncode($prtgresult))

I get a status=OK and "Matching Sensor = 1" as Return but PRTG does not loko the data into de debug file.

Created on Jul 5, 2019 3:29:17 PM by  Frank Carius (341) 1 1

Last change on Jul 9, 2019 7:14:26 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello Frank,

Please send us additional details by email to [email protected]:

  • Screenshot from sensor's settings
  • Screenshot from sensor's "Log" tab
  • The Powershell script you're using
  • All files that might be generated from sensor's "Write request to disk..." option.

Kind regards,

Erhard

Created on Jul 9, 2019 7:28:44 AM by  Erhard Mikulik [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.