Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

one more warning in case that crawling is paused because of low disk space

Michael Peter Christen4844e124b1d4
diff --git a/htroot/Status.html b/htroot/Status.html
index 30ff8123e..d6262629a 100644
--- a/htroot/Status.html
+++ b/htroot/Status.html
@@ -110,6 +110,12 @@
</dd>
#(/warningMemoryLow)#
+ #(warningCrawlPaused)#::
+ <dt class="hintIcon"><img src="env/grafics/bad.png" width="32" height="32" alt="bad"/></dt>
+ <dd class="hint">Crawling is paused! If the crawling was paused automatically, please check your disk space.
+ </dd>
+ #(/warningCrawlPaused)#
+
<!-- hints -->
#(hintVersionAvailable)#::
diff --git a/htroot/Status.java b/htroot/Status.java
index dab7ef8a6..bdea6a9cd 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -176,6 +176,10 @@ public class Status
prop.put("hintSupport", "1");
}
+ if (adminaccess && sb.crawlJobIsPaused(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL)) {
+ prop.put("warningCrawlPaused", "1");
+ }
+
// hostname and port
final String extendedPortString = sb.getConfig("port", "8090");
final int pos = extendedPortString.indexOf(':', 0);