diff options
author | Eirik Oeverby <ltning@anduin.net> | 2010-08-14 20:09:20 +0200 |
---|---|---|
committer | Eirik Oeverby <ltning@anduin.net> | 2010-08-14 20:09:20 +0200 |
commit | e6a8a6267c53ec2e4909841267405751934fac63 (patch) | |
tree | 4008973e578a8d22eba3aaee136f3f11d3f238d6 /usr/local/www/status_lb_vs.php | |
parent | 03e9ceab443bd4c8747d7bb3264b21d9f4bf48e6 (diff) | |
download | pfsense-e6a8a6267c53ec2e4909841267405751934fac63.zip pfsense-e6a8a6267c53ec2e4909841267405751934fac63.tar.gz |
Made LB pool and server status pages somewhat more meaningful
Diffstat (limited to 'usr/local/www/status_lb_vs.php')
-rwxr-xr-x | usr/local/www/status_lb_vs.php | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/usr/local/www/status_lb_vs.php b/usr/local/www/status_lb_vs.php index 91e89dd..220b2c1 100755 --- a/usr/local/www/status_lb_vs.php +++ b/usr/local/www/status_lb_vs.php @@ -130,9 +130,9 @@ include("head.inc"); <table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10%" class="listhdrr"><?=gettext("Name"); ?></td> - <td width="10%" class="listhdrr"><?=gettext("Port"); ?></td> + <td width="20%" class="listhdrr"><?=gettext("Address"); ?></td> <td width="10%" class="listhdrr"><?=gettext("Servers"); ?></td> - <td width="30%" class="listhdrr"><?=gettext("Status"); ?></td> + <td width="20%" class="listhdrr"><?=gettext("Status"); ?></td> <td width="30%" class="listhdr"><?=gettext("Description"); ?></td> </tr> <?php $i = 0; foreach ($a_vs as $vsent): ?> @@ -141,7 +141,7 @@ include("head.inc"); <?=$vsent['name'];?> </td> <td class="listr" align="center" > - <?=$vsent['port'];?> + <?=$vsent['ipaddr']." : ".$vsent['port'];?> <br /> </td> <td class="listr" align="center" > @@ -158,19 +158,25 @@ include("head.inc"); </table> </td> <?php - switch ($rdr_a[$vsent['name']]['status']) { + switch (trim($rdr_a[$vsent['name']]['status'])) { case 'active': $bgcolor = "lightgreen"; + $rdr_a[$vsent['name']]['status'] = "Active"; break; - default: + case 'down': $bgcolor = "lightcoral"; + $rdr_a[$vsent['name']]['status'] = "Down"; + break; + default: + $bgcolor = "lightgray"; + $rdr_a[$vsent['name']]['status'] = 'Unknown - relayd not running?'; } ?> - <td class="listr" bgcolor="<?=$bgcolor?>"> - <?=$rdr_a[$vsent['name']]['status']?> + <td class="listr"> + <table border="0" cellpadding="3" cellspacing="2"><tr><td bgcolor="<?=$bgcolor?>"> <?=$rdr_a[$vsent['name']]['status']?> </td></tr></table> </td> <td class="listbg" > - <?=$vipent['desc'];?> + <?=$vsent['desc'];?> </td> </tr> <?php $i++; endforeach; ?> |