aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-09 01:49:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-09 01:49:48 +0000
commitb785493b8a4bd99a98844b3a67c43c63ee47c2fb (patch)
tree4277eb9629ce5a60dca5a8b9d31be61d3d9716e0 /packages
parente4819259c8490b3f4d9fd0e50519a5159ea8e520 (diff)
downloadpfsense-packages-b785493b8a4bd99a98844b3a67c43c63ee47c2fb.tar.gz
pfsense-packages-b785493b8a4bd99a98844b3a67c43c63ee47c2fb.tar.bz2
pfsense-packages-b785493b8a4bd99a98844b3a67c43c63ee47c2fb.zip
* Cleanup status.
* Only show relevant items
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns_status.php40
1 files changed, 35 insertions, 5 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php
index 13ac4e8c..a35d6b5b 100644
--- a/packages/tinydns/tinydns_status.php
+++ b/packages/tinydns/tinydns_status.php
@@ -68,26 +68,56 @@ include("head.inc");
<?php
$pingdir = return_dir_as_array("/var/db/pingstatus");
-foreach($pingdir as $ping) {
+foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) {
+ if($ping['recordtype'] == "SOA")
+ continue;
+ if(!$ping['row'])
+ continue;
+ $ipaddress = $ping['ipaddress'];
+ $status = file_get_contents("/var/db/pingstatus/$ipaddress");
echo "<tr>";
echo "<td class=\"listlr\">";
- echo $ping;
+ echo $ipaddress;
echo "</td>";
echo "<td class=\"listlr\">";
- $status = file_get_contents("/var/db/pingstatus/$ping");
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"))
- $msstatus = file_get_contents("/var/db/pingmsstatus/$ping");
+ if(file_exists("/var/db/pingmsstatus/$ipaddress"))
+ $msstatus = file_get_contents("/var/db/pingmsstatus/$ipaddress");
else
$msstatus = "N/A";
echo $msstatus;
echo "</td>";
echo "</tr>";
+
+ foreach($ping['row'] as $row) {
+ $ipaddress = $row['failoverip'];
+ $status = file_get_contents("/var/db/pingstatus/$ipaddress");
+ echo "<tr>";
+ echo "<td class=\"listlr\">&nbsp;&nbsp;&nbsp;&nbsp;|->&nbsp;&nbsp;";
+ echo $ipaddress;
+ echo "</td>";
+ echo "<td class=\"listlr\">";
+ 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/$ipaddress"))
+ $msstatus = file_get_contents("/var/db/pingmsstatus/$ipaddress");
+ else
+ $msstatus = "N/A";
+ echo $msstatus;
+ echo "</td>";
+ echo "</tr>";
+
+ }
+ echo "<tr><td>&nbsp;</td></tr>";
}
?>
</table>