Skip to main content

python icinga2 api

Project description

1. basic auth
2. objects(zone support)
3. actions
4. events
5. status

1. cert auth
2. Configuration Management

from icinga2api.client import Client
client = Client('https://localhost:5665','username','passowrd')

#list host
filters = {
"attrs" : ["name", "address"],

#create host
config = {
"templates": [ "generic-host" ],
"attrs": {
"address": "",
'vars.os': 'Windows',
'': {'ports': [3306, 3307]},
'zone' : 'Zone1',
print client.objects.create('hosts','test1',config)

**read source commentary for more examples.**

Project details

Download files

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

Files for python-icinga2api, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size python-icinga2api-0.1.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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