Cmcmahon has submitted this change and it was merged. Change subject: migrate monitor_fatals.rb to puppet repo ......................................................................
migrate monitor_fatals.rb to puppet repo I have moved the monitor_fatals.rb script under puppet so we can get it installed on the beta cluster and harnessed with an hourly cronjob. See also puppet change https://gerrit.wikimedia.org/r/108039 Change-Id: I442330ccca602e1f385fa0eebdbb73091785b2fd --- D monitoring/monitor_fatals.rb 1 file changed, 0 insertions(+), 26 deletions(-) Approvals: Cmcmahon: Looks good to me, approved Zfilipin: Looks good to me, but someone else must approve diff --git a/monitoring/monitor_fatals.rb b/monitoring/monitor_fatals.rb deleted file mode 100644 index 0ba041e..0000000 --- a/monitoring/monitor_fatals.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'net/smtp' - -fatals_file="/data/project/logs/fatals.log" -seconds_since_last_run=3600 - -def send_email - message = <<MESSAGE_END -From: Beta fatals <[email protected]> -To: Software quality <[email protected]> -Subject: New fatal errors on beta labs - - The file at /data/project/logs/fatal.log on the deployment cluster has a new entry within the last hour. You should check it out. -MESSAGE_END - - Net::SMTP.start('mchenry.wikimedia.org') do |smtp| - smtp.send_message message, '[email protected]', - '[email protected]' - end -end - -if File.exist?(fatals_file) - last_modified_time=File.mtime(fatals_file) - if Time.now.to_i - last_modified_time.to_i < seconds_since_last_run - send_email - end -end -- To view, visit https://gerrit.wikimedia.org/r/108042 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I442330ccca602e1f385fa0eebdbb73091785b2fd Gerrit-PatchSet: 2 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Hashar <[email protected]> Gerrit-Reviewer: Cmcmahon <[email protected]> Gerrit-Reviewer: Hashar <[email protected]> Gerrit-Reviewer: Jhall <[email protected]> Gerrit-Reviewer: Zfilipin <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
