Hi All,
I am using sensu-plugins-mailer to send emails out and configured .But the mails are not going out .Below the error log from Sensu-Server :
[root@sesnu-server conf.d]# tail -f /var/log/sensu/sensu-server.log | grep “handler output”
{“timestamp”:“2016-03-29T10:21:01.526454+0100”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:"/opt/sensu/embedded/bin/handler-mailer.rb",“name”:“mailer”},“output”:[“only handling every 5 occurrences: internal._inf1.sensuclient.graphite/sensuclientgraphite\n”]}
{“timestamp”:“2016-03-29T10:21:03.490819+0100”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:"/opt/sensu/embedded/bin/handler-mailer.rb",“name”:“mailer”},“output”:["/opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugins-mailer-0.2.0/bin/handler-mailer.rb:132:in build_body': undefined method
’ for nil:NilClass (NoMethodError)\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugins-mailer-0.2.0/bin/handler-mailer.rb:160:in handle'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:55:in
block in class:Handler’\n"]}
{“timestamp”:“2016-03-29T10:21:05.473421+0100”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:"/opt/sensu/embedded/bin/handler-mailer.rb",“name”:“mailer”},“output”:[“only handling every 5 occurrences: internal._inf1.sensuclient.graphite/sensuclientgraphite\n”]}
{“timestamp”:“2016-03-29T10:21:07.479930+0100”,“level”:“info”,“message”:“handler output”,“handler”:{“type”:“pipe”,“command”:"/opt/sensu/embedded/bin/handler-mailer.rb",“name”:“mailer”},“output”:["only handling every 5 occurrences: internal._inf1.sensuclient.
Please suggest where I am getting wrong.
Thanks in advance