Coder Social home page Coder Social logo

chrisgagne / pagerduty-opennms Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 101 KB

PagerDuty-OpenNMS is a script run by OpenNMS that calls the PagerDuty Integration API to create incidents with curl.

License: GNU Affero General Public License v3.0

Shell 100.00%

pagerduty-opennms's Introduction

PagerDuty-OpenNMS

PagerDuty-OpenNMS is a script run by OpenNMS that calls the PagerDuty Integration API with curl.

Configuration

The configuration itself is not overly complex:

  1. Place the attached script in $OPENNMS_HOME/contrib/pagerduty
  2. Change the API key from “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX” to the proper Service API Key (see below for instructions on how to add a service.)
  3. Make the script executable
  4. Add a notification command to $OPENNMS_HOME/etc/notificationCommands.xml calling the script. (There is an example in the script header)
  5. Restart OpenNMS and Log in
  6. Navigate to Admin->Configure Notifications->Destination Paths
  7. Select and Escalation and click “Edit”
  8. Select a target and click “Edit”
  9. Click “Next” after selecting users or groups
  10. Change the command for the target user to “PagerDuty” and click "Next"
  11. Click “Finish”

Adding OpenNMS as a service in PagerDuty

  1. Click "Services" in the menu bar.
  2. Click "+ Add New Service"
  3. Name your service and select an Escalation Policy
  4. Select "Use our API directly"
  • Note: When using this script, do not specify OpenNMS under "Select a Tool." This will create an email-based integration--and thus fail to generate a Service API Key--because neither PagerDuty nor OpenNMS officially support this script.

Credit and License

This script was written by and provided courtesy of Kevin Sonney (ksonney) and is ©2014, Kevin Sonney. It is licensed under the AGPLv3.

pagerduty-opennms's People

Stargazers

 avatar Christopher Eckhardt avatar Jeff Emershaw avatar Josh Duffek avatar Gary Wright avatar Jesse White avatar

Watchers

James Cloos avatar

Forkers

mattdsd postilion

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.