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

Custom HTTP/XML sensor not working

Votes:

0

Hi,

I am currently working on creating a custom HTTP/XML sensor. I am getting an error "the URI scheme is not valid". Please find the parameters I have used to create this sensor

url : -u="http://xxxx.xxxx.com.xxxx/xxx/opu/odata/SAP/ZRFC_TEST_SRV/System_StatusSet?$filter=RfcName%20eq%20%27DMH100%27"
node : -n="id"
custom message : -cm="System is %1"

Can you please guide me what I am missing. I am pretty new to this and would appreciate if you can help me on this.

Regards, Anamika

custom-sensor http-xml-sensor uri

Created on May 4, 2017 5:36:51 PM

Last change on May 5, 2017 7:42:20 AM by  Dariusz Gorka [Paessler Support]



9 Replies

Votes:

0

A dump of the XML file and the actual error message would sure be helpful for debugging :)

Created on May 5, 2017 8:05:41 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi Stephan,

Please find the xml file below which is getting generated from the URL above:

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="http://xxxx.xxxx.com/sap/opu/odata/SAP/ZRFC_TEST_SRV/">
<id>
http://xxxx.xxxx.com/sap/opu/odata/SAP/ZRFC_TEST_SRV/System_StatusSet
</id>
<title type="text">System_StatusSet</title>
<updated>2017-05-08T15:14:04Z</updated>
<author>
<name/>
</author>
<link href="System_StatusSet" rel="self" title="System_StatusSet"/>
<entry>
<id>
http://xxxx.xxxx.com/sap/opu/odata/SAP/ZRFC_TEST_SRV/System_StatusSet('xxx100')
</id>
<title type="text">System_StatusSet('XXX100')</title>
<updated>2017-05-08T15:14:04Z</updated>
<category term="ZRFC_TEST_SRV.System_Status" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href="System_StatusSet('XXX100')" rel="self" title="System_Status"/>
<content type="application/xml">
<m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<d:RfcName>XXX100</d:RfcName>
<d:RfcStatus>1</d:RfcStatus>
<d:RfcStatus1/>
</m:properties>
</content>

I am trying to read node <d:RfcStatus> in the header. But when i goto overview page , i Just the host name and see the sensor is down. Is this information helpful ?

Regards, Anamika

Created on May 9, 2017 4:59:22 PM

Last change on May 10, 2017 6:28:48 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi Anamika,

Could you post the complete URL by any chance? I won't publish it (i.e. only I can see it). Not sure what's exactly wrong with it, but I can't find anything wrong with the censored one you posted...


Kind regards,
Stephan Linke, Tech Support

Created on May 10, 2017 6:40:00 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi Anamika,

Okay - could you try to either omit the dollar sign or replace it with %24?


Kind regards,
Stephan Linke, Tech Support

Created on May 11, 2017 11:51:08 AM by  Stephan Linke [Paessler Support]

Last change on May 11, 2017 11:51:16 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi Stephan,

I tried replacing the dollar sign with %24 but even that didnt help. The url is
<removed-by-moderator>

Is there a way i can check the logs? when i go through the logs or history i dont see much information. How can i debug this issue. If it is ok, can I have an online meeting with you where i can share my screen and show you what I am trying to do. let me know if that is feasible.

Regards, Anamika

Created on May 11, 2017 4:14:32 PM

Last change on May 12, 2017 5:18:06 AM by  Stephan Linke [Paessler Support]



Votes:

0

In the previous reply i typed wrong url, please find the correct url below:
<removed-by-moderator>

Created on May 11, 2017 7:06:24 PM

Last change on May 12, 2017 5:18:19 AM by  Stephan Linke [Paessler Support]



Votes:

0

There's not much to debug apart from the sensor message, as it does not have a debug log. You could modify the URL and make your way to the actual end of it :

  1. http://xxxx.xxxx.com.xxxx/xxx
  2. http://xxxx.xxxx.com.xxxx/xxx/opu/odata/SAP
  3. http://xxxx.xxxx.com.xxxx/xxx/opu/odata/SAP/ZRFC_TEST_SRV/
  4. http://xxxx.xxxx.com.xxxx/xxx/opu/odata/SAP/ZRFC_TEST_SRV/System_StatusSet
  5. http://xxxx.xxxx.com.xxxx/xxx/opu/odata/SAP/ZRFC_TEST_SRV/System_StatusSet?$filter=RfcName%20eq%20%27DMH100%27

This should help you to find out where the sensor actually gets stuck. Let me know where :)


Kind regards,
Stephan Linke, Tech Support

Created on May 12, 2017 5:34:30 AM by  Stephan Linke [Paessler Support]

Last change on May 12, 2017 5:34:47 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi Stephan,

I tried all the links. Neither of them worked.In the output it just returns the host name and sensor is still down.

Regards, Anamika

Created on May 12, 2017 6:16:25 PM



Votes:

0

Does any other link that points to an XML work actually?

Created on May 15, 2017 6:52:35 AM by  Stephan Linke [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.