Hitting "initialize': Connection refused - connect(2)" error while executing event handlers in sensu

Hi All,
I am getting below error , while executing event handlers.

I have configured to use embedded ruby instead of system ruby

I have generated self singed SSL certificates as per the sensu documentation .Any help would be greatly appreciated on this.

{“timestamp”:“2014-09-27T15:22:09.334031-0700”,“level”:“info”,“message”:“handler output”,“handler”:{“severities”:[“ok”,“warning”,“critical”,“unknown”],“type”:“pipe”,“command”:"/etc/sensu/handlers/logevent.rb",“name”:“logevent”},“output”:"/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:878:in `initialize’: Connection refused - connect(2) (Errno::ECONNREFUSED)\n"}

{“timestamp”:“2014-09-27T15:22:09.334416-0700”,“level”:“info”,“message”:“handler output”,“handler”:{“severities”:[“ok”,“warning”,“critical”,“unknown”],“type”:“pipe”,“command”:"/etc/sensu/handlers/logevent.rb",“name”:“logevent”},“output”:"\tfrom /opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:878:in `open’\n"}

{“timestamp”:“2014-09-27T15:22:09.334532-0700”,“level”:“info”,“message”:“handler output”,“handler”:{“severities”:[“ok”,“warning”,“critical”,“unknown”],“type”:“pipe”,“command”:"/etc/sensu/handlers/logevent.rb",“name”:“logevent”},“output”:"\tfrom /opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:878:in `block in connect’\n"}

I find the fix for it , it basically folder permission issue. issue resolved after changing the owner ship of /var/log/event folder to sensu user.

···

On Saturday, September 27, 2014 10:00:34 PM UTC-7, Suresh Emmanni wrote:

Hi All,
I am getting below error , while executing event handlers.

I have configured to use embedded ruby instead of system ruby

I have generated self singed SSL certificates as per the sensu documentation .Any help would be greatly appreciated on this.

{“timestamp”:“2014-09-27T15:22:09.334031-0700”,“level”:“info”,“message”:“handler output”,“handler”:{“severities”:[“ok”,“warning”,“critical”,“unknown”],“type”:“pipe”,“command”:“/etc/sensu/handlers/logevent.rb”,“name”:“logevent”},“output”:“/opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:878:in `initialize’: Connection refused - connect(2) (Errno::ECONNREFUSED)\n”}

{“timestamp”:“2014-09-27T15:22:09.334416-0700”,“level”:“info”,“message”:“handler output”,“handler”:{“severities”:[“ok”,“warning”,“critical”,“unknown”],“type”:“pipe”,“command”:“/etc/sensu/handlers/logevent.rb”,“name”:“logevent”},“output”:“\tfrom /opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:878:in `open’\n”}

{“timestamp”:“2014-09-27T15:22:09.334532-0700”,“level”:“info”,“message”:“handler output”,“handler”:{“severities”:[“ok”,“warning”,“critical”,“unknown”],“type”:“pipe”,“command”:“/etc/sensu/handlers/logevent.rb”,“name”:“logevent”},“output”:“\tfrom /opt/sensu/embedded/lib/ruby/2.0.0/net/http.rb:878:in `block in connect’\n”}