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
Notes
message_template example
“%= [@eventaction.eql?(resolve) ? RESOLVED : ALERT, - #event_name, command: #@eventcheck, occurrences: #@eventoccurrences, @eventcheck || @eventcheck, , playbook,].join %>
“
How to test?
- Write a configuration file as explained in the Usage section
- Set the environment variable
SENSU_CONFIG_FILESto the location of this file - Pipe a sample check result into the handler itself:
“at «EOF | bundle exec bin/handler-hipchat.rb { “client”: { “name”: “client” }, “check”: { “status”: 1, “name”: “name”, “source”: “source”, “output”: “Hello, warning” } } EOF
“