Created
January 11, 2010 22:48
-
-
Save edouard/274692 to your computer and use it in GitHub Desktop.
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
# in /etc/munin/munin.conf | |
contacts campfire | |
contact.campfire.command | /web/scripts/alerts /web/scripts/alerts | |
contact.campfire.always_send warning critical |
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 | |
# a quick script to paste Munin alerts on Campfire | |
require 'rubygems' | |
require 'tinder' | |
campfire_url = 'something' | |
campfire_login = 'person@email.com' | |
campfire_password = 'sekret' | |
campfire_room = 'Talk' | |
campfire = Tinder::Campfire.new campfire_url | |
campfire.login(campfire_login, campfire_password) | |
room = campfire.find_room_by_name(campfire_room) | |
for line in $stdin | |
room.speak line | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment