What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Your Vote:

Up

Down

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 by  robertdbuckley (0) 1



9 Replies

Votes:

0

Your Vote:

Up

Down

Can you try configuredState ?

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



Votes:

0

Your Vote:

Up

Down

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 by  robertdbuckley (0) 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

no success!

Node configuredState not found in xml result.

Created on May 25, 2016 9:23:39 AM by  robertdbuckley (0) 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

16.2.24.3792

Created on May 25, 2016 9:38:41 AM by  robertdbuckley (0) 1



Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  robertdbuckley (0) 1



Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.