Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuder/a3392d2d7e749522a5e4 to your computer and use it in GitHub Desktop.
Save spuder/a3392d2d7e749522a5e4 to your computer and use it in GitHub Desktop.
Sensu Configuration
{
"api": {
"port": 4567,
"host": "localhost"
}
}
{
"client": {
"name": "sensufun.vapor2.ac",
"address": "localhost",
"subscriptions": [ "ALL" ]
}
}
% This file managed by Puppet
% Template Path: rabbitmq/templates/rabbitmq.config
[
{rabbit, [
{default_user, <<"guest">>},
{default_pass, <<"guest">>}
]},
{kernel, [
]}
].
% EOF
{
"rabbitmq": {
"host": "localhost",
"port": 5672,
"vhost": "/sensu",
"user": "sensu",
"password": "correct-horse-battery-staple"
}
}
{
"redis": {
"port": 6379,
"host": "localhost"
}
}
#!/bin/bash
/usr/sbin/rabbitmqctl add_vhost /sensu
/usr/sbin/rabbitmqctl add_user sensu correct-horse-battery-staple
/usr/sbin/rabbitmqctl set_user_tags sensu administrator
/usr/sbin/rabbitmqctl set_permissions -p /sensu sensu ".*" ".*" ".*"
{
"sensu": [
{
"name": "Herpderp",
"host": "localhost",
"port": 4567,
"path": "",
"timeout": 5000
}
],
"uchiwa": {
"port": 3000,
"stats": 10,
"refresh": 10000
}
}
@spuder
Copy link
Author

spuder commented Dec 1, 2014

Note: This doesn't have any protection on the API. The user and password should be added to api.json and uchiwa.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment