Translated = The expression must result in a node"

I have a rest interface which give the following json output

{"configuredState":"STARTED","realTimeState":"STARTED"}

I have tried unsuccessfully to set up a HTTP XML/REST Sensor.

My parameters are: URL: the url which delivers json output XML-Node: /configuredState

I have tried without the backslash also to no avail.

How do I configure a sensor to show OK when the configuredState = STARTED and ERROR when = STOPPED?


Article Comments

Can you try configuredState ?


May, 2016 - Permalink

As I mentioned....I tried configuredState without the backslash and the error was

Node configuredState not found in xml result


May, 2016 - Permalink

Argh, sorry :D I meant //configuredState It got formatted in italic due to the double backslash.


May, 2016 - Permalink

no success!

Node configuredState not found in xml result.


May, 2016 - Permalink

Just tried the same JSON with pastebin and it works fine. What PRTG version are you running?


May, 2016 - Permalink

16.2.24.3792


May, 2016 - Permalink

Is it possible that the page requires a login or something like that?


May, 2016 - Permalink

I have just managed to get it working with a token generated for the prtg server. In "Message" I can now see "Node configueredState holds value STOPPED" - but the sensor is green. How can I now configure the sensor to show error when value = STOPPED and OK when STARTED?


May, 2016 - Permalink

That won't work, but you can make the sensor trigger a change notification once the value changes within the sensor options :)


May, 2016 - Permalink