New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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


Get warnings and errors with api

Votes:

0

Your Vote:

Up

Down

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 by  Dennishansen (0) 1



5 Replies

Votes:

3

Your Vote:

Up

Down

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 by  Jens Tore Fremmegaard (719) 3 1



Votes:

3

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (12,885) 3 4



Votes:

0

Your Vote:

Up

Down

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

Created on Aug 14, 2014 12:26:17 PM by  Dennishansen (0) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Aug 14, 2014 1:35:31 PM by  PRTG Tools Family [prtgtoolsfamily.com] (12,885) 3 4



Votes:

0

Your Vote:

Up

Down

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 by  Jens Tore Fremmegaard (719) 3 1



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.