Last active
August 29, 2015 14:10
-
-
Save spuder/a3392d2d7e749522a5e4 to your computer and use it in GitHub Desktop.
Sensu Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api": { | |
"port": 4567, | |
"host": "localhost" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"client": { | |
"name": "sensufun.vapor2.ac", | |
"address": "localhost", | |
"subscriptions": [ "ALL" ] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This file managed by Puppet | |
% Template Path: rabbitmq/templates/rabbitmq.config | |
[ | |
{rabbit, [ | |
{default_user, <<"guest">>}, | |
{default_pass, <<"guest">>} | |
]}, | |
{kernel, [ | |
]} | |
]. | |
% EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rabbitmq": { | |
"host": "localhost", | |
"port": 5672, | |
"vhost": "/sensu", | |
"user": "sensu", | |
"password": "correct-horse-battery-staple" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"redis": { | |
"port": 6379, | |
"host": "localhost" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ".*" ".*" ".*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sensu": [ | |
{ | |
"name": "Herpderp", | |
"host": "localhost", | |
"port": 4567, | |
"path": "", | |
"timeout": 5000 | |
} | |
], | |
"uchiwa": { | |
"port": 3000, | |
"stats": 10, | |
"refresh": 10000 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: This doesn't have any protection on the API. The user and password should be added to api.json and uchiwa.json