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


Article Comments

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


Jun, 2020 - Permalink