I'm trying to extract the value of Queued in the xml below using the HTTP XML/REST Value sensor:
<xxxxresponse> <action>GETSTATISTICS</action> <response>Success</response> <responsedata xmlns:xxxx="http://schemas.xxxxxxxxxx.com/aci/"> <xxxx:stat class="Indexer" xxxxid="Queue" name="Received" metric="6" value="1665522"/> <xxxx:stat class="Indexer" xxxxid="Queue" name="Completed" metric="6" value="1665520"/> <xxxx:stat class="Indexer" xxxxid="Queue" name="Queued" metric="6" value="2"/> </responsedata> </xxxxresponse>
I've tried many variations of the following:
- xxxx:stat[@name='Queued']
- stat[@name='Queued'] - doesnt seem to work (with 'Remove namespaces')
- /stat[@Queued]
Am I using the correct sensor? If so, what is the correct syntax to pull out the value?
Thanks.
Hello,
Please have a look at the following articles, where this is explained:
- How do I extract values from XML nodes
- HTTP XML/REST Value Sensor
If you cannot solve it, please open a support ticket at support@paessler.com and send us screenshots of the sensor settings, so we can take a closer look.
Kind Regards,
Timo Dambach
Paessler Tech Support
Aug, 2020 - Permalink