Skip to content

DessaiImrane/shinken-ticketer

This branch is 1 commit ahead of mikeder/shinken-ticketer:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b9d4b09 · Jan 23, 2017

History

10 Commits
Mar 1, 2015
Jan 23, 2017
Mar 1, 2015

Repository files navigation

Shinken Ticketer

  • Creates new incident tickets in ServiceNow for Shinken alarms.

  • Utilizes a sqlite database for ticket tracking.

  • Resolves incidents and removes ticket info from database when alarm clears.

  • Doesn't actually work yet.

Installation:

Clone repo to Shinken installation directory:

$ git clone http://github.com/mikeder/shinken-ticketer

Set script as executable:

$ chmod +x ticketer.py

Create symlink for calling script:

$ ln -s /shinken-ticketer/ticketer.py /usr/bin/ticketer

Shinken Command to use this script:

define command {
    command_name    ticketer
    command_line    /usr/bin/ticketer --type $NOTIFICATIONTYPE$ --host
    $HOSTNAME$ --addr $HOSTADDRESS$ --srvc $SERVICEDESC --output
    $SERVICEOUTPUT$ --state $SERVICESTATE$
  }

TODO:

  • Finish ticket generation function (some fields do not populate correctly)
  • Add a list of mission critical systems, if they experience a problem alert set impact/urgency of ticket higher (P2)
  • Build ticket resolution function
  • Add comment with URL to shinken web ui
  • Handle recovery
  • What about flapping ?
  • Auto Init DB if not exists

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%