Skip to main content

Support library for API access.

Project description

Access the API – Python version

Getting Started

If you have setuptools installed, to install the Panl API, type:

easy_install pypanl

Otherwise, unpack the distribution zipped tar-file, change directory to the newly created folder and type:

python install

For Windows, type: install

Create a Panl Monitor

  1. Visit to create an account. On the Monitors page, click +New Monitor.

  2. Configure the new monitor as follows:

    • Mode: on [the default]
    • Type -> Custom
    • Name: something mnemonic here, e.g. a server hostname
    • Error Action: Alert
    • Expected Time: Every 15 minutes
    • Overdue Action: Alert
    • on the Contacts tab tick Alerts for the appropriate device (email, SMS, etc.) and optionally add an SMS device if you need an immediate push alert, otherwise email will be okay
  3. Save

  4. click on the new monitor’s name (i.e. something mnemonic), scroll down and note the second line under the API Calls. It will look like this:

    You need to grab the Hash Code and the Access Key from this. The “Hash Code” is the six-character string (also provided on the Edit Monitor page), and the “Access Key” is the longer hex string.

Example Usage

Monitor a local RADIUS server by authenticating a test user:

monitor_hash = 'aWfBto'
monitor_key = '6776cd9166e2c9a545e258a7e725f64e'

import panl.custom, panl.utility

ok = panl.utility.radius_auth('localhost', 'xyz123', 'fakeuser', 'abcd17')
panl.custom.update(monitor_hash, monitor_key, 1, ok)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypanl-0.1.dev5.tar.gz (11.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page