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

Get warnings and errors with api

Votes:

0

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

api custom dashboard

Created on Aug 13, 2014 1:23:32 PM



5 Replies

Votes:

3

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

Created on Aug 14, 2014 7:00:30 AM



Votes:

3

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

Created on Aug 14, 2014 7:13:06 AM



Votes:

0

Perfect, how do I add a username and password in the URL?

Created on Aug 14, 2014 12:26:17 PM



Votes:

0

Please see the /api.htm?tabid=2 page under the section Authentication

Created on Aug 14, 2014 1:35:31 PM



Votes:

0

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

Created on Aug 14, 2014 1:35:56 PM




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.