How can I get the 'value' for 'RecentRequestsPerSecond' using XPath on the XML below using the HTTP XML/REST Value sensor?
<xxxxresponse> <action>GETSTATISTICS</action> <response>Success</response> <responsedata xmlns:x="http://schemas.xxxxxxxx.com/xxx/"> <xxxx:stat class="Service" xxxxid="Statistics" name="RecentResponseAverage" metric="9" value="1"/> <xxxx:stat class="Service" xxxxid="Statistics" name="RecentRequestsPerSecond" metric="3" value="0.2"/> <xxxx:stat class="Service" xxxxid="Statistics" name="RecentPeakRequestsPerSecond" metric="3" value="0.8"/> <xxxx:stat class="Service" xxxxid="Statistics" name="RecentRequests" metric="5" value="40"/> <xxxx:stat class="Service" xxxxid="Statistics" name="TotalRequests" metric="5" value="42935"/> </responsedata> </xxxxresponse>
I have validated the following will retrieve the value in an XPath validator, but it won't work for the HTTP XML/REST Value sensor. What am I doing wrong?
*[@name="RecentRequestsPerSecond"]/@value
Add comment