An open API service indexing awesome lists of open source software.

https://github.com/sensu-plugins/sensu-plugins-hipchat

Handlers for Hipchat
https://github.com/sensu-plugins/sensu-plugins-hipchat

alerting hipchat sensu-handler sensu-plugins

Last synced: 11 months ago
JSON representation

Handlers for Hipchat

Awesome Lists containing this project

README

          

## Sensu-Plugins-hipchat

[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-hipchat.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-hipchat)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-hipchat.svg)](http://badge.fury.io/rb/sensu-plugins-hipchat)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-hipchat/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-hipchat)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-hipchat/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-hipchat)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-hipchat.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-hipchat)

## 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](http://sensu-plugins.io/docs/installation_instructions.html)

## Notes

### message_template example

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

### How to test?

1. Write a configuration file as explained in the *Usage* section
1. Set the environment variable `SENSU_CONFIG_FILES` to the location of this file
1. Pipe a sample check result into the handler itself:
```
cat <