More rename work
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
## Descripción general
|
||||
|
||||
Un plugin para resolver nombres de dispositivos "(desconocidos)". Utiliza la herramienta de rastreo [Pholus](https://github.com/jokob-sk/NetAlertX/tree/main/front/plugins/pholus_scan/pholus).
|
||||
|
||||
### Uso
|
||||
|
||||
- Vaya a configuración y busque Pholus-Scan (descubrimiento de nombre) en la lista de configuraciones.
|
||||
- Habilite el complemento cambiando el parámetro `RUN` de deshabilitado a uno que prefiera (`schedule`, `always_after_scan`, `on_new_device`).
|
||||
- Especifique `PHOLUS_RUN_TIMEOUT` (se dividirá por el número de subredes especificadas en la configuración del complemento Arp-Scan (escaneo de red) `SCAN_SUBNETS`)
|
||||
- GUARDAR
|
||||
- Espere a que finalice el siguiente escaneo.
|
||||
@@ -11,12 +11,12 @@ from time import strftime
|
||||
|
||||
|
||||
sys.path.append("/home/pi/pialert/front/plugins")
|
||||
sys.path.append('/home/pi/pialert/pialert')
|
||||
sys.path.append('/home/pi/pialert/netalertx')
|
||||
|
||||
from logger import mylog
|
||||
from plugin_helper import Plugin_Object, Plugin_Objects
|
||||
from helper import timeNowTZ
|
||||
from const import logPath, pialertPath
|
||||
from const import logPath, applicationPath
|
||||
|
||||
CUR_PATH = str(pathlib.Path(__file__).parent.resolve())
|
||||
LOG_FILE = os.path.join(CUR_PATH, 'script.log')
|
||||
@@ -26,9 +26,6 @@ fullPholusPath = os.path.join(CUR_PATH, 'pholus/pholus3.py')
|
||||
pluginName = 'PHOLUS'
|
||||
|
||||
def main():
|
||||
# sample
|
||||
# /home/pi/pialert/front/plugins/pholus_scan/script.py userSubnets=b'MTkyLjE2OC4xLjAvMjQgLS1pbnRlcmZhY2U9ZXRoMQ==' timeoutSec=10
|
||||
# sudo docker exec pialert /home/pi/pialert/front/plugins/pholus_scan/script.py userSubnets=b'MTkyLjE2OC4xLjAvMjQgLS1pbnRlcmZhY2U9ZXRoMQ==' timeoutSec=10
|
||||
|
||||
# the script expects a parameter in the format of userSubnets=subnet1,subnet2,...
|
||||
parser = argparse.ArgumentParser(description='Import devices from settings')
|
||||
|
||||
Reference in New Issue
Block a user