New Question
 
 
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 PRTG
Download >>

 

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

 

Top Tags


View all Tags


API returning invalidXML

Votes:

0

Your Vote:

Up

Down

Hello all,

I am using PRTG API to get all the Sensors With Alarms. I am calling it from my PHP application via AJAX.

https://MYSERVER/api/table.xml?id=0&filter_status=13&username=username&passhash=00000000

I am getting following response

status : OK Error Text Status : parsererror Error Thrown : Error: Invalid XML: <?xml version="1.0" encoding="UTF-8"?> < totalcount="1" listend="1"> <prtg-version>20.1.55.1775</prtg-version> <item> <group>Network Access Storage (NAS)</group> <device>nvnas01</device> <sensor>Disk Free: /volume2</sensor> <status>Down (Acknowledged) </status> <status_raw>13</status_raw> </item> </>

Can someone please help.

Thanks

ajax-web prtg xml-response

Created on Jun 21, 2020 7:41:53 AM by  deepak_sharma (0) 1



1 Reply

Accepted Answer

Votes:

1

Your Vote:

Up

Down

You have to use the parameter "content" in your query to get a valid output. Please use one of the following values for this paramenter: sensortree (JSON output not supported), devices, sensors, tickets, ticketdata, messages, values, channels, reports, storedreports, toplists

Also take a look at the API documentation included in the PRTG web-interface at:
$YOUR-PRTG-SERVERapi.htm?tabid=3#toc-index-5


Kind regards,
Matthias Kupfer - Team Tech Support

Created on Jun 23, 2020 6:34:58 AM by  Matthias Kupfer [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.