How can I use the PRTG Application Programming Interface (API)?

Up

1

Down

I want to write my own scripts or programs using PRTG's RESTful API, custom sensors, custom notifications and website styling.

  • What are the functionalities provided?
  • Where can I get a full description of the API?
  • What can I do with it and how can I use the API?

api docu

api css custom-exe custom-notification custom-sensor important prtg script web-interface

Created on Feb 5, 2010 2:47:46 PM by  Daniel Zobel [Paessler Support] (9,594) 3 3

Last change on Aug 12, 2010 11:13:18 AM by  Daniel Zobel [Paessler Support] (9,594) 3 3


1 Reply

Accepted Answer

Up

1

Down

This article applies to PRTG Network Monitor 7.2

Introduction to the PRTG API Interface

Users can customize and extend the functionality of PRTG Network Monitor using the following options:

  • HTTP API: Access monitoring data and manipulate monitoring objects using HTTP requests
  • Custom Sensors: Create your own sensors for customized monitoring
  • Custom Notifications: Create your own notifications to send alarms to external systems
  • Website Styling: Customize the look and feel by adding your own CSS statements

An Important Note About Technical Support Regarding API Features

Working with PRTG's API can quickly become a technical challenge and it is no everyday tasks. In most cases the knowledge of an experienced software developer or web developer is required to work with the API. All API features described on this page as well as their usages are not covered by Paessler's usual next-business-day support. So please understand that it may take a few days to receive an answer to inquiries about API features from Paessler Support. In general we can not provide support for web design issues involving your own CSS and HTML.

HTTP API

This section will give you a brief overview over the functionalities of the API interface. For detailed instructions see the API documentation (section "Detailed HTTP API Documentation" below).

The PRTG HTTP API offers the following functionality:

  • Authentication, error handling and optional encryption
  • Functions for getting live object and status data as well as live graphs
  • Functions for getting historic sensor data and graphs
  • Functions for manipulating objects (e.g. edit, add, delete)

You can use it via simple HTTP GET requests (either HTTP or HTTPS). Sample Call:

http://yourserver/api/table.xml?content=sensortree

Detailed HTTP API Documentation

Please find a detailed documentation of all HTTP API functions in your PRTG Network Monitor installation. Login into the web interface and then select "Help | PRTG RESTful API" from the main menu. There, you will also find an interactive query builder.

You can also have a look at Paessler's PRTG demo installation's API documentation at https://prtg.paessler.com/api.htm?username=demo&password=demodemo


Please Note: Only the documentation that comes with your PRTG installation fits exactly the PRTG version you are running.

Custom Sensors

Custom sensors allow a number of monitoring tasks that go far beyond the standard sensor set to be performed. Apart from parameterized versions of SNMP, packet sniffer and NetFlow sensors you can create your own sensors using WQL (WMI Query Language) and by compiling an EXE file, using any Windows software development tool.

More details about Custom sensors:

Note: With PRTG custom sensors, you can use placeholders.

Custom Notifications

Custom notifications allow you to run any script or program as a notification. Connected with a trigger connected with a sensor's settings, you can initiate a desired action - even far beyond a notification itself. This is a powerful tool to react to specific situations in your network.

Among the possibilities are the following scenarios:

Note: With PRTG notifications, you can use placeholders.

Website Styling

PRTG users can use their own logos and/or corporate colors inside the AJAX GUI and HTML GUI web interface by adding their own HTML and CSS code to PRTG's website.

Among the possibilities are:

Created on Feb 5, 2010 3:01:46 PM by  Daniel Zobel [Paessler Support] (9,594) 3 3

Last change on May 5, 2010 8:30:56 AM by  Daniel Zobel [Paessler Support] (9,594) 3 3


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.

Top Tags


View all Tags

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