cvs: php-master-web /scripts mirror-test

[email protected] ("Hannes Magnusson")
Newsgroups php.webmaster
Message-ID <cvsbjori1228725802@cvsserver>
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(
+        "[email protected]",
+        "[CRITICAL] Mirror site updates failure",
+        "$mirrorsupdated mirror sites properly updated (out of " . count($hosts) . ")\n\nProblematic mirrors:\n\n" . $problems
+    );
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.