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
- Host: GitHub
- URL: https://github.com/sensu-plugins/sensu-plugins-hipchat
- Owner: sensu-plugins
- License: mit
- Created: 2015-02-09T01:18:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T21:40:14.000Z (about 5 years ago)
- Last Synced: 2024-11-10T02:23:46.765Z (over 1 year ago)
- Topics: alerting, hipchat, sensu-handler, sensu-plugins
- Language: Ruby
- Homepage: http://sensu-plugins.io
- Size: 62.5 KB
- Stars: 1
- Watchers: 11
- Forks: 16
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Sensu-Plugins-hipchat
[ ](https://travis-ci.org/sensu-plugins/sensu-plugins-hipchat)
[](http://badge.fury.io/rb/sensu-plugins-hipchat)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-hipchat)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-hipchat)
[](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 <