Skip to content

DessaiImrane/shinken-ticketer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

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%