Closed umsh1ume closed 6 years ago
example of notify: https://github.com/kostya/eye/blob/master/examples/notify.eye
try to change memory check to check :memory, every: 30, below: 1.megabytes, times: 5
, this 100% trigger restart and should send notify (also this would be in log).
Also i guess you set password, but not set user option (from_mail option not used for auth): options https://github.com/kostya/eye/blob/master/lib/eye/notify/mail.rb#L14
Also you can just try to manually execute code from https://github.com/kostya/eye/blob/master/lib/eye/notify/mail.rb, to check your email connection
Hi, thanks for replying. After reducing memory check to 1.megabytes, it does indeed trigger restart, but still no notification mails are being sent. I changed my config as you suggested
mail :host => "smtp.gmail.com", :port => 587, :user => "umeshmalhotra1995@gmail.com", :password => "xxxxx", :domain => "smtp.gmail.com"
contact :errors, :mail, "umeshmalhotra1995@gmail.com"
contact :dev, :mail, 'umeshmalhotra1995@gmail.com'
But I am getting this error
ERROR -- [celluloid] Actor crashed!
Net::SMTPAuthenticationError: 530 5.7.0 Must issue a STARTTLS command first. y85-v6sm47255353pfa.170 - gsmtp
Thanks in advance
Hi, I manually executed the code from https://github.com/kostya/eye/blob/master/lib/eye/notify/mail.rb , I ended up using :auth => :plain, :starttls => true
in my mail config and it worked.
Thanks
Sorry to put a question here. I was using eye to monitor my sidekiq, but I am not receiving notification mails. I know that most probably, my config syntax itself is wrong but I am not able to find a complete documentation or tutorial anywhere. Eye is monitoring fine and it restart sidekiq when I kill sidekiq process but its not sending email notification
Please help me in correcting my mistake