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

Can PTF.XMLValue be improved?

Votes:

0

It would increase the value of the sensor quite a bit in our environment, if it could

a) allow for username and password in the URL (e.g. http://user:[email protected]). At the moment it seems to ignore it and returns "Unauthorized"

b) Instead of just nodename, allow for xpath type of syntax (e.g. NodeName[contains(name,"test")]/SessionsTotal). In my case I have XML output with many nodes with the same name and no properties, that are distinguished from each other by they child node values only.

Thank you for a fantastic product! Alex

custom rest xml

Created on Feb 4, 2011 10:37:36 AM



1 Reply

Accepted Answer

Votes:

0

Hi Alex,

a) You can put anything in the URL that you like, including username and password, but the server that you query has to support the POST message that you are sending. So simply putting a username and password in a URL will not work. Also keep in mind that any POST message has to be URL-encoded

b) Actually, the node name is parsed as XPath query. The sensor sub fixes the node name with '//' and uses the resulting string as XPath query.

So using:

-n=book/Title[contains(.,'PRTG')]

will result in a XPath query:

//book/Title[contains(.,'PRTG')]

that returns all book titles that contain the word PRTG

Gerard

Created on Feb 4, 2011 4:25:35 PM

Last change on Feb 15, 2011 12:40:10 PM by  Daniel Zobel [Product Manager]




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.