Code Monkey home page Code Monkey logo

pd-centreon-connector's Introduction

pd-centreon-connector

Propagate ACKs from PagerDuty to Centreon.

This is a reimplementation of pd-nag-connector in PHP, targeting Centreon, with additional features.

Features

Support for multi-poller architecure

By using Transatel/api-centreon-notification-helper, we can send acks / unacks to any service even in a multi-poller architecure.

Multi-API version support

The code is compatible with both PagerDuty Webhooks API v1 and v2.

User and channel in ACK message

The username as well as the channel (website or mobile) will be extracted from the webhook request and used to compose the ack message in Centreon:

Acknowledged by <USER> (via PagerDuty - <CHANNEL>)

Loop prevention

Before ack'ing / deack'ing, we test the state the service / host to ensure that we don't trigger a loop in case of a bi-directional integration between Centreon and PagerDuty.

Configuration

The configuration is at the top of the pagerduty.php file.

Here is the bare minimum you need to configure:

Key Description
NOTIF_HELPER_API_URL URL to access Transatel/api-centreon-notification-helper

Additionally, you can play with the following:

Key Description
UNACK_ON_RESOLVE If true unacks when receiving an incident.resolve
IS_STICKY Does ack stay on status change. Either NAGIOS_STICKY_YES or NAGIOS_STICKY_NO
DO_NOTIFY Do we notify on ack. Either NAGIOS_NOTIFY_YES or NAGIOS_NOTIFY_NO
IS_PERSISTENT Is ack persistent bewteen poller reboots. Either NAGIOS_PERISTENT_YES or NAGIOS_PERISTENT_NO
DEFAULT_ACK_USERNAME Fallback username to put in ACK message

pd-centreon-connector's People

Contributors

p3r7 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.