What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Rest/XML Sensor Error: Der Ausdruck muss in einem Knotensatz resultieren.

Votes:

0

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?

prtg sensor xml-rest

Created on May 25, 2016 9:05:23 AM



9 Replies

Votes:

0

Can you try configuredState ?

Created on May 25, 2016 9:10:18 AM by  Stephan Linke [Paessler Support]



Votes:

0

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

Node configuredState not found in xml result

Created on May 25, 2016 9:14:41 AM



Votes:

0

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

Created on May 25, 2016 9:19:03 AM by  Stephan Linke [Paessler Support]

Last change on May 25, 2016 9:19:14 AM by  Stephan Linke [Paessler Support]



Votes:

0

no success!

Node configuredState not found in xml result.

Created on May 25, 2016 9:23:39 AM



Votes:

0

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

Created on May 25, 2016 9:35:52 AM by  Stephan Linke [Paessler Support]



Votes:

0

16.2.24.3792

Created on May 25, 2016 9:38:41 AM



Votes:

0

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

Created on May 25, 2016 9:41:37 AM by  Stephan Linke [Paessler Support]



Votes:

0

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?

Created on May 25, 2016 10:09:10 AM



Votes:

0

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

Created on May 25, 2016 10:24:10 AM by  Stephan Linke [Paessler Support]




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.