mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: add logging GUI components
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# remove legacy components on uninstall
|
||||
rm -f /usr/local/www/diag_logs_haproxy.php
|
||||
rm -f /usr/local/etc/inc/plugins.inc.d/haproxy.inc
|
||||
@@ -22,7 +22,7 @@
|
||||
<Counters VisibleName="Counters" url="/ui/haproxy/statistics/#counters"/>
|
||||
<StickTables VisibleName="Stick Tables" url="/ui/haproxy/statistics/#tables"/>
|
||||
</Statistics>
|
||||
<!-- <Log VisibleName="Log File" order="30" url="/diag_logs_haproxy.php"/> -->
|
||||
<Log VisibleName="Log File" order="30" url="/diag_logs_haproxy.php"/>
|
||||
</HAProxy>
|
||||
</Services>
|
||||
</menu>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
diag_logs_haproxy.php:/usr/local/www/diag_logs_haproxy.php
|
||||
haproxy.conf:/usr/local/etc/haproxy.conf
|
||||
haproxy.inc:/usr/local/etc/inc/plugins.inc.d/haproxy.inc
|
||||
rc.conf.d:/etc/rc.conf.d/haproxy
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$logfile = '/var/log/haproxy.log';
|
||||
$logclog = true;
|
||||
|
||||
require_once 'diag_logs_template.inc';
|
||||
Reference in New Issue
Block a user