sensu 邮件处理程序使用邮件 gem ruby

sensu mailer handler using mail gem ruby

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

我想我正面临端口问题,有没有人知道。

"output":["/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:inopen'\n\tfrom /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:inblock in do_start'\n\tfrom /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:indo_start'\n\tfrom /opt/sensu/embedded/lib/ruby/2.3.0/net/smtp.rb:521:in 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:indeliver!'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:2149:in do_delivery'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:239:indeliver'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/mail-2.6.4/lib/mail/mail.rb:141:in deliver'\n\tfrom /etc/sensu/handlers/handler-mailer.rb:233:inrescue in handle'\n\tfrom /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:inblock in '\n"]

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