diff options
author | jim-p <jimp@pfsense.org> | 2010-08-11 12:05:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-11 13:39:55 -0400 |
commit | 938bda3aed4410a3144361441529e0833d97a90e (patch) | |
tree | 16e82288b7e6a5ccc11a0447c2decb6d3b25a5b0 /usr/local/www/status_lb_pool.php | |
parent | faf207f1f738df8947c3d4d8c39c67b8c9dfd18f (diff) | |
download | pfsense-938bda3aed4410a3144361441529e0833d97a90e.zip pfsense-938bda3aed4410a3144361441529e0833d97a90e.tar.gz |
Remove the gateway load balancer status code, that has all moved away from here to Status > Gateways and is no longer needed.
Diffstat (limited to 'usr/local/www/status_lb_pool.php')
-rwxr-xr-x | usr/local/www/status_lb_pool.php | 46 |
1 files changed, 2 insertions, 44 deletions
diff --git a/usr/local/www/status_lb_pool.php b/usr/local/www/status_lb_pool.php index 87fa4cf..230dea5 100755 --- a/usr/local/www/status_lb_pool.php +++ b/usr/local/www/status_lb_pool.php @@ -162,52 +162,10 @@ foreach( (array) $relayctl as $line) { </table> </td> <td class="listr" > - <table border="0" cellpadding="0" cellspacing="2"> - <?php - if ($vipent['type'] == "gateway") { - $poolfile = "{$g['tmp_path']}/{$vipent['name']}.pool"; - if(file_exists("$poolfile")) { - $poolstatus = file_get_contents("$poolfile"); - } - foreach ((array) $vipent['servers'] as $server) { - $lastchange = ""; - $svr = split("\|", $server); - $monitorip = $svr[1]; - $logstates = return_clog($lb_logfile, $nentries, true, array("$monitorip", "marking"), "", true); - - $logstates = $logstates[0]; - - if(stristr($logstates, $monitorip)) { - $date = preg_split("/[ ]+/" , $logstates); - $lastchange = "$date[0] $date[1] $year $date[2]"; - } - if(stristr($poolstatus, $monitorip)) { - $online = gettext("Online"); - $bgcolor = "lightgreen"; - $change = $now - strtotime("$lastchange"); - if($change < 300) { - $bgcolor = "khaki"; - } - } else { - $online = gettext("Offline"); - $bgcolor = "lightcoral"; - } - PRINT "<tr><td bgcolor=\"$bgcolor\" > $online </td><td>"; - if($lastchange <> "") { - PRINTF(gettext("Last change %s"),$lastchange); - } else { - PRINT(gettext("No changes found in logfile")); - } - PRINT "</td></tr>"; - } - } else { - PRINT "<tr><td> {$vipent['monitor']} </td></tr>"; - } - ?> - </table> + <?php echo $vipent['monitor']; ?> </td> <td class="listbg" > - <?=$vipent['desc'];?> + <?=$vipent['desc'];?> </td> </tr> <?php |