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

Using XML Value Sensor for multiple values

Votes:

0

Your Vote:

Up

Down

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 by  Klueless (0) 1



1 Reply

Votes:

2

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (13,263) 3 4



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.