Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/108042


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests 
refs/changes/42/108042/1

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 <q...@lists.wikimedia.org>
-To: Software quality <q...@lists.wikimedia.org>
-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, 'q...@lists.wikimedia.org',
-    'q...@lists.wikimedia.org'
-  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: newchange
Gerrit-Change-Id: I442330ccca602e1f385fa0eebdbb73091785b2fd
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to