aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns_status.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-09 00:53:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-09 00:53:26 +0000
commit59d65a4615cda970ba0ce08368deaab537b0e59e (patch)
tree3a462e915efa088abf518a20875bcb766a62638b /packages/tinydns/tinydns_status.php
parente21ed1b0163b6badeda12a7cb6fb7f416606513e (diff)
downloadpfsense-packages-59d65a4615cda970ba0ce08368deaab537b0e59e.tar.gz
pfsense-packages-59d65a4615cda970ba0ce08368deaab537b0e59e.tar.bz2
pfsense-packages-59d65a4615cda970ba0ce08368deaab537b0e59e.zip
Show down hosts in RED
Diffstat (limited to 'packages/tinydns/tinydns_status.php')
-rw-r--r--packages/tinydns/tinydns_status.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php
index 03bad76f..007793a8 100644
--- a/packages/tinydns/tinydns_status.php
+++ b/packages/tinydns/tinydns_status.php
@@ -75,7 +75,10 @@ foreach($pingdir as $ping) {
echo "</td>";
echo "<td class=\"listlr\">";
$status = file_get_contents("/var/db/pingstatus/$ping");
- echo $status;
+ if(stristr($status,"DOWN"))
+ echo "<FONT COLOR='red'>DOWN</FONT>";
+ else
+ echo $status;
echo "</td>";
echo "<td class=\"listlr\">";
if(file_exists("/var/db/pingmsstatus/$ping"))