Hi
How can I show all warnings and errors via the API?
We would like to build our own dashboard with multiply sources - and our prtg so own of them.
Regards
Dennis
Article Comments
Hi Dennis,
The /api.htm?tabid=3 page of your PRTG installation shows an example of how to accomplish this.
All sensors that are not up (with their current state and downtime information):
/api/table.xml? content=sensors&columns=objid,downtimesince,device,sensor,lastvalue,status,message,priority&filter_status=5&filter_status=4&filter_status=10&filter_status=13&filter_status=14&sortby=priority
Aug, 2014 - Permalink
Hello
First, you should create a password hash with the command:
"http://yourserver/api/getpasshash.htm?username=myuser&password=mypassword"
Then you could add "&username=myuser&passhash=hash" to your URL
---------------------------------------------
Jens Tore Fremmegaard, ServerParkering AS
Paessler Certified Monitoring Professional
Aug, 2014 - Permalink
Hello
There are different possibilities depending on what format you want your output to be in.
For standard HTML output you would use something like:
http(s):yourprtgsite/api/table.xml?content=sensors&output=html&columns=objid,group,device,sensor,status,message
If you look on http(s):yourptgsite/api.htm?tabid=3 under the heading "Getting property status of multiple objects" you will find several examples and even a query builder. Give it a try.
---------------------------------------------
Jens Tore Fremmegaard, ServerParkering AS
Paessler Certified Monitoring Professional
Aug, 2014 - Permalink