Posts Tagged ‘aim’

Using a ruby-based AIM notifier in nagios

If you use nagios for monitoring of your rails instances, you might want to get notification not only via email or SMS-messages but to your AIM when you are online. The script (libexec/aim_notifier.rb) utilizes the Net::TOC gem for sending out notifications:

#!/usr/bin/env ruby

require ‘rubygems’
require ‘net/toc’

user = ‘your_bot_name’
password = ‘bot_password’

msg = ARGV[0].to_s.gsub(‘\n’, [...]