mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
HA Docs + Debug ARP scan
This commit is contained in:
@@ -19,10 +19,6 @@ def save_scanned_devices (db, p_arpscan_devices, p_cycle_interval):
|
||||
|
||||
mylog('debug', ['[ARP Scan] Detected devices:', len(p_arpscan_devices)])
|
||||
|
||||
p_arpscan_devices = conf.arpscan_devices
|
||||
|
||||
mylog('debug', ['[ARP Scan] Detected devices in conf:', len(p_arpscan_devices)])
|
||||
|
||||
# Delete previous scan data
|
||||
sql.execute ("DELETE FROM CurrentScan WHERE cur_ScanCycle = ?",
|
||||
(cycle,))
|
||||
|
||||
@@ -50,7 +50,7 @@ def execute_arpscan_on_interface (interface):
|
||||
result = subprocess.check_output (arpscan_args, universal_newlines=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
# An error occured, handle it
|
||||
mylog('none', ['[ARP Scan]', e.output])
|
||||
mylog('none', ['[ARP Scan] Error: ', e.output])
|
||||
result = ""
|
||||
|
||||
mylog('debug', ['[ARP Scan] on Interface Completed with results: ', result])
|
||||
|
||||
Reference in New Issue
Block a user