cvs: php-master-web /scripts mirror-test
| From: | Hannes Magnusson | Date: | Mon, 08 Dec 2008 08:43:22 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-3257@lists.php.net to get a copy of this message | ||
bjori Mon Dec 8 08:43:22 2008 UTC
Modified files:
/php-master-web/scripts mirror-test
Log:
Send mail when bunch of mirrors fail
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.104&r2=1.105&diff_format=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.104 php-master-web/scripts/mirror-test:1.105
--- php-master-web/scripts/mirror-test:1.104 Sun Nov 30 18:17:40 2008
+++ php-master-web/scripts/mirror-test Mon Dec 8 08:43:21 2008
@@ -341,4 +341,12 @@
"$mirrorsupdated mirror sites properly updated (out of " . count($hosts) .
")\n\nProblematic mirrors:\n\n" . $problems
);
}
+// If less then 70 mirrors updated there is something severly wrong. mail it.
+if ($mirrorsupdated < 70) {
+ @mail(
+ "php-webmaster@lists.php.net",
+ "[CRITICAL] Mirror site updates failure",
+ "$mirrorsupdated mirror sites properly updated (out of " . count($hosts) .
")\n\nProblematic mirrors:\n\n" . $problems
+ );
+}