Skip to content

jelaFR/pycentreon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyCentreon

Introduction

This project helps users to deal with Centreon API v2.0 (released from 23.10) through python API calls. It is derived from the PyNetbox SDK (thanks @netbox-community for their work) on 04/2024 and adapted to Centreon.

Quick Start

To use this tool, you'll need to instantiate the API

import pycentreon

centreon_url = "https://centreon.domain.com/centreon"
username = 'ctn_username'
password = 'ctn_password'
ctn = pycentreon.api(centreon_url)
ctn.create_token(username, password)

Create Queries

Next you can play with hosts and services this way

# Create list of all hosts
existing_hosts = list(ctn.monitoring.hosts.all())

# Create list of all services
existing_services = list(ctn.monitoring.services.all())

About

Python API client library for Centreon.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages