From cba8b15d023516e297fe138280ee0ac7a6bc2845 Mon Sep 17 00:00:00 2001 From: spyngamerman <1596188+spyngamerman@users.noreply.github.com> Date: Wed, 23 Oct 2019 08:42:14 -0400 Subject: [PATCH] Update csf.py Add SYSLOG_CHECK default to on every 5 mins --- plogical/csf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plogical/csf.py b/plogical/csf.py index b13a0d3e8..1bde35449 100755 --- a/plogical/csf.py +++ b/plogical/csf.py @@ -282,7 +282,11 @@ class CSF(multi.Thread): # HTACCESS_LOG is ins main error.log elif items.find('HTACCESS_LOG =') > -1 and items.find('=') > -1 and (items[0] != '#'): writeToConf.writelines('HTACCESS_LOG = "/usr/local/lsws/logs/error.log"\n') - + + # SYSLOG_CHECK Check whether syslog is running + elif items.find('SYSLOG_CHECK =') > -1 and items.find('=') > -1 and (items[0] != '#'): + writeToConf.writelines('SYSLOG_CHECK = "300"\n') + # CSF UI enable #elif items.find('UI = "0"') > -1 and items.find('=') > -1 and (items[0] != '#'): # writeToConf.writelines('UI = "1"\n')