mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
OPENWRT/LUCI #1010
This commit is contained in:
@@ -37,11 +37,17 @@ def main():
|
|||||||
|
|
||||||
for entry in device_data:
|
for entry in device_data:
|
||||||
mylog('verbose', [f'[{pluginName}] found: ', str(entry.mac).lower()])
|
mylog('verbose', [f'[{pluginName}] found: ', str(entry.mac).lower()])
|
||||||
|
|
||||||
|
name = str(entry.hostname)
|
||||||
|
|
||||||
|
if name.lower() == 'none':
|
||||||
|
name = '(unknown)'
|
||||||
|
|
||||||
plugin_objects.add_object(
|
plugin_objects.add_object(
|
||||||
primaryId = str(entry.mac).lower(),
|
primaryId = str(entry.mac).lower(),
|
||||||
secondaryId = entry.ip,
|
secondaryId = entry.ip,
|
||||||
watched1 = entry.host,
|
watched1 = entry.host,
|
||||||
watched2 = str(entry.hostname),
|
watched2 = name,
|
||||||
watched3 = "",
|
watched3 = "",
|
||||||
watched4 = "",
|
watched4 = "",
|
||||||
extra = pluginName,
|
extra = pluginName,
|
||||||
|
|||||||
Reference in New Issue
Block a user