";
echo "Contents of the sticktable: $sticktablename "; $res = haproxy_socket_command("show stat resolvers $showstatresolversname"); foreach($res as $line){ echo " ".print_r($line,true); } echo " | ";
} elseif (isset($_GET['showsticktablecontent'])){
$sticktablename = $_GET['showsticktablecontent'];
echo "";
echo "Contents of the sticktable: $sticktablename "; $res = haproxy_socket_command("show table $sticktablename"); foreach($res as $line){ echo " ".print_r($line,true); } echo " | ";
} else {
?>
This page contains a 'stats' page available from haproxy accessible through the pfSense gui. As the page is forwarded through the pfSense gui, this might cause some functionality to not work. Though the normal haproxy stats page can be tweaked more, and doesn't use a user/pass from pfSense itself. Some examples are configurable automatic page refresh, only showing certain servers, not providing admin options, and can be accessed from wherever the associated frontend is accessible.(as long as rules permit access) To use this or for simply an example how to use SSL-offloading configure stats on either a real backend while utilizing the 'stats uri'. Or create a backend specifically for serving stats, for that you can start with the 'stats example' from the template tab. |
|||||||
HAProxy stick-tables | |||||||||
These tables are used to store information for session persistence and can be used with ssl-session-id information, application-cookies, or other information that is used to persist a user to a server.
|
|||||||||
HAProxy DNS | |||||||||
DNS statistics | |||||||||
HAProxy stats | |||||||||
Fullscreen stats page | |||||||||
if (isset($pconfig['enable']) && $pconfig['localstatsport'] && is_numeric($pconfig['localstatsport'])){?>
} else { ?>
In the "Settings" configure a internal stats port and enable haproxy for this to be functional. Also make sure the service is running. } ?> }?> |