Update monitor.rb