title: no such file to load -- sensu-handler
body: <p>Just getting started with Sensu and running into the following error trying to test out a handler:</p>
  
  <pre><code>/etc/sensu/handlers$ ./hipchat.rb
  /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sensu-handler (LoadError)
  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
  from ./hipchat.rb:4
  </code></pre>
  
  <p>The handler is the <a href="https://github.com/sensu/sensu-community-plugins/blob/master/handlers/notification/hipchat.rb" rel="nofollow">Hipchat handler from Github</a>. I have the handler hipchat.rb and hipchat.json in the same directory (/etc/sensu/handlers) with the API key and room set up, but no messages appear there when I deliberately trigger a critical error that should fire:</p>
  
  <pre><code> {"timestamp":"2014-07-15T22:32:38.936944+0000","level":"info","message":"handling event","event":{"client":{"name":"foo.bar.com","address":"10.101.105.41","subscriptions":["test","webservers","base"],"timestamp":1405463543},"check":{"handlers":["default","hipchat"],"command":"/etc/sensu/plugins/check-procs.rb -p cron -C 1 ","interval":60,"subscribers":["webservers"],"name":"cron_check","issued":1405463558,"executed":1405463558,"output":"CheckProcs CRITICAL: Found 0 matching processes; cmd /cron/\n","status":2,"duration":0.571,"history":["0","0","0","0","0","0","0","0","0","2","2","2","2","2","2","2","2","2","2","2","2"]},"occurrences":12,"action":"create"},"handler":{"type":"pipe","command":"cat","name":"stdout"}}
  
   $ which -a ruby
   /usr/bin/ruby
   $ which gem
   /usr/bin/gem
   $ ruby --version
   ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
   $ lsb_release -a
   Description:   Ubuntu 10.04.4 LTS
   Codename:  lucid
  </code></pre>
  
  <p>Sensu seems to be running happily otherwise.  If I set EMBEDDED_RUBY=true and run</p>
  
  <pre><code>$ /opt/sensu/embedded/bin/ruby hipchat.rb
  </code></pre>
  
  <p>I get no output, but when I quit ruby I get:</p>
  
  <pre><code>^C/opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-plugin-0.3.0/lib/sensu-plugin/utils.rb:23:in `read': Interrupt
  from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-plugin-0.3.0/lib/sensu-plugin/utils.rb:23:in `read_event'
  from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-plugin-0.3.0/lib/sensu-handler.rb:53:in `block in &lt;class:Handler&gt;'
  /opt/sensu/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require': cannot load such file -- hipchat (LoadError)
  from /opt/sensu/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require'
  from hipchat.rb:5:in `&lt;main&gt;'
  </code></pre>
  
  <p>Obviously, Ruby isn't my first language.<br>
  What do I need to do to get Ruby to find/use sensu-handler?</p>
  
  <p>EDIT:</p>
  
  <p>Noticed this in the sensu server logs, too:</p>
  
  <pre><code> {"timestamp":"2014-07-15T23:33:17.827369+0000","level":"info","message":"handler output","handler":{"type":"pipe","command":"/etc/sensu/handlers/hipchat.rb","severities":["critical","ok"],"name":"hipchat"},"output":"/opt/sensu/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require': cannot load such file -- hipchat (LoadError)\n"}
  </code></pre>
  
  <p>What file is hipchat.rb referring to when it's trying to require 'hipchat' on line 5? hipchat.json?</p>