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


Article Comments

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.


Mar, 2012 - Permalink

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?


Mar, 2012 - Permalink

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


Mar, 2012 - Permalink