Skip to main content

unimonapi

Universal API for different monitoring systems: use built-in system types or extend with your own.

Currently supported API is Zabbix. But you can extend the package with any monitoring system you want.

Just imagine: universal API for every system!

Getting Started

Installing

To install the package simply run:

pip install unimonapi

Using

The unimonapi CLI is available just after installation:

zabbix_cli.py --help

Or of course you can use the package for coding:

from unimonapi import ZabbixAPI
api = ZabbixAPI('http://zabbix-web', 'Admin', 'zabbix')
for problem in api.get_problems():
    print problem

Extending

Extending the package is simple:

import requests
from unimonapi import MonitoringAPI
from unimonapi import Event

class MyMonAPI(MonitoringAPI):

    def __init__(self, url):
        self.url = url

    def get_problems(self, severities=None, groups=None):
        problems = []
        for p in requests.get(self.url).json():
            if severities is None or p['severity'] in severities:
                if groups is None or p['group'] in groups:
                    event = Event(Event.PROBLEM, True, p['severity'], p['host'], p['text'], p['id'])
                    problems.append(event)
        return problems

License

This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for unimonapi 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unimonapi 0.0.1
File Size Uploaded Provenance Actions
unimonapi-0.0.1.tar.gz 11.8 kB Without provenance Details for unimonapi-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unimonapi 0.0.1
File Interpreter ABI Platform Actions
unimonapi-0.0.1-py2-none-any.whl Python 2 none any Details for unimonapi-0.0.1-py2-none-any.whl

Total release size: 28.8 kB

Release files / unimonapi-0.0.1.tar.gz

Download URL unimonapi-0.0.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
223bbfdb7faa23d90b4d4fc189e39aae48edc44fe0af88924266beebcc96e8e8
BLAKE2b-256 checksum
How to use checksums
e9e49ca5a6bd1556b6ac248ac3c5bff8246537a789cda4af9ce2fb8711d71f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.5

Release files / unimonapi-0.0.1-py2-none-any.whl

Download URL unimonapi-0.0.1-py2-none-any.whl
Size 17.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
7c1c972c478e435e62163e05af7e1b74cba125d2d9cc43eabd3893c6c7874986
BLAKE2b-256 checksum
How to use checksums
7dff5af83df4a9905ab3eb1ca94820ef6e5ff3d9aa2fbacbb2418441a6db6b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.5

Security for unimonapi 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page