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

API returning invalidXML



Hello all,

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


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></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.


ajax-web prtg xml-response

Created on Jun 21, 2020 7:41:53 AM

1 Reply

Accepted Answer



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:

Kind regards,
Matthias Kupfer - Team Tech Support

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