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

Using XML Value Sensor for multiple values

Votes:

0

In the following XML I am trying to monitor both member values: <response status="success"><result> <member>880</member> <member>2793</member> </result></response>

If I use member or member or result/member I can always get the first value but never the second. If I set the sensor to monitor the number of occurrences it registers two, but when I switch it back to use the value it one sees the value of the first member.

multiple-values xml xpath

Created on Sep 22, 2014 10:30:24 PM



1 Reply

Votes:

2

Hi,

You can use a regular expression for the node value.

In your case

//member[2]

will do the trick.

Created on Sep 23, 2014 7:35:35 AM




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.