/data and /tmp standarization

This commit is contained in:
Adam Outler
2025-11-04 22:26:35 +00:00
parent 90a07c61eb
commit 5b871865db
250 changed files with 7462 additions and 4940 deletions

View File

@@ -1,26 +1,26 @@
""" config related functions for NetAlertX """
"""config related functions for NetAlertX"""
# TODO: Create and manage this as part of an app_state class object
#===============================================================================
# ===============================================================================
# These are global variables, not config items and should not exist !
mySettings = []
mySettingsSQLsafe = []
cycle = 1
userSubnets = []
mySchedules = [] # bad solution for global - TO-DO
tz = ''
mySchedules = [] # bad solution for global - TO-DO
tz = ""
# modified time of the most recently imported config file
# set to a small value to force import at first run
lastImportedConfFile = 1.1
lastImportedConfFile = 1.1
plugins_once_run = False
newVersionAvailable = False
time_started = ''
startTime = ''
last_scan_run = ''
last_version_check = ''
time_started = ""
startTime = ""
last_scan_run = ""
last_version_check = ""
arpscan_devices = []
# ACTUAL CONFIGRATION ITEMS set to defaults
@@ -28,19 +28,19 @@ arpscan_devices = []
# -------------------------------------------
# General
# -------------------------------------------
SCAN_SUBNETS = ['192.168.1.0/24 --interface=eth1', '192.168.1.0/24 --interface=eth0']
LOG_LEVEL = 'verbose'
TIMEZONE = 'Europe/Berlin'
UI_LANG = 'English (en_us)'
UI_PRESENCE = ['online', 'offline', 'archived']
UI_MY_DEVICES = ['online', 'offline', 'archived', 'new', 'down']
SCAN_SUBNETS = ["192.168.1.0/24 --interface=eth1", "192.168.1.0/24 --interface=eth0"]
LOG_LEVEL = "verbose"
TIMEZONE = "Europe/Berlin"
UI_LANG = "English (en_us)"
UI_PRESENCE = ["online", "offline", "archived"]
UI_MY_DEVICES = ["online", "offline", "archived", "new", "down"]
UI_NOT_RANDOM_MAC = []
DAYS_TO_KEEP_EVENTS = 90
REPORT_DASHBOARD_URL = 'http://netalertx/'
DAYS_TO_KEEP_EVENTS = 90
REPORT_DASHBOARD_URL = "http://netalertx/"
# -------------------------------------------
# Misc
# -------------------------------------------
# API
API_CUSTOM_SQL = 'SELECT * FROM Devices WHERE devPresentLastScan = 0'
# API
API_CUSTOM_SQL = "SELECT * FROM Devices WHERE devPresentLastScan = 0"