Skip to main content

Support library for Panl.com API access.

Project description

Access the Panl.com 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 setup.py install

For Windows, type:

setup.py install

Create a Panl Monitor

  1. Visit http://panl.com/ 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:

    https://api.panl.com/aWfBto?up=Yes&value=23&k=6776cd9166e2c9a545e258a7e725f64e

    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 details)

Uploaded Source

File details

Details for the file pypanl-0.1.dev5.tar.gz.

File metadata

  • Download URL: pypanl-0.1.dev5.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypanl-0.1.dev5.tar.gz
Algorithm Hash digest
SHA256 0c306b5d864f22a054305a6a7f22a54becdafa7eef63909eba4524d64ce0bdae
MD5 1eaf8b66d48884f13839648dbea1f91f
BLAKE2b-256 cbbeb988b07d23b3470230398afd73ba91b49175c9fe8af211b2f001d2d2f7a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page