From b785493b8a4bd99a98844b3a67c43c63ee47c2fb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Dec 2006 01:49:48 +0000 Subject: * Cleanup status. * Only show relevant items --- packages/tinydns/tinydns_status.php | 40 ++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'packages/tinydns') 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"); "; echo ""; - echo $ping; + echo $ipaddress; echo ""; echo ""; - $status = file_get_contents("/var/db/pingstatus/$ping"); if(stristr($status,"DOWN")) echo "DOWN"; else echo $status; echo ""; echo ""; - 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 ""; echo ""; + + foreach($ping['row'] as $row) { + $ipaddress = $row['failoverip']; + $status = file_get_contents("/var/db/pingstatus/$ipaddress"); + echo ""; + echo "    |->  "; + echo $ipaddress; + echo ""; + echo ""; + if(stristr($status,"DOWN")) + echo "DOWN"; + else + echo $status; + echo ""; + echo ""; + if(file_exists("/var/db/pingmsstatus/$ipaddress")) + $msstatus = file_get_contents("/var/db/pingmsstatus/$ipaddress"); + else + $msstatus = "N/A"; + echo $msstatus; + echo ""; + echo ""; + + } + echo " "; } ?> -- cgit v1.2.3