Hello,
I copied community/extensions/handlers/flapjack.rb to /etc/sensu/conf.d/
and added these line to my server.json config file
{
“flapjack”: {
“host”: “FLAPJACK_IP”,
“port”: 6380,
“db”: “0”
}
}
sensu-API and sensu-server services restarted without any problem.
sensu-server.log :
{“timestamp”:“2014-05-29T20:48:48.121135+0000”,“level”:“info”,“message”:“loaded extension”,“type”:“handler”,“name”:“flapjack”,“description”:“sends sensu events to the flapjack redis queue”}
But sensu-client did not start.
Here is the info in the sensu-client log file :
{“timestamp”:“2014-05-29T20:41:05.916694+0000”,“level”:“info”,“message”:“loaded extension”,“type”:“handler”,“name”:“flapjack”,“description”:“sends sensu events to the flapjack redis queue”}
{“timestamp”:“2014-05-29T20:41:05.916848+0000”,“level”:“info”,“message”:“loaded extension”,“type”:“handler”,“name”:“debug”,“description”:“outputs json event data”}
{“timestamp”:“2014-05-29T20:41:06.122522+0000”,“level”:“warn”,“message”:“reconnecting to rabbitmq”}
/etc/sensu/extensions/flapjack.rb:50:in `post_init’: uninitialized constant Sensu::Redis (NameError)
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.12.6/lib/sensu/extensions.rb:103:in `block in initialize’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:959:in `call’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:959:in `block in run_deferred_callbacks’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:956:in `times’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:956:in `run_deferred_callbacks’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.12.6/lib/sensu/client.rb:12:in `run’
from /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/sensu-0.12.6/bin/sensu-client:10:in `<top (required)>’
from /opt/sensu/bin/sensu-client:23:in `load’
from /opt/sensu/bin/sensu-client:23:in `’
Any idea ?
Tx