--- foreman/app/models/report_observer.rb 2010-08-23 12:55:50.000000000 -0400 +++ report_observer.rb.modified 2010-08-23 18:35:37.000000000 -0400 @@ -3,8 +3,12 @@ begin if report.error? # found a report with errors - # notify via email - HostMailer.deliver_error_state(report) if SETTINGS[:failed_report_email_notification] + # notify via email IF enabled is set to true + if report.host.enabled? + HostMailer.deliver_error_state(report) if SETTINGS[:failed_report_email_notification] + else + report.logger.warn "#{report.host.name} is in downtime." + end # add here more actions - e.g. snmp alert etc end