- Public Github Repo with Packer VirtualBox templates for Fedora 19, 20
- Script capable of creating box, testing, and uploading to S3 on success (to be run via CI)
- Bare-bones Vagrantfile example
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
echo '{ | |
"handlers": ["debug"], | |
"name": "push_woot_test", | |
"output": "woot!", | |
"status": 0 | |
}' | nc -w1 127.0.0.1 3030 |
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
Executing 'journalctl --no-pager -a MESSAGE_ID=72395a954c4e4449921c42a5faab671c --since=-10minutes' Match: -- Logs begin at Thu 2016-03-03 02:42:33 UTC, end at Thu 2016-03-17 19:39:37 UTC. -- Ignoring: -- Logs begin at Thu 2016-03-03 02:42:33 UTC, end at Thu 2016-03-17 19:39:37 UTC. -- Match: Mar 17 19:32:20 endpoint091c557c.xhios.panth.io chef_solo_slow_converge[14314]: Orphaned binding detected: b517d0d6ad3d45f4b5eeba63be6f454a, this will cause slow convergence to eventually back up. Match: Mar 17 19:33:11 endpointac9c557c.xhios.panth.io chef_solo_slow_converge[14314]: Orphaned binding detected: 473199549e5844f097ae750c299837ec, this will cause slow convergence to eventually back up. CheckJournal WARNING: 2 matches found for .* in `journalctl --no-pager -a MESSAGE_ID=71395a954c4e4449921c42a5faab671c --since=-10minutes` (threshold 1) |
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
CheckJournal WARNING: 2 matches found for Orphaned binding in journal (warn 1/crit 10) | |
Orphaned binding detected: a417d0d6ad3d45f4b5eeba63be6f454a, this will cause slow convergence to eventually back up. | |
Orphaned binding detected: 473199549e5844f097ae750c299837ec, this will cause slow convergence to eventually back up. |
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
#!/usr/bin/env ruby | |
# | |
# Check Linux system load | |
# === | |
# | |
# Copyright 2012 Sonian, Inc <chefs@sonian.net> | |
# | |
# Released under the same terms as Sensu (the MIT license); see LICENSE | |
# for details. |
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
# For some reason, coffee appears to exit with | |
# non-zero status (1) when it recieves a SIGTERM | |
# by default. This doesn't play nice with process | |
# managers like systemd. This simple two-liner | |
# will allow your coffee scripts to exit cleanly. | |
process.on 'SIGTERM', -> | |
process.exit() |
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
{ | |
"handlers": { | |
"remediator": { | |
"type": "pipe", | |
"command": "/etc/sensu/handlers/remediator.rb" | |
}, | |
}, | |
"checks": { | |
"fail_with_remediation": { | |
"command": "/bin/false", |
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
{ | |
"checks": { | |
"noisy_queue_check": { | |
"handler": "default", | |
"command": "/etc/sensu/plugins/check-queue-length.rb", | |
"interval": 60, | |
"refresh": 60, | |
"occurrences": 10, | |
"subscribers": [ "workers" ], | |
"subdue" : { |
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
execute "say_hello_to_bob" do | |
command "echo 'hello again' >> /home/bob/hello.txt" | |
end |
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
wget http://jmxsh.googlecode.com/files/jmxsh-R5.jar | |
java -jar jmxsh-R*.jar -h localhost -p 7199 | |
% [Hit Enter to go into Browse Mode] | |
Select a domain: [Enter number for org.apache.cassandra.net] | |
Select an mbean: [Enter number for org.apache.cassandra.net:type=Gossiper] | |
Select an attribute or operation: [Enter number for unsafeAssassinateEndpoint(String p1)] | |
p1 (String): [Enter IP address of problem node] | |
It may also be possible to run it directly (untested): | |
% jmx_invoke -m org.apache.cassandra.net:type=Gossiper unsafeAssassinateEndpoint <STALE-IP-ADDRESS> |