No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Sensu plugins for hipchat
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.5
~> 3.2
~> 3.4
~> 0.51.0
~> 0.9.11

Runtime

= 2.7.0
= 1.5.1
 Project Readme

Sensu-Plugins-hipchat

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

Files

  • bin/handler-hipchat.rb

Usage

{
  "hipchat": {
    "apikey": "1234abcdefg1234abcdefg",
    "apiversion": "v1",
    "room": "Ops",
    "from": "Sensu",
    "message_template": "optional message template erb file path - /some/path/to/template.erb",
    "message_format": "html"
  }
}

Installation

Installation and Setup

Notes

message_template example

<%=
[
  @event["action"].eql?("resolve") ? "RESOLVED" : "ALERT",
  " - [#{event_name}]<br>",
  "command: #{@event['check']['command']}<br>",
  "occurrences: #{@event['occurrences']}<br>",
  @event["check"]["notification"] || @event["check"]["output"],
  "<br>",
  playbook,
].join
%>

How to test?

  1. Write a configuration file as explained in the Usage section
  2. Set the environment variable SENSU_CONFIG_FILES to the location of this file
  3. Pipe a sample check result into the handler itself:
cat <<EOF | bundle exec bin/handler-hipchat.rb
{
  "client": {
    "name": "client"
  },
  "check": {
    "status": 1,
    "name": "name",
    "source": "source",
    "output": "Hello, warning",
    "hipchat_room": ["general","important"]
  }
}
EOF