New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


Need to extract XML data

Votes:

0

Your Vote:

Up

Down

I cannot figure out how to get the <hits> values from the following XML using the XML/REST sensor. I tried "webconnectionconfig comservers server hits" but I'm just getting errors:

<webconnectionconfig>
<version>Web Connection 5.42 (ISAPI)</version>
<inifile>...</inifile>
<template>int_</template>
<scripttimeout>300</scripttimeout>
<temppath>c:\inetpub\wwwroot\interlightwebsite\app\temp\</temppath>
<adminaccount/>
<messagingmechanism>COM</messagingmechanism>
<comserverloading>Sequential</comserverloading>
<comkeepalive>Force</comkeepalive>
<holdrequests>RUNNING</holdrequests>
<lockcount>-1</lockcount>
<recursioncount>0</recursioncount>
<spincount>0</spincount>
<comservers>
<server>
<progid>interlightapp.InterlightappServer</progid>
<hits>14230</hits>
<currentseconds>0</currentseconds>
<cumulativeseconds>3734</cumulativeseconds>
<started>2012-03-04T22:18:00</started>
<processid>7828</processid>
<serverid>0</serverid>
<terminationurl>/admin/wc.wc?_maintain~KILL~0</terminationurl>
</server>
<server>
<progid>interlightapp.InterlightappServer</progid>
<hits>3319</hits>
<currentseconds>0</currentseconds>
<cumulativeseconds>1320</cumulativeseconds>
<started>2012-03-04T22:18:00</started>
<processid>5224</processid>
<serverid>1</serverid>
<terminationurl>/admin/wc.wc?_maintain~KILL~1</terminationurl>
</server>
<server>
... etc

TIA

node rest xml

Created on Mar 5, 2012 6:02:28 PM by  Michael Hogan (0) 1

Last change on Mar 6, 2012 2:49:09 PM by  Torsten Lindner [Paessler Support]



3 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Hello,

please try:

//server[serverid='1']/hits

If you want the hits from one certain serverid (fitered), or

//server/hits

if you want the first hist-filed of the XML-Document.

best regards.

Created on Mar 6, 2012 3:16:49 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Perfect! Thanks! Is there a way for me to show all 4 'hit' values as different 'channels' so they all show up on one sensor? That is, to show all 'hits' values in the xml in the same sensor?

Created on Mar 6, 2012 3:59:16 PM by  Michael Hogan (0) 1



Votes:

0

Your Vote:

Up

Down

Sorry, that would require for such sensors, each filtering for a different server ID.

Created on Mar 6, 2012 5:51:42 PM by  Torsten Lindner [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.