Bug #422 ยป 0001-Fixes-bug-422-broken-records-will-now-be-handled-cor.patch
app/models/report_observer.rb | ||
---|---|---|
# notify via email IF enabled is set to true
|
||
if report.host.disabled?
|
||
report.logger.warn "#{report.host} is disabled - skipping."
|
||
next
|
||
return
|
||
end
|
||
HostMailer.deliver_error_state(report) if SETTINGS[:failed_report_email_notification]
|
||
# add here more actions - e.g. snmp alert etc
|