使用邮件宝石红宝石的sensu邮件处理程序

时间:2016-10-19 15:55:01

标签: ruby-on-rails ruby centos smtp sensu

我正在使用sensu邮件处理程序遇到一些问题,请帮我解决这个问题

我认为我正面临港口问题,有没有人有任何想法。

  

"输出":[" /opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:542:in initialize': execution expired (Net::OpenTimeout)\n\tfrom /opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:542:in打开' \ n \ t来自/opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:542:in tcp_socket'\n\tfrom /opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:552:in阻止在do_start' \ n \ t来自/ opt / sensu / embedded / lib / ruby​​ / 2.3.0 / timeout.rb:101:in timeout'\n\tfrom /opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:551:in do_start' \ n \ t from /opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:521 :在start'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:113:in发送!' \ n \ t来自/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb: 2149:在do_delivery'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:239:in发送' \ n \ t来自/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/mail.rb:141 :在deliver'\n\tfrom /etc/sensu/handlers/handler-mailer.rb:233:in救援处理' \ n \ t来自/etc/sensu/handlers/handler-mailer.rb:218:in handle'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.3.0/lib/sensu-handler.rb:57:in阻止' \ n"]

1 个答案:

答案 0 :(得分:0)

终于找到了问题,防火墙阻塞了端口587。