You've already forked haproxy-wi
mirror of
https://github.com/roxy-wi/roxy-wi.git
synced 2025-12-15 11:54:05 +08:00
v3.9
This commit is contained in:
@@ -592,6 +592,12 @@ def show_haproxy_log(serv, rows=10, waf='0', grep=None, hour='00', minut='00', h
|
||||
return ssh_command(syslog_server, commands, show_log='1')
|
||||
|
||||
|
||||
def haproxy_wi_log():
|
||||
log_path = get_config_var('main', 'log_path')
|
||||
cmd = "find "+log_path+"/haproxy-wi-* -type f -exec stat --format '%Y :%y %n' '{}' \; | sort -nr | cut -d: -f2- | head -1 |awk '{print $4}' |xargs tail|sort -r"
|
||||
output, stderr = subprocess_execute(cmd)
|
||||
|
||||
return output
|
||||
|
||||
|
||||
def show_ip(stdout):
|
||||
|
||||
Reference in New Issue
Block a user