diff --git a/front/css/app.css b/front/css/app.css index ccc10a14..f5a04993 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -1005,7 +1005,7 @@ input[readonly] { border-width: 1px; border-style: solid; border-color: inherit; - width: 87%; + /* width: 87%; */ } .settings-sticky-bottom-section:hover { diff --git a/front/js/settings_utils.js b/front/js/settings_utils.js index d431194a..27186f06 100755 --- a/front/js/settings_utils.js +++ b/front/js/settings_utils.js @@ -101,7 +101,7 @@ }); html += ` -
- Net Alertx
+ NetAlertx
diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json
index 941f0777..9f3088e6 100755
--- a/front/php/templates/language/en_us.json
+++ b/front/php/templates/language/en_us.json
@@ -671,7 +671,7 @@
"settings_publishers": "Enabled notification gateways - publishers, that will send a notification depending on your settings.",
"settings_publishers_icon": "fa-solid fa-paper-plane",
"settings_publishers_label": "Publishers",
- "settings_saved": "APPRISE_HOST setting."
- },
- {
- "language_code": "es_es",
- "string" : "Habilitar el envío de notificaciones a través de Apprise."
- }
- ]
+ "equals": "new",
+ "replacement": "http:// or https://. (do not forget to include /notify at the end)"
- },
- {
- "language_code": "es_es",
- "string" : "URL del host de Apprise que comienza con http:// o https://. (no olvide incluir /notify al final)"
- }]
+ "language_code": "es_es",
+ "string": "Extra"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["test"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": ["disabled", "on_notification"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
},
{
- "function": "URL",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Apprise notification URL"
- },
- {
- "language_code": "es_es",
- "string" : "URL de notificación de Apprise"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Apprise notification target URL. For example for Telegram it would be tgram://{bot_token}/{chat_id}."
- },
- {
- "language_code": "es_es",
- "string" : "Informar de la URL de destino de la notificación. Por ejemplo, para Telegram sería tgram://{bot_token}/{chat_id}."
- }]
+ "language_code": "es_es",
+ "string": "Cuando ejecuta"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable sending notifications via a self-hosted Apprise instance. Please specify the URL on which you are running your instance in the APPRISE_HOST setting."
},
{
- "function": "PAYLOAD",
- "type": "text.select",
- "default_value": "html",
- "options": ["html", "text"],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Payload type"
- },
- {
- "language_code": "es_es",
- "string" : "Tipo de carga"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Select the payoad type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram."
- },
- {
- "language_code": "es_es",
- "string" : "Seleccione el tipo de carga útil enviada a Apprise. Por ejemplo, html funciona bien con correos electrónicos, text con aplicaciones de chat, como Telegram."
- }]
+ "language_code": "es_es",
+ "string": "Habilitar el envío de notificaciones a través de Apprise."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/_publisher_apprise/apprise.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
},
{
- "function": "SIZE",
- "type": "integer",
- "default_value": 1024,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Max payload size"
- },
- {
- "language_code": "es_es",
- "string" : "Tamaño máximo de carga útil"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "The maximum size of the apprise payload as number of characters in the passed string. If above limit, it will be truncated and a (text was truncated) message is appended."
- },
- {
- "language_code": "es_es",
- "string" : "El tamaño máximo de la carga útil de información como número de caracteres en la cadena pasada. Si supera el límite, se truncará y se agregará un mensaje (text was truncated)."
- }]
- }
- ]
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 10,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "HOST",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Apprise host URL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL del host de Apprise"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Apprise host URL starting with http:// or https://. (do not forget to include /notify at the end)"
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL del host de Apprise que comienza con http:// o https://. (no olvide incluir /notify al final)"
+ }
+ ]
+ },
+ {
+ "function": "URL",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Apprise notification URL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL de notificación de Apprise"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Apprise notification target URL. For example for Telegram it would be tgram://{bot_token}/{chat_id}."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Informar de la URL de destino de la notificación. Por ejemplo, para Telegram sería tgram://{bot_token}/{chat_id}."
+ }
+ ]
+ },
+ {
+ "function": "PAYLOAD",
+ "type": "text.select",
+ "default_value": "html",
+ "options": ["html", "text"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Payload type"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tipo de carga"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Select the payoad type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Seleccione el tipo de carga útil enviada a Apprise. Por ejemplo, html funciona bien con correos electrónicos, text con aplicaciones de chat, como Telegram."
+ }
+ ]
+ },
+ {
+ "function": "SIZE",
+ "type": "integer",
+ "default_value": 1024,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Max payload size"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tamaño máximo de carga útil"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The maximum size of the apprise payload as number of characters in the passed string. If above limit, it will be truncated and a (text was truncated) message is appended."
+ },
+ {
+ "language_code": "es_es",
+ "string": "El tamaño máximo de la carga útil de información como número de caracteres en la cadena pasada. Si supera el límite, se truncará y se agregará un mensaje (text was truncated)."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/_publisher_email/config.json b/front/plugins/_publisher_email/config.json
index f37d193f..9e4b97d8 100755
--- a/front/plugins/_publisher_email/config.json
+++ b/front/plugins/_publisher_email/config.json
@@ -1,689 +1,618 @@
{
- "code_name": "_publisher_email",
- "unique_prefix": "SMTP",
- "plugin_type": "publisher",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
- "display_name": [
- {
- "language_code": "en_us",
- "string": "Email publisher (SMTP)"
- },
- {
- "language_code": "es_es",
- "string": "Habilitar email (SMTP)"
- }
- ],
- "icon": [
- {
- "language_code": "en_us",
- "string": ""
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "A plugin to publish a notification via Email (SMTP) gateway."
- }
- ],
- "params": [],
- "database_column_definitions": [
- {
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "url",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "DateTimeCreated",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Sent when"
- }
- ]
- },
- {
- "column": "DateTimeChanged",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Changed"
- },
- {
- "language_code": "es_es",
- "string": "Cambiado"
- }
- ]
- },
- {
- "column": "Watched_Value1",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "eval",
- "default_value":"",
- "options": [
- {
- "type": "eval",
- "param": "`${value}`"
- }
- ],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Notification GUID"
- }
- ]
- },
- {
- "column": "Watched_Value2",
- "css_classes": "col-sm-8",
- "show": true,
- "type": "textarea_readonly",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Result"
- }
- ]
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "textbox_save",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Comments"
- },
- {
- "language_code": "es_es",
- "string": "Comentarios"
- }
- ]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": false,
- "type": "replace",
- "default_value": "",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": "smtp-relay.sendinblue.com. To use Gmail as an SMTP server follow this guide"
- },
- {
- "language_code": "es_es",
- "string": "La URL del host del servidor SMTP. Por ejemplo, smtp-relay.sendinblue.com. Para utilizar Gmail como servidor SMTP siga esta guía"
- }
- ]
- },
- {
- "function": "PORT",
- "type": "integer",
- "default_value": 587,
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "SMTP server PORT"
- },
- {
- "language_code": "es_es",
- "string": "Puerto del servidor SMTP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Port number used for the SMTP connection. Set to 0 if you do not want to use a port when connecting to the SMTP server."
- },
- {
- "language_code": "es_es",
- "string": "Número de puerto utilizado para la conexión SMTP. Establézcalo en 0 si no desea utilizar un puerto al conectarse al servidor SMTP."
- }
- ]
- },
- {
- "function": "SKIP_LOGIN",
- "type": "boolean",
- "default_value": false,
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Skip authentication"
- },
- {
- "language_code": "es_es",
- "string": "Omitir autenticación"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Do not use authentication when connecting to the SMTP server."
- },
- {
- "language_code": "es_es",
- "string": "No utilice la autenticación cuando se conecte al servidor SMTP."
- }
- ]
- },
- {
- "function": "USER",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "SMTP user"
- },
- {
- "language_code": "es_es",
- "string": "Nombre de usuario SMTP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The user name used to login into the SMTP server (sometimes a full email address)."
- },
- {
- "language_code": "es_es",
- "string": "El nombre de usuario utilizado para iniciar sesión en el servidor SMTP (a veces, una dirección de correo electrónico completa)."
- }
- ]
- },
- {
- "function": "PASS",
- "type": "password",
- "default_value": "",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "SMTP password"
- },
- {
- "language_code": "es_es",
- "string": "Contraseña de SMTP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The SMTP server password."
- },
- {
- "language_code": "es_es",
- "string": "La contraseña del servidor SMTP."
- }
- ]
- },
- {
- "function": "SKIP_TLS",
- "type": "boolean",
- "default_value": false,
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Do not use TLS"
- },
- {
- "language_code": "es_es",
- "string": "No usar TLS"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Disable TLS when connecting to your SMTP server."
- },
- {
- "language_code": "es_es",
- "string": "Deshabilite TLS cuando se conecte a su servidor SMTP."
- }
- ]
- },
- {
- "function": "FORCE_SSL",
- "type": "boolean",
- "default_value": false,
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Force SSL"
- },
- {
- "language_code": "es_es",
- "string": "Forzar SSL"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Force SSL when connecting to your SMTP server."
- },
- {
- "language_code": "es_es",
- "string": "Forzar SSL al conectarse a su servidor SMTP"
- }
- ]
- },
- {
- "function": "REPORT_TO",
- "type": "text",
- "default_value": "user@gmail.com",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Send email to"
- },
- {
- "language_code": "es_es",
- "string": "Enviar el email a"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Email address to which the notification will be send to."
- },
- {
- "language_code": "es_es",
- "string": "Dirección de correo electrónico a la que se enviará la notificación."
- }
- ]
- },
- {
- "function": "REPORT_FROM",
- "type": "text",
- "default_value": "NetAlertX smtp-relay.sendinblue.com. To use Gmail as an SMTP server follow this guide"
+ },
+ {
+ "language_code": "es_es",
+ "string": "La URL del host del servidor SMTP. Por ejemplo, smtp-relay.sendinblue.com. Para utilizar Gmail como servidor SMTP siga esta guía"
+ }
+ ]
+ },
+ {
+ "function": "PORT",
+ "type": "integer",
+ "default_value": 587,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "SMTP server PORT"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Puerto del servidor SMTP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Port number used for the SMTP connection. Set to 0 if you do not want to use a port when connecting to the SMTP server."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Número de puerto utilizado para la conexión SMTP. Establézcalo en 0 si no desea utilizar un puerto al conectarse al servidor SMTP."
+ }
+ ]
+ },
+ {
+ "function": "SKIP_LOGIN",
+ "type": "boolean",
+ "default_value": false,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Skip authentication"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Omitir autenticación"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Do not use authentication when connecting to the SMTP server."
+ },
+ {
+ "language_code": "es_es",
+ "string": "No utilice la autenticación cuando se conecte al servidor SMTP."
+ }
+ ]
+ },
+ {
+ "function": "USER",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "SMTP user"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Nombre de usuario SMTP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The user name used to login into the SMTP server (sometimes a full email address)."
+ },
+ {
+ "language_code": "es_es",
+ "string": "El nombre de usuario utilizado para iniciar sesión en el servidor SMTP (a veces, una dirección de correo electrónico completa)."
+ }
+ ]
+ },
+ {
+ "function": "PASS",
+ "type": "password",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "SMTP password"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Contraseña de SMTP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The SMTP server password."
+ },
+ {
+ "language_code": "es_es",
+ "string": "La contraseña del servidor SMTP."
+ }
+ ]
+ },
+ {
+ "function": "SKIP_TLS",
+ "type": "boolean",
+ "default_value": false,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Do not use TLS"
+ },
+ {
+ "language_code": "es_es",
+ "string": "No usar TLS"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Disable TLS when connecting to your SMTP server."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Deshabilite TLS cuando se conecte a su servidor SMTP."
+ }
+ ]
+ },
+ {
+ "function": "FORCE_SSL",
+ "type": "boolean",
+ "default_value": false,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Force SSL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Forzar SSL"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Force SSL when connecting to your SMTP server."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Forzar SSL al conectarse a su servidor SMTP"
+ }
+ ]
+ },
+ {
+ "function": "REPORT_TO",
+ "type": "text",
+ "default_value": "user@gmail.com",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Send email to"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Enviar el email a"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Email address to which the notification will be send to."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Dirección de correo electrónico a la que se enviará la notificación."
+ }
+ ]
+ },
+ {
+ "function": "REPORT_FROM",
+ "type": "text",
+ "default_value": "NetAlertX on_notification is recommended. See the NetAlertX Home Assistant guide for details."
- },
- {
- "language_code": "es_es",
- "string" : "Habilitar el envío de notificaciones a través de MQTT a su Home Assistance."
- }
- ]
+ "language_code": "en_us",
+ "string": "Enable sending notifications via MQTT to your Home Assistance instance. Usually, on_notification is recommended. See the NetAlertX Home Assistant guide for details."
},
{
- "function": "CMD",
- "type": "readonly",
- "default_value":"python3 /app/front/plugins/_publisher_mqtt/mqtt.py devices={devices}",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Command"
- },
- {
- "language_code": "es_es",
- "string" : "Comando"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Command to run"
- },
- {
- "language_code": "es_es",
- "string" : "Comando a ejecutar"
- }]
+ "language_code": "es_es",
+ "string": "Habilitar el envío de notificaciones a través de MQTT a su Home Assistance."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/_publisher_mqtt/mqtt.py devices={devices}",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
},
{
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"0 2 * * 3",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- },
- {
- "language_code":"de_de",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the MQTT_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración MQTT_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- },
- {
- "language_code":"de_de",
- "string" : "Nur aktiviert, wenn Sie schedule in der MQTT_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
- }]
- },
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
{
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value": 20,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Run timeout"
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo de espera de ejecución"
- },
- {
- "language_code": "de_de",
- "string" : "Wartezeit"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- }]
+ "language_code": "en_us",
+ "string": "Command to run"
},
{
- "function": "BROKER",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "MQTT broker URL"
- },
- {
- "language_code": "es_es",
- "string" : "URL del broker MQTT"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "MQTT host URL (do not include http:// or https://)."
- },
- {
- "language_code": "es_es",
- "string" : "URL del host MQTT (no incluya http:// o https://)."
- }]
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "0 2 * * 3",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
},
{
- "function": "PORT",
- "type": "integer",
- "default_value": 1883,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "MQTT broker port"
- },
- {
- "language_code": "es_es",
- "string" : "Puerto del broker MQTT"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Port number where the broker is listening. Usually 1883."
- },
- {
- "language_code": "es_es",
- "string" : "Puerto donde escucha el broker MQTT. Normalmente 1883."
- }]
+ "language_code": "es_es",
+ "string": "Schedule"
},
{
- "function": "USER",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "MQTT user"
- },
- {
- "language_code": "es_es",
- "string" : "Usuario de MQTT"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "User name used to login into your MQTT broker instance."
- },
- {
- "language_code": "es_es",
- "string" : "Nombre de usuario utilizado para iniciar sesión en su instancia de agente de MQTT."
- }]
+ "language_code": "de_de",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the MQTT_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
},
{
- "function": "PASSWORD",
- "type": "password",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "MQTT password"
- },
- {
- "language_code": "es_es",
- "string" : "Contraseña de MQTT"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Password used to login into your MQTT broker instance."
- },
- {
- "language_code": "es_es",
- "string" : "Contraseña utilizada para iniciar sesión en su instancia de agente de MQTT."
- }]
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración MQTT_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
},
{
- "function": "SEND_STATS",
- "type": "boolean",
- "default_value":true,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Send stats"
- }
- ],
- "description": [{
- "language_code":"en_us",
- "string" : "Check to send overal device stats, such as number of Online and Offline devices."
- }
- ]
- },
+ "language_code": "de_de",
+ "string": "Nur aktiviert, wenn Sie schedule in der MQTT_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 20,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
{
- "function": "DEVICE_ID",
- "type": "text",
- "default_value": "netalertx",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Device ID"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "The root path of the stats overview sensor. Inserted into the system-sensors/sensor/{DEVICE_ID}/state topic."
- }]
+ "language_code": "en_us",
+ "string": "Run timeout"
},
{
- "function": "DEVICE_NAME",
- "type": "text",
- "default_value": "NetAlertX",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Device name"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "The name used for the stats overview device."
- }]
- },
- {
- "function": "SEND_DEVICES",
- "type": "boolean",
- "default_value":true,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Send devices"
- }
- ],
- "description": [{
- "language_code":"en_us",
- "string" : "Check to send individual devices to the broker with details, such as is_new, is_present, or mac_address of the devices."
- }
- ]
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
},
{
- "function": "PRESENCE_SENSOR_TYPE",
- "events": [],
- "type": "text.select",
- "default_value":"binary_sensor",
- "options": ["binary_sensor", "device_tracker" ],
- "localized": ["name", "description"],
- "name" :[{
- "language_code": "en_us",
- "string" : "Presence Sensor Type"
- }],
- "description": [
- {
- "language_code": "en_us",
- "string" : "The type of the sensor that should be generated for the is_present sensor. Inserted into the homeassistant/{MQTT_PRESENCE_SENSOR_TYPE}/mac_44_ef_44_ef_44_ef/is_present/ topic. See the Plugin readme for details."
- }
- ]
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
},
{
- "function": "QOS",
- "type": "integer.select",
- "default_value": 0,
- "options": [0, 1, 2],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "MQTT Quality of Service"
- },
- {
- "language_code": "es_es",
- "string" : "Calidad de servicio MQTT"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Quality of service setting for MQTT message sending. The higher the quality the longer the delay. 0 - Low quality to 2 - High quality."
- },
- {
- "language_code": "es_es",
- "string" : "Configuración de calidad de servicio para el envío de mensajes MQTT. 0: baja calidad a 2: alta calidad. Cuanto mayor sea la calidad, mayor será el retraso."
- }]
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "BROKER",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT broker URL"
},
{
- "function": "VERSION",
- "type": "integer.select",
- "default_value": 1,
- "options": [ 1, 2 ],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Version"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Paho MQTT API version. Depends on the MQTT version supported by the MQTT broker. Usually set to 1."
- }]
+ "language_code": "es_es",
+ "string": "URL del broker MQTT"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT host URL (do not include http:// or https://)."
},
{
- "function": "DELAY_SEC",
- "type": "integer",
- "default_value": 2,
- "options": [2, 3, 4, 5],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "MQTT delay per device"
- },
- {
- "language_code": "es_es",
- "string" : "Retraso de MQTT por dispositivo"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "A little hack - delay adding to the queue in case the process is restarted and previous publish processes aborted (it takes ~2s to update a sensor config on the broker). Tested with 2-3 seconds of delay. This delay is only applied when devices are created (during the first notification loop). It doesn not affect subsequent scans or notifications."
- },
- {
- "language_code": "es_es",
- "string" : "Un pequeño truco: retrase la adición a la cola en caso de que el proceso se reinicie y los procesos de publicación anteriores se anulen (se necesitan ~2s para actualizar la configuración de un sensor en el intermediario). Probado con 2-3 segundos de retraso. Este retraso solo se aplica cuando se crean dispositivos (durante el primer bucle de notificación). No afecta los escaneos o notificaciones posteriores."
- }]
- }
- ]
+ "language_code": "es_es",
+ "string": "URL del host MQTT (no incluya http:// o https://)."
+ }
+ ]
+ },
+ {
+ "function": "PORT",
+ "type": "integer",
+ "default_value": 1883,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT broker port"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Puerto del broker MQTT"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Port number where the broker is listening. Usually 1883."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Puerto donde escucha el broker MQTT. Normalmente 1883."
+ }
+ ]
+ },
+ {
+ "function": "USER",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT user"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Usuario de MQTT"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "User name used to login into your MQTT broker instance."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Nombre de usuario utilizado para iniciar sesión en su instancia de agente de MQTT."
+ }
+ ]
+ },
+ {
+ "function": "PASSWORD",
+ "type": "password",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT password"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Contraseña de MQTT"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Password used to login into your MQTT broker instance."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Contraseña utilizada para iniciar sesión en su instancia de agente de MQTT."
+ }
+ ]
+ },
+ {
+ "function": "SEND_STATS",
+ "type": "boolean",
+ "default_value": true,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Send stats"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Check to send overal device stats, such as number of Online and Offline devices."
+ }
+ ]
+ },
+ {
+ "function": "DEVICE_ID",
+ "type": "text",
+ "default_value": "netalertx",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device ID"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The root path of the stats overview sensor. Inserted into the system-sensors/sensor/{DEVICE_ID}/state topic."
+ }
+ ]
+ },
+ {
+ "function": "DEVICE_NAME",
+ "type": "text",
+ "default_value": "NetAlertX",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device name"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The name used for the stats overview device."
+ }
+ ]
+ },
+ {
+ "function": "SEND_DEVICES",
+ "type": "boolean",
+ "default_value": true,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Send devices"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Check to send individual devices to the broker with details, such as is_new, is_present, or mac_address of the devices."
+ }
+ ]
+ },
+ {
+ "function": "PRESENCE_SENSOR_TYPE",
+ "events": [],
+ "type": "text.select",
+ "default_value": "binary_sensor",
+ "options": ["binary_sensor", "device_tracker"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Presence Sensor Type"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The type of the sensor that should be generated for the is_present sensor. Inserted into the homeassistant/{MQTT_PRESENCE_SENSOR_TYPE}/mac_44_ef_44_ef_44_ef/is_present/ topic. See the Plugin readme for details."
+ }
+ ]
+ },
+ {
+ "function": "QOS",
+ "type": "integer.select",
+ "default_value": 0,
+ "options": [0, 1, 2],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT Quality of Service"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Calidad de servicio MQTT"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Quality of service setting for MQTT message sending. The higher the quality the longer the delay. 0 - Low quality to 2 - High quality."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Configuración de calidad de servicio para el envío de mensajes MQTT. 0: baja calidad a 2: alta calidad. Cuanto mayor sea la calidad, mayor será el retraso."
+ }
+ ]
+ },
+ {
+ "function": "VERSION",
+ "type": "integer.select",
+ "default_value": 1,
+ "options": [1, 2],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Version"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Paho MQTT API version. Depends on the MQTT version supported by the MQTT broker. Usually set to 1."
+ }
+ ]
+ },
+ {
+ "function": "DELAY_SEC",
+ "type": "integer",
+ "default_value": 2,
+ "options": [2, 3, 4, 5],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MQTT delay per device"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Retraso de MQTT por dispositivo"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A little hack - delay adding to the queue in case the process is restarted and previous publish processes aborted (it takes ~2s to update a sensor config on the broker). Tested with 2-3 seconds of delay. This delay is only applied when devices are created (during the first notification loop). It doesn not affect subsequent scans or notifications."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Un pequeño truco: retrase la adición a la cola en caso de que el proceso se reinicie y los procesos de publicación anteriores se anulen (se necesitan ~2s para actualizar la configuración de un sensor en el intermediario). Probado con 2-3 segundos de retraso. Este retraso solo se aplica cuando se crean dispositivos (durante el primer bucle de notificación). No afecta los escaneos o notificaciones posteriores."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/_publisher_ntfy/config.json b/front/plugins/_publisher_ntfy/config.json
index 78407535..8c3e53f2 100755
--- a/front/plugins/_publisher_ntfy/config.json
+++ b/front/plugins/_publisher_ntfy/config.json
@@ -1,405 +1,456 @@
{
- "code_name": "_publisher_ntfy",
- "unique_prefix": "NTFY",
- "plugin_type": "publisher",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "display_name" : [
+ "code_name": "_publisher_ntfy",
+ "unique_prefix": "NTFY",
+ "plugin_type": "publisher",
+ "enabled": true,
+ "data_source": "script",
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "NTFY publisher"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilitar NTFY"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A plugin to publish a notification via the NTFY gateway."
+ }
+ ],
+ "params": [],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string" : "NTFY publisher"
- },
- {
- "language_code": "es_es",
- "string" : "Habilitar NTFY"
- }
- ],
- "icon":[{
- "language_code": "en_us",
- "string" : ""
- }],
- "description": [
- {
- "language_code": "en_us",
- "string" : "A plugin to publish a notification via the NTFY gateway."
- }
- ],
- "params" : [
- ],
- "database_column_definitions":
- [
- {
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- }]
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Sent when"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "eval",
+ "default_value": "",
+ "options": [
+ {
+ "type": "eval",
+ "param": "`${value}`"
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Notification GUID"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textarea_readonly",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response code"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "device_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
},
{
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Sent when"
- }]
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": false,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": "http:// or https://. You can use the hosted instance on https://ntfy.sh by simply entering https://ntfy.sh."
- },
- {
- "language_code": "es_es",
- "string" : "URL de host NTFY que comienza con http:// o https://. Puede usar la instancia alojada en https://ntfy.sh simplemente ingresando https://ntfy. sh."
- }]
+ "language_code": "en_us",
+ "string": "Enable sending notifications via NTFY."
},
{
- "function": "TOPIC",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "NTFY topic"
- },
- {
- "language_code": "es_es",
- "string" : "Tema de NTFY"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Your secret topic."
- },
- {
- "language_code": "es_es",
- "string" : "Tu tema secreto."
- }]
+ "language_code": "es_es",
+ "string": "Habilitar el envío de notificaciones a través de NTFY."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/_publisher_ntfy/ntfy.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
},
{
- "function": "USER",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "NTFY user"
- },
- {
- "language_code": "es_es",
- "string" : "Usuario de NTFY"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Enter user if you need (host) an instance with enabled authetication."
- },
- {
- "language_code": "es_es",
- "string" : "Ingrese usuario si necesita (alojar) una instancia con autenticación habilitada."
- }]
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
},
{
- "function": "PASSWORD",
- "type": "password",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "NTFY password"
- },
- {
- "language_code": "es_es",
- "string" : "Contraseña de NTFY"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Enter password if you need (host) an instance with enabled authetication."
- },
- {
- "language_code": "es_es",
- "string" : "Ingrese la contraseña si necesita (host) una instancia con autenticación habilitada."
- }]
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 10,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
},
{
- "function": "PRIORITY",
- "type": "text.select",
- "default_value":"urgent",
- "options": ["urgent", "high", "default" , "low" , "min" ],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Message priority"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "All NTFY messages have a priority, which defines how urgently your phone notifies you. On Android, you can set custom notification sounds and vibration patterns on your phone to map to these priorities (see Android config)."
- }]
- }
- ]
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "HOST",
+ "type": "text",
+ "default_value": "https://ntfy.sh",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "NTFY host URL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL del host NTFY"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "NTFY host URL starting with http:// or https://. You can use the hosted instance on https://ntfy.sh by simply entering https://ntfy.sh."
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL de host NTFY que comienza con http:// o https://. Puede usar la instancia alojada en https://ntfy.sh simplemente ingresando https://ntfy. sh."
+ }
+ ]
+ },
+ {
+ "function": "TOPIC",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "NTFY topic"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tema de NTFY"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Your secret topic."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tu tema secreto."
+ }
+ ]
+ },
+ {
+ "function": "USER",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "NTFY user"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Usuario de NTFY"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enter user if you need (host) an instance with enabled authetication."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Ingrese usuario si necesita (alojar) una instancia con autenticación habilitada."
+ }
+ ]
+ },
+ {
+ "function": "PASSWORD",
+ "type": "password",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "NTFY password"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Contraseña de NTFY"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enter password if you need (host) an instance with enabled authetication."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Ingrese la contraseña si necesita (host) una instancia con autenticación habilitada."
+ }
+ ]
+ },
+ {
+ "function": "PRIORITY",
+ "type": "text.select",
+ "default_value": "urgent",
+ "options": ["urgent", "high", "default", "low", "min"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Message priority"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "All NTFY messages have a priority, which defines how urgently your phone notifies you. On Android, you can set custom notification sounds and vibration patterns on your phone to map to these priorities (see Android config)."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/_publisher_pushover/config.json b/front/plugins/_publisher_pushover/config.json
index eafa3b38..7e47e8d0 100755
--- a/front/plugins/_publisher_pushover/config.json
+++ b/front/plugins/_publisher_pushover/config.json
@@ -1,431 +1,382 @@
{
- "code_name": "_publisher_pushover",
- "unique_prefix": "PUSHOVER",
- "plugin_type": "publisher",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
- "display_name": [
+ "code_name": "_publisher_pushover",
+ "unique_prefix": "PUSHOVER",
+ "plugin_type": "publisher",
+ "enabled": true,
+ "data_source": "script",
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "Pushover publisher"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilitar Pushover"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A plugin to publish a notification via the pushover.net"
+ }
+ ],
+ "params": [],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string": "Pushover publisher"
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "language_code": "es_es",
- "string": "Habilitar Pushover"
+ "language_code": "es_es",
+ "string": "N/A"
}
- ],
- "icon": [
+ ]
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string": ""
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
}
- ],
- "description": [
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string": "A plugin to publish a notification via the pushover.net"
+ "language_code": "en_us",
+ "string": "N/A"
}
- ],
- "params": [],
- "database_column_definitions": [
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- }
- ]
- },
- {
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Sent when"
- }
- ]
- },
- {
- "column": "Watched_Value1",
- "css_classes": "col-sm-3",
- "show": true,
- "type": "eval",
- "default_value": "",
- "options": [
- {
- "type": "eval",
- "param": "`${value}`"
- }
- ],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Notification GUID"
- }
- ]
- },
- {
- "column": "Watched_Value2",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "textarea_readonly",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Response"
- }
- ]
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Response code"
- }
- ]
- },
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "device_mac",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device"
- }
- ]
- },
- {
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "textbox_save",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Comments"
- },
- {
- "language_code": "es_es",
- "string": "Comentarios"
- }
- ]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": false,
- "type": "replace",
- "default_value": "",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Status"
- },
- {
- "language_code": "es_es",
- "string": "Estado"
- }
- ]
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "show": false,
- "type": "label",
- "default_value": "",
- "options": [],
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Extra"
- },
- {
- "language_code": "es_es",
- "string": "Extra"
- }
- ]
+ "language_code": "en_us",
+ "string": "Sent when"
}
- ],
- "settings": [
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "eval",
+ "default_value": "",
+ "options": [
{
- "function": "RUN",
- "events": [
- "test"
- ],
- "type": "text.select",
- "default_value": "disabled",
- "options": [
- "disabled",
- "on_notification"
- ],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "When to run"
- },
- {
- "language_code": "es_es",
- "string": "Cuando ejecuta"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Enable sending notifications via Pushover."
- },
- {
- "language_code": "es_es",
- "string": "Habilitar el envío de notificaciones a través de Pushover."
- }
- ]
- },
- {
- "function": "CMD",
- "type": "readonly",
- "default_value": "python3 /app/front/plugins/_publisher_pushover/pushover.py",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Command"
- },
- {
- "language_code": "es_es",
- "string": "Comando"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Command to run"
- },
- {
- "language_code": "es_es",
- "string": "Comando a ejecutar"
- }
- ]
- },
- {
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value": 10,
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Run timeout"
- },
- {
- "language_code": "es_es",
- "string": "Tiempo de espera de ejecución"
- },
- {
- "language_code": "de_de",
- "string": "Wartezeit"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- }
- ]
- },
- {
- "function": "USER_KEY",
- "type": "text",
- "default_value": "USER_KEY",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Pushover USER key"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Your secret Pushsafer USER key."
- }
- ]
- },
- {
- "function": "APP_TOKEN",
- "type": "text",
- "default_value": "APP_TOKEN",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Pushover APP Token"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Your Pushover APP Token."
- }
- ]
- },
- {
- "function": "DEVICE_NAME",
- "type": "text",
- "default_value": "DEVICE_NAME",
- "options": [],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Pushover Device name"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "(Optional) When specifying a device name, notifications will be exclusively sent to the device."
- }
- ]
+ "type": "eval",
+ "param": "`${value}`"
}
- ]
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Notification GUID"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textarea_readonly",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response code"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "device_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": false,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "watched-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "new",
+ "replacement": ""
+ },
+ {
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Extra"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Extra"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["test"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": ["disabled", "on_notification"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuando ejecuta"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable sending notifications via Pushover."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilitar el envío de notificaciones a través de Pushover."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/_publisher_pushover/pushover.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 10,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ }
+ ]
+ },
+ {
+ "function": "USER_KEY",
+ "type": "text",
+ "default_value": "USER_KEY",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Pushover USER key"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Your secret Pushsafer USER key."
+ }
+ ]
+ },
+ {
+ "function": "APP_TOKEN",
+ "type": "text",
+ "default_value": "APP_TOKEN",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Pushover APP Token"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Your Pushover APP Token."
+ }
+ ]
+ },
+ {
+ "function": "DEVICE_NAME",
+ "type": "text",
+ "default_value": "DEVICE_NAME",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Pushover Device name"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "(Optional) When specifying a device name, notifications will be exclusively sent to the device."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/_publisher_pushsafer/config.json b/front/plugins/_publisher_pushsafer/config.json
index 0beda2e9..be390332 100755
--- a/front/plugins/_publisher_pushsafer/config.json
+++ b/front/plugins/_publisher_pushsafer/config.json
@@ -1,321 +1,356 @@
{
- "code_name": "_publisher_pushsafer",
- "unique_prefix": "PUSHSAFER",
- "plugin_type": "publisher",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "display_name" : [
+ "code_name": "_publisher_pushsafer",
+ "unique_prefix": "PUSHSAFER",
+ "plugin_type": "publisher",
+ "enabled": true,
+ "data_source": "script",
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "Pushsafer publisher"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilitar Pushsafer"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A plugin to publish a notification via the Pushsafer gateway."
+ }
+ ],
+ "params": [],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string" : "Pushsafer publisher"
- },
- {
- "language_code": "es_es",
- "string" : "Habilitar Pushsafer"
- }
- ],
- "icon":[{
- "language_code": "en_us",
- "string" : ""
- }],
- "description": [
- {
- "language_code": "en_us",
- "string" : "A plugin to publish a notification via the Pushsafer gateway."
- }
- ],
- "params" : [
- ],
- "database_column_definitions":
- [
- {
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- }]
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Sent when"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "eval",
+ "default_value": "",
+ "options": [
+ {
+ "type": "eval",
+ "param": "`${value}`"
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Notification GUID"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textarea_readonly",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response code"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "device_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
},
{
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Sent when"
- }]
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": false,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
},
{
- "column": "Watched_Value1",
- "css_classes": "col-sm-3",
- "show": true,
- "type": "eval",
- "default_value":"",
- "options": [
- {
- "type": "eval",
- "param": "`${value}`"
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Notification GUID"
- }]
+ "equals": "watched-changed",
+ "replacement": ""
},
{
- "column": "Watched_Value2",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "textarea_readonly",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Response"
- }]
+ "equals": "new",
+ "replacement": ""
},
{
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Response code"
- }]
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
},
{
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "device_mac",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Device"
- }
- ]
- },
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "textbox_save",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Comments"
- },
- {
- "language_code": "es_es",
- "string" : "Comentarios"
- }]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": false,
- "type": "replace",
- "default_value":"",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Status"
- },
- {
- "language_code": "es_es",
- "string" : "Estado"
- }]
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Extra"
- },
- {
- "language_code": "es_es",
- "string" : "Extra"
- }]
- }
- ],
- "settings":[
- {
- "function": "RUN",
- "events": ["test"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "on_notification" ],
- "localized": ["name", "description"],
- "name" :[{
- "language_code": "en_us",
- "string" : "When to run"
- },
- {
- "language_code": "es_es",
- "string" : "Cuando ejecuta"
- }],
- "description": [
- {
- "language_code": "en_us",
- "string" : "Enable sending notifications via Pushsafer."
- },
- {
- "language_code": "es_es",
- "string" : "Habilitar el envío de notificaciones a través de Pushsafer."
- }
- ]
+ "language_code": "en_us",
+ "string": "Extra"
},
{
- "function": "CMD",
- "type": "readonly",
- "default_value":"python3 /app/front/plugins/_publisher_pushsafer/pushsafer.py",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Command"
- },
- {
- "language_code": "es_es",
- "string" : "Comando"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Command to run"
- },
- {
- "language_code": "es_es",
- "string" : "Comando a ejecutar"
- }]
+ "language_code": "es_es",
+ "string": "Extra"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["test"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": ["disabled", "on_notification"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
},
{
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value": 10,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Run timeout"
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo de espera de ejecución"
- },
- {
- "language_code": "de_de",
- "string" : "Wartezeit"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- }]
- },
- {
- "function": "TOKEN",
- "type": "text",
- "default_value": "ApiKey",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Pushsafer token"
- },
- {
- "language_code": "es_es",
- "string" : "Token de Pushsafer"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Your secret Pushsafer API key (token)."
- },
- {
- "language_code": "es_es",
- "string" : "Su clave secreta de la API de Pushsafer (token)."
- }]
- }
- ]
+ "language_code": "es_es",
+ "string": "Cuando ejecuta"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable sending notifications via Pushsafer."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilitar el envío de notificaciones a través de Pushsafer."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/_publisher_pushsafer/pushsafer.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 10,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "TOKEN",
+ "type": "text",
+ "default_value": "ApiKey",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Pushsafer token"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Token de Pushsafer"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Your secret Pushsafer API key (token)."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Su clave secreta de la API de Pushsafer (token)."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/_publisher_webhook/config.json b/front/plugins/_publisher_webhook/config.json
index b04f79b9..9dfe6aaf 100755
--- a/front/plugins/_publisher_webhook/config.json
+++ b/front/plugins/_publisher_webhook/config.json
@@ -1,409 +1,460 @@
{
- "code_name": "_publisher_webhook",
- "unique_prefix": "WEBHOOK",
- "plugin_type": "publisher",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "display_name" : [
+ "code_name": "_publisher_webhook",
+ "unique_prefix": "WEBHOOK",
+ "plugin_type": "publisher",
+ "enabled": true,
+ "data_source": "script",
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "Webhook publisher"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilitar Webhook"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A plugin to publish a notification via Webhooks."
+ }
+ ],
+ "params": [],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string" : "Webhook publisher"
- },
- {
- "language_code": "es_es",
- "string" : "Habilitar Webhook"
- }
- ],
- "icon":[{
- "language_code": "en_us",
- "string" : ""
- }],
- "description": [
- {
- "language_code": "en_us",
- "string" : "A plugin to publish a notification via Webhooks."
- }
- ],
- "params" : [
- ],
- "database_column_definitions":
- [
- {
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- }]
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Sent when"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "eval",
+ "default_value": "",
+ "options": [
+ {
+ "type": "eval",
+ "param": "`${value}`"
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Notification GUID"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textarea_readonly",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response (stdout)"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textarea_readonly",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Response (stderr)"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "device_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
},
{
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Sent when"
- }]
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": false,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
},
{
- "column": "Watched_Value1",
- "css_classes": "col-sm-3",
- "show": true,
- "type": "eval",
- "default_value":"",
- "options": [
- {
- "type": "eval",
- "param": "`${value}`"
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Notification GUID"
- }]
+ "equals": "watched-changed",
+ "replacement": ""
},
{
- "column": "Watched_Value2",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "textarea_readonly",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Response (stdout)"
- }]
+ "equals": "new",
+ "replacement": ""
},
{
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "textarea_readonly",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Response (stderr)"
- }]
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
},
{
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "device_mac",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Device"
- }
- ]
- },
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "textbox_save",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Comments"
- },
- {
- "language_code": "es_es",
- "string" : "Comentarios"
- }]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": false,
- "type": "replace",
- "default_value":"",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Status"
- },
- {
- "language_code": "es_es",
- "string" : "Estado"
- }]
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Extra"
- },
- {
- "language_code": "es_es",
- "string" : "Extra"
- }]
- }
- ],
- "settings":[
- {
- "function": "RUN",
- "events": ["test"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "on_notification" ],
- "localized": ["name", "description"],
- "name" :[{
- "language_code": "en_us",
- "string" : "When to run"
- },
- {
- "language_code": "es_es",
- "string" : "Cuando ejecuta"
- }],
- "description": [
- {
- "language_code": "en_us",
- "string" : "Enable webhooks for notifications. Webhooks help you to connect to a lot of 3rd party tools, such as IFTTT, Zapier or n8n to name a few. Check out this simple n8n guide here to get started. If enabled, configure related settings below."
- },
- {
- "language_code": "es_es",
- "string" : "Habilite webhooks para notificaciones. Los webhooks lo ayudan a conectarse a muchas herramientas de terceros, como IFTTT, Zapier o n8n, por nombrar algunas. Consulte esta sencilla guía de n8n aquí para obtener comenzó. Si está habilitado, configure los ajustes relacionados a continuación."
- }
- ]
+ "language_code": "en_us",
+ "string": "Extra"
},
{
- "function": "CMD",
- "type": "readonly",
- "default_value":"python3 /app/front/plugins/_publisher_webhook/webhook.py",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Command"
- },
- {
- "language_code": "es_es",
- "string" : "Comando"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Command to run"
- },
- {
- "language_code": "es_es",
- "string" : "Comando a ejecutar"
- }]
+ "language_code": "es_es",
+ "string": "Extra"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["test"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": ["disabled", "on_notification"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
},
{
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value": 10,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Run timeout"
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo de espera de ejecución"
- },
- {
- "language_code": "de_de",
- "string" : "Wartezeit"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- }]
- },
- {
- "function": "URL",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Target URL"
- },
- {
- "language_code": "es_es",
- "string" : "URL de destino"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Target URL starting with http:// or https://."
- },
- {
- "language_code": "es_es",
- "string" : "URL de destino comienza con http:// o https://."
- }]
+ "language_code": "es_es",
+ "string": "Cuando ejecuta"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable webhooks for notifications. Webhooks help you to connect to a lot of 3rd party tools, such as IFTTT, Zapier or n8n to name a few. Check out this simple n8n guide here to get started. If enabled, configure related settings below."
},
- {
- "function": "PAYLOAD",
- "type": "text.select",
- "default_value": "json",
- "options": ["json", "html", "text"],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Payload type"
- },
- {
- "language_code": "es_es",
- "string" : "Tipo de carga"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "The Webhook payload data format for the body > attachments > text attribute in the payload json. See an example of the payload here. (e.g.: for discord use text)"
- },
- {
- "language_code": "es_es",
- "string" : "El formato de datos de carga de Webhook para el atributo body > attachments > text en el json de carga. Vea un ejemplo de la carga aquí. (por ejemplo: para discord use text)"
- }]
+ {
+ "language_code": "es_es",
+ "string": "Habilite webhooks para notificaciones. Los webhooks lo ayudan a conectarse a muchas herramientas de terceros, como IFTTT, Zapier o n8n, por nombrar algunas. Consulte esta sencilla guía de n8n aquí para obtener comenzó. Si está habilitado, configure los ajustes relacionados a continuación."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/_publisher_webhook/webhook.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
},
- {
- "function": "REQUEST_METHOD",
- "type": "text.select",
- "default_value": "GET",
- "options": ["GET", "POST", "PUT"],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Request method"
- },
- {
- "language_code": "es_es",
- "string" : "Método de solicitud"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "The HTTP request method to be used for the webhook call."
- },
- {
- "language_code": "es_es",
- "string" : "El método de solicitud HTTP que se utilizará para la llamada de webhook."
- }]
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
},
- {
- "function": "SIZE",
- "type": "integer",
- "default_value": 1024,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Max payload size"
- },
- {
- "language_code": "es_es",
- "string" : "Tamaño máximo de carga útil"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "The maximum size of the webhook payload as number of characters in the passed string. If above limit, it will be truncated and a (text was truncated) message is appended."
- },
- {
- "language_code": "es_es",
- "string" : "El tamaño máximo de la carga útil del webhook como número de caracteres en la cadena pasada. Si supera el límite, se truncará y se agregará un mensaje (text was truncated)."
- }]
- },
- {
- "function": "SECRET",
- "type": "text",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "HMAC Secret"
- },
- {
- "language_code": "es_es",
- "string" : ""
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "When set, use this secret to generate the SHA256-HMAC hex digest value of the request body, which will be passed as the X-Webhook-Signature header to the request. You can find more information here."
- }]
- }
- ]
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 10,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "URL",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Target URL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL de destino"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Target URL starting with http:// or https://."
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL de destino comienza con http:// o https://."
+ }
+ ]
+ },
+ {
+ "function": "PAYLOAD",
+ "type": "text.select",
+ "default_value": "json",
+ "options": ["json", "html", "text"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Payload type"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tipo de carga"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The Webhook payload data format for the body > attachments > text attribute in the payload json. See an example of the payload here. (e.g.: for discord use text)"
+ },
+ {
+ "language_code": "es_es",
+ "string": "El formato de datos de carga de Webhook para el atributo body > attachments > text en el json de carga. Vea un ejemplo de la carga aquí. (por ejemplo: para discord use text)"
+ }
+ ]
+ },
+ {
+ "function": "REQUEST_METHOD",
+ "type": "text.select",
+ "default_value": "GET",
+ "options": ["GET", "POST", "PUT"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Request method"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Método de solicitud"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The HTTP request method to be used for the webhook call."
+ },
+ {
+ "language_code": "es_es",
+ "string": "El método de solicitud HTTP que se utilizará para la llamada de webhook."
+ }
+ ]
+ },
+ {
+ "function": "SIZE",
+ "type": "integer",
+ "default_value": 1024,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Max payload size"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tamaño máximo de carga útil"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The maximum size of the webhook payload as number of characters in the passed string. If above limit, it will be truncated and a (text was truncated) message is appended."
+ },
+ {
+ "language_code": "es_es",
+ "string": "El tamaño máximo de la carga útil del webhook como número de caracteres en la cadena pasada. Si supera el límite, se truncará y se agregará un mensaje (text was truncated)."
+ }
+ ]
+ },
+ {
+ "function": "SECRET",
+ "type": "text",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "HMAC Secret"
+ },
+ {
+ "language_code": "es_es",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When set, use this secret to generate the SHA256-HMAC hex digest value of the request body, which will be passed as the X-Webhook-Signature header to the request. You can find more information here."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/arp_scan/config.json b/front/plugins/arp_scan/config.json
index 8c4613bb..993c7f9e 100755
--- a/front/plugins/arp_scan/config.json
+++ b/front/plugins/arp_scan/config.json
@@ -15,11 +15,7 @@
}
],
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -82,13 +78,8 @@
"always_after_scan",
"on_new_device"
],
- "localized": [
- "name",
- "description"
- ],
- "events": [
- "run"
- ],
+ "localized": ["name", "description"],
+ "events": ["run"],
"name": [
{
"language_code": "en_us",
@@ -123,10 +114,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/arp_scan/script.py userSubnets={subnets}",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -161,10 +149,7 @@
"type": "integer",
"default_value": 300,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -199,10 +184,7 @@
"type": "text",
"default_value": "*/5 * * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -235,20 +217,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- "Watched_Value1",
- "Watched_Value2"
- ],
+ "default_value": ["Watched_Value1", "Watched_Value2"],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -281,19 +257,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new"
- ],
+ "default_value": ["new"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -328,10 +299,7 @@
"type": "text",
"default_value": "sudo arp-scan --ignoredups --retry=6",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -355,9 +323,7 @@
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -381,9 +347,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -407,9 +371,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -436,9 +398,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -461,9 +421,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -486,9 +444,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -528,9 +484,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -547,4 +501,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/csv_backup/config.json b/front/plugins/csv_backup/config.json
index 29af29da..99968bbe 100755
--- a/front/plugins/csv_backup/config.json
+++ b/front/plugins/csv_backup/config.json
@@ -3,7 +3,7 @@
"unique_prefix": "CSVBCKP",
"plugin_type": "system",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
@@ -19,7 +19,7 @@
{
"language_code": "de_de",
"string": "CSV-Sicherung"
- }
+ }
],
"icon": [
{
@@ -39,53 +39,64 @@
{
"language_code": "de_de",
"string": "Ein Plugin zum automatischen Generieren von devices.csv-Backups."
- }
+ }
],
- "params" : [{
- "name" : "overwrite",
- "type" : "setting",
- "value" : "CSVBCKP_overwrite"
+ "params": [
+ {
+ "name": "overwrite",
+ "type": "setting",
+ "value": "CSVBCKP_overwrite"
},
{
- "name" : "location",
- "type" : "setting",
- "value" : "CSVBCKP_location"
+ "name": "location",
+ "type": "setting",
+ "value": "CSVBCKP_location"
}
- ],
+ ],
"settings": [
{
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"schedule",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "schedule",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
"localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuándo ejecutar"
- },
- {
- "language_code":"de_de",
- "string" : "Wann laufen"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "When the backup should be created. A daily or weekly SCHEDULE is a good option."
- },
- {
- "language_code":"es_es",
- "string" : "Cuándo se debe crear la copia de seguridad. Un SCHEDULE diario o semanal es una buena opción."
- },
- {
- "language_code":"de_de",
- "string" : "Wann das Backup erstellt werden soll. Ein täglicher oder wöchentlicher SCHEDULE ist eine gute Option."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wann laufen"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When the backup should be created. A daily or weekly SCHEDULE is a good option."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo se debe crear la copia de seguridad. Un SCHEDULE diario o semanal es una buena opción."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wann das Backup erstellt werden soll. Ein täglicher oder wöchentlicher SCHEDULE ist eine gute Option."
+ }
+ ]
+ },
{
"function": "CMD",
"type": "readonly",
@@ -104,7 +115,7 @@
{
"language_code": "de_de",
"string": "Befehl"
- }
+ }
],
"description": [
{
@@ -118,40 +129,44 @@
{
"language_code": "de_de",
"string": "Befehl zum Ausführen. Dies kann nicht geändert werden"
- }
+ }
]
},
{
"function": "RUN_SCHD",
"type": "text",
- "default_value":"0 2 * * 3",
+ "default_value": "0 2 * * 3",
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- },
- {
- "language_code":"de_de",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the CSVBCKP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración CSVBCKP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- },
- {
- "language_code":"de_de",
- "string" : "Nur aktiviert, wenn Sie schedule in der CSVBCKP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the CSVBCKP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración CSVBCKP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Nur aktiviert, wenn Sie schedule in der CSVBCKP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+ }
+ ]
+ },
{
"function": "RUN_TIMEOUT",
"type": "integer",
@@ -170,7 +185,7 @@
{
"language_code": "de_de",
"string": "Zeitüberschreitung"
- }
+ }
],
"description": [
{
@@ -184,75 +199,80 @@
{
"language_code": "de_de",
"string": "Maximale Zeit in Sekunden, die auf den Abschluss des Skripts gewartet werden soll. Bei Überschreitung dieser Zeit wird das Skript abgebrochen."
- }
+ }
]
},
{
"function": "overwrite",
"type": "boolean",
- "default_value":false,
+ "default_value": false,
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Overwrite file"
- },
- {
- "language_code":"es_es",
- "string" : "Sobrescribir archivo"
- },
- {
- "language_code":"de_de",
- "string" : "Datei überschreiben"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "If the devices.csv file should be always overwritten. If disabled, the date and time is added to the name."
- },
- {
- "language_code":"es_es",
- "string" : "Si el archivo devices.csv siempre debe sobrescribirse. Si está deshabilitado, la fecha y la hora se agregan al nombre."
- },
- {
- "language_code":"de_de",
- "string" : "Wenn die Datei devices.csv immer überschrieben werden soll. Wenn deaktiviert, werden dem Namen Datum und Uhrzeit hinzugefügt."
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Overwrite file"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Sobrescribir archivo"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Datei überschreiben"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "If the devices.csv file should be always overwritten. If disabled, the date and time is added to the name."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Si el archivo devices.csv siempre debe sobrescribirse. Si está deshabilitado, la fecha y la hora se agregan al nombre."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wenn die Datei devices.csv immer überschrieben werden soll. Wenn deaktiviert, werden dem Namen Datum und Uhrzeit hinzugefügt."
+ }
+ ]
},
{
"function": "location",
"type": "text",
- "default_value":"/app/config",
+ "default_value": "/app/config",
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "File location"
- },
- {
- "language_code":"es_es",
- "string" : "Ubicación del archivo"
- },
- {
- "language_code":"de_de",
- "string" : "Speicherort"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Where the devices.csv file should be saved. For example /app/config."
- },
- {
- "language_code":"es_es",
- "string" : "Donde se debe guardar el archivo devices.csv. Por ejemplo /app/config."
- },
- {
- "language_code":"de_de",
- "string" : "Wo die Datei devices.csv gespeichert werden soll. Zum Beispiel /app/config."
- }]
- }
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "File location"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Ubicación del archivo"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Speicherort"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Where the devices.csv file should be saved. For example /app/config."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Donde se debe guardar el archivo devices.csv. Por ejemplo /app/config."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wo die Datei devices.csv gespeichert werden soll. Zum Beispiel /app/config."
+ }
+ ]
+ }
],
- "database_column_definitions":
- [
-
- ]
+ "database_column_definitions": []
}
diff --git a/front/plugins/db_cleanup/config.json b/front/plugins/db_cleanup/config.json
index d7ef0f44..6e047139 100755
--- a/front/plugins/db_cleanup/config.json
+++ b/front/plugins/db_cleanup/config.json
@@ -3,7 +3,7 @@
"unique_prefix": "DBCLNP",
"plugin_type": "system",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
@@ -23,50 +23,55 @@
{
"language_code": "en_us",
"string": "A plugin to schedule database cleanup & upkeep tasks."
- }
- ],
- "params" : [{
- "name" : "pluginskeephistory",
- "type" : "setting",
- "value" : "PLUGINS_KEEP_HIST"
- },
- {
- "name" : "daystokeepevents",
- "type" : "setting",
- "value" : "DAYS_TO_KEEP_EVENTS"
- },
- {
- "name" : "hourstokeepnewdevice",
- "type" : "setting",
- "value" : "HRS_TO_KEEP_NEWDEV"
}
- ],
+ ],
+ "params": [
+ {
+ "name": "pluginskeephistory",
+ "type": "setting",
+ "value": "PLUGINS_KEEP_HIST"
+ },
+ {
+ "name": "daystokeepevents",
+ "type": "setting",
+ "value": "DAYS_TO_KEEP_EVENTS"
+ },
+ {
+ "name": "hourstokeepnewdevice",
+ "type": "setting",
+ "value": "HRS_TO_KEEP_NEWDEV"
+ }
+ ],
"settings": [
{
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"schedule",
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "schedule",
"options": ["disabled", "once", "schedule", "always_after_scan"],
"localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuándo ejecutar"
- },
- {
- "language_code":"de_de",
- "string" : "Wann laufen"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "When the cleanup should be performed. An hourly or daily SCHEDULE is a good option."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wann laufen"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When the cleanup should be performed. An hourly or daily SCHEDULE is a good option."
+ }
+ ]
+ },
{
"function": "CMD",
"type": "readonly",
@@ -85,7 +90,7 @@
{
"language_code": "de_de",
"string": "Befehl"
- }
+ }
],
"description": [
{
@@ -99,40 +104,44 @@
{
"language_code": "de_de",
"string": "Befehl zum Ausführen. Dies kann nicht geändert werden"
- }
+ }
]
},
{
"function": "RUN_SCHD",
"type": "text",
- "default_value":"*/30 * * * *",
+ "default_value": "*/30 * * * *",
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- },
- {
- "language_code":"de_de",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the DBCLNP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración DBCLNP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- },
- {
- "language_code":"de_de",
- "string" : "Nur aktiviert, wenn Sie schedule in der DBCLNP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the DBCLNP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración DBCLNP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Nur aktiviert, wenn Sie schedule in der DBCLNP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+ }
+ ]
+ },
{
"function": "RUN_TIMEOUT",
"type": "integer",
@@ -151,7 +160,7 @@
{
"language_code": "de_de",
"string": "Zeitüberschreitung"
- }
+ }
],
"description": [
{
@@ -165,7 +174,7 @@
{
"language_code": "de_de",
"string": "Maximale Zeit in Sekunden, die auf den Abschluss des Skripts gewartet werden soll. Bei Überschreitung dieser Zeit wird das Skript abgebrochen."
- }
+ }
]
},
{
@@ -189,8 +198,5 @@
}
],
- "database_column_definitions":
- [
-
- ]
+ "database_column_definitions": []
}
diff --git a/front/plugins/ddns_update/config.json b/front/plugins/ddns_update/config.json
index 1a25dbf5..1420b636 100755
--- a/front/plugins/ddns_update/config.json
+++ b/front/plugins/ddns_update/config.json
@@ -14,11 +14,7 @@
],
"data_source": "script",
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -79,21 +75,11 @@
"settings": [
{
"function": "RUN",
- "events": [
- "run"
- ],
+ "events": ["run"],
"type": "text.select",
"default_value": "disabled",
- "options": [
- "disabled",
- "once",
- "schedule",
- "always_after_scan"
- ],
- "localized": [
- "name",
- "description"
- ],
+ "options": ["disabled", "once", "schedule", "always_after_scan"],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -124,10 +110,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/ddns_update/script.py prev_ip={prev_ip} DDNS_UPDATE_URL={DDNS_UPDATE_URL} DDNS_USER={DDNS_USER} DDNS_PASSWORD={DDNS_PASSWORD} DDNS_DOMAIN={DDNS_DOMAIN} ",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -162,10 +145,7 @@
"type": "text",
"default_value": "*/5 * * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -200,10 +180,7 @@
"type": "integer",
"default_value": 30,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -238,10 +215,7 @@
"type": "text",
"default_value": "your_domain.freeddns.org",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -276,10 +250,7 @@
"type": "text",
"default_value": "dynu_user",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -314,10 +285,7 @@
"type": "password",
"default_value": "A0000000B0000000C0000000D0000000",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -352,10 +320,7 @@
"type": "text",
"default_value": "https://api.dynu.com/nic/update?",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -388,19 +353,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- "Watched_Value1"
- ],
+ "default_value": ["Watched_Value1"],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -429,20 +389,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new",
- "watched-changed"
- ],
+ "default_value": ["new", "watched-changed"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -481,9 +435,7 @@
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -506,9 +458,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -531,9 +481,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -555,9 +503,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -580,9 +526,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -605,9 +549,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -647,9 +589,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -666,4 +606,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/dhcp_leases/config.json b/front/plugins/dhcp_leases/config.json
index 2efdb069..9dd217db 100755
--- a/front/plugins/dhcp_leases/config.json
+++ b/front/plugins/dhcp_leases/config.json
@@ -14,11 +14,7 @@
}
],
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"mapped_to_table": "CurrentScan",
"display_name": [
{
@@ -73,9 +69,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -98,9 +92,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -124,9 +116,7 @@
"type": "device_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -150,9 +140,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -175,9 +163,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -201,9 +187,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -226,9 +210,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -252,9 +234,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -277,9 +257,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -302,9 +280,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -327,9 +303,7 @@
"type": "textbox_save",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -352,9 +326,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -381,9 +353,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -423,9 +393,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -445,9 +413,7 @@
"settings": [
{
"function": "RUN",
- "events": [
- "run"
- ],
+ "events": ["run"],
"type": "text.select",
"default_value": "disabled",
"options": [
@@ -457,10 +423,7 @@
"always_after_scan",
"on_new_device"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -495,10 +458,7 @@
"type": "text",
"default_value": "python3 /app/front/plugins/dhcp_leases/script.py paths={paths}",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -531,15 +491,9 @@
{
"function": "paths_to_check",
"type": "list",
- "default_value": [
- "/mnt/dhcp1.leases",
- "/mnt/dhcp2.leases"
- ],
+ "default_value": ["/mnt/dhcp1.leases", "/mnt/dhcp2.leases"],
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -574,10 +528,7 @@
"type": "text",
"default_value": "0 2 * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -612,10 +563,7 @@
"type": "integer",
"default_value": 5,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -648,20 +596,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- "Watched_Value1",
- "Watched_Value4"
- ],
+ "default_value": ["Watched_Value1", "Watched_Value4"],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -694,20 +636,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new",
- "watched-changed"
- ],
+ "default_value": ["new", "watched-changed"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -738,4 +674,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/dhcp_servers/config.json b/front/plugins/dhcp_servers/config.json
index 8af21458..1c3f2d5d 100755
--- a/front/plugins/dhcp_servers/config.json
+++ b/front/plugins/dhcp_servers/config.json
@@ -1,420 +1,486 @@
{
- "code_name": "dhcp_servers",
- "unique_prefix": "DHCPSRVS",
- "plugin_type": "other",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "display_name" : [{
- "language_code":"en_us",
- "string" : "Rogue DHCP"
+ "code_name": "dhcp_servers",
+ "unique_prefix": "DHCPSRVS",
+ "plugin_type": "other",
+ "enabled": true,
+ "data_source": "script",
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "Rogue DHCP"
},
{
- "language_code":"es_es",
- "string" : "Rogue DHCP (DHCP no autorizado)"
- }],
- "icon":[{
- "language_code":"en_us",
- "string" : ""
+ "language_code": "es_es",
+ "string": "Rogue DHCP (DHCP no autorizado)"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
},
{
- "language_code":"es_es",
- "string" : ""
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "This plugin is to use NMAP to monitor for rogue DHCP servers."
+ "language_code": "es_es",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This plugin is to use NMAP to monitor for rogue DHCP servers."
},
{
- "language_code":"es_es",
- "string" : "Este complemento es para usar NMAP para monitorear servidores DHCP no autorizados."
- }],
- "params" : [],
- "database_column_definitions":
- [
+ "language_code": "es_es",
+ "string": "Este complemento es para usar NMAP para monitorear servidores DHCP no autorizados."
+ }
+ ],
+ "params": [],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- },
- {
- "language_code":"es_es",
- "string" : "N/A"
- }]
- } ,
- {
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- },
- {
- "language_code":"es_es",
- "string" : "N/A"
- }]
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "device_ip",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Server Identifier"
- },
- {
- "language_code":"es_es",
- "string" : "Identificador de servidor"
- }]
- },
- {
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Domain Name"
- },
- {
- "language_code":"es_es",
- "string" : "Nombre de dominio"
- }]
- } ,
- {
- "column": "DateTimeCreated",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Created"
- },
- {
- "language_code":"es_es",
- "string" : "Creado"
- }]
- },
- {
- "column": "DateTimeChanged",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Changed"
- },
- {
- "language_code":"es_es",
- "string" : "Cambiado"
- }]
- },
- {
- "column": "Watched_Value1",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Domain Name Server"
- },
- {
- "language_code":"es_es",
- "string" : "Servidor de nombres de dominio"
- }]
- },
- {
- "column": "Watched_Value2",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "IP Offered"
- },
- {
- "language_code":"es_es",
- "string" : "IP ofrecida"
- }]
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Interface"
- },
- {
- "language_code":"es_es",
- "string" : "Interfaz"
- }]
- } ,
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Router"
- },
- {
- "language_code":"es_es",
- "string" : "Router"
- }]
- } ,
- {
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "textbox_save",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Comments"
- },
- {
- "language_code":"es_es",
- "string" : "Comentarios"
- }]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "replace",
- "default_value":"",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Status"
- },
- {
- "language_code":"es_es",
- "string" : "Estado"
- }]
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Extra info"
- },
- {
- "language_code":"es_es",
- "string" : "Información extra"
- }]
- }
- ],
- "settings":[
- {
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuando ejecutar"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Enable a regular scan of rogue DHCP servers. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings. ⚠ Use the same schedule if you have multiple Device scanners enabled."
- },
- {
- "language_code":"es_es",
- "string" : "Habilite un escaneo regular de servidores DHCP no autorizados. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el análisis se ejecuta solo una vez al inicio de la aplicación (contenedor) o después de actualizar su configuración."
- }]
- },
- {
- "function": "CMD",
- "type": "text",
- "default_value":"python3 /app/front/plugins/dhcp_servers/script.py",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Command"
- },
- {
- "language_code":"es_es",
- "string" : "Comando"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Command to run"
- },
- {
- "language_code":"es_es",
- "string" : "Comando a ejecutar"
- }]
- },
- {
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"0 2 * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Programar"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the DHCPSRVS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración de DHCPSRVS_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- }]
- },
- {
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value":10,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Run timeout"
- },
- {
- "language_code":"es_es",
- "string" : "Tiempo de espera de ejecución"
- },
- {
- "language_code":"de_de",
- "string" : "Wartezeit"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code":"es_es",
- "string" : "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- }]
- },
- {
- "function": "WATCH",
- "type": "text.multiselect",
- "default_value":["Watched_Value1"],
- "options": ["Watched_Value1","Watched_Value2","Watched_Value3","Watched_Value4"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Watched"
- },
- {
- "language_code":"es_es",
- "string" : "Visto"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is Domain Name ServerWatched_Value2 is IP OfferedWatched_Value3 is Interface Watched_Value4 is Router
"
- },
- {
- "language_code":"es_es",
- "string" : "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es servidor de nombres de dominioWatched_Value2 es IP ofrecidaWatched_Value3 es Interfaz Watched_Value4 es enrutador
"
- }]
- },
- {
- "function": "REPORT_ON",
- "type": "text.multiselect",
- "default_value":["new","watched-changed"],
- "options": ["new","watched-changed","watched-not-changed"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Report on"
- },
- {
- "language_code":"es_es",
- "string" : "Informar sobre"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
- },
- {
- "language_code":"es_es",
- "string" : "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). watched-changed significa que las columnas Watched_ValueN seleccionadas cambiaron."
- }]
+ "language_code": "es_es",
+ "string": "N/A"
}
- ]
+ ]
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "device_ip",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Server Identifier"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Identificador de servidor"
+ }
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Domain Name"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Nombre de dominio"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeCreated",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Created"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Creado"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeChanged",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Changed"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cambiado"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Domain Name Server"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Servidor de nombres de dominio"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "IP Offered"
+ },
+ {
+ "language_code": "es_es",
+ "string": "IP ofrecida"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Interface"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Interfaz"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Router"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Router"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "watched-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "new",
+ "replacement": ""
+ },
+ {
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Extra info"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Información extra"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuando ejecutar"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable a regular scan of rogue DHCP servers. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings. ⚠ Use the same schedule if you have multiple Device scanners enabled."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilite un escaneo regular de servidores DHCP no autorizados. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el análisis se ejecuta solo una vez al inicio de la aplicación (contenedor) o después de actualizar su configuración."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "text",
+ "default_value": "python3 /app/front/plugins/dhcp_servers/script.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "0 2 * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Programar"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the DHCPSRVS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración de DHCPSRVS_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 10,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "WATCH",
+ "type": "text.multiselect",
+ "default_value": ["Watched_Value1"],
+ "options": [
+ "Watched_Value1",
+ "Watched_Value2",
+ "Watched_Value3",
+ "Watched_Value4"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Watched"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Visto"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is Domain Name ServerWatched_Value2 is IP OfferedWatched_Value3 is Interface Watched_Value4 is Router
"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es servidor de nombres de dominioWatched_Value2 es IP ofrecidaWatched_Value3 es Interfaz Watched_Value4 es enrutador
"
+ }
+ ]
+ },
+ {
+ "function": "REPORT_ON",
+ "type": "text.multiselect",
+ "default_value": ["new", "watched-changed"],
+ "options": ["new", "watched-changed", "watched-not-changed"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Report on"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Informar sobre"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). watched-changed significa que las columnas Watched_ValueN seleccionadas cambiaron."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/events_notifications/config.json b/front/plugins/events_notifications/config.json
index 8ea02529..d7bb43bf 100755
--- a/front/plugins/events_notifications/config.json
+++ b/front/plugins/events_notifications/config.json
@@ -6,11 +6,7 @@
"enabled": true,
"data_source": "template",
"show_ui": false,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -159,9 +155,7 @@
],
"type": "string",
"default_value": "1",
- "localized": [
- "name"
- ]
+ "localized": ["name"]
},
{
"name": [
@@ -172,9 +166,7 @@
],
"type": "string",
"default_value": "device_down",
- "localized": [
- "name"
- ]
+ "localized": ["name"]
},
{
"name": [
@@ -185,15 +177,10 @@
],
"type": "integer",
"default_value": 3,
- "localized": [
- "name"
- ]
+ "localized": ["name"]
}
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -213,10 +200,7 @@
"maxLength": 50,
"default_value": [],
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -235,10 +219,7 @@
"type": "text",
"default_value": "UPDATE Devices SET dev_AlertDeviceDown = {KNWN_dev_AlertDeviceDown}, dev_AlertEvents = {KNWN_dev_AlertEvents} WHERE dev_MAC in ({target_macs})",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -258,10 +239,7 @@
"maxLength": 50,
"default_value": "(unknown)",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -284,10 +262,7 @@
"override": false
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -307,10 +282,7 @@
"maxLength": 30,
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -330,10 +302,7 @@
"maxLength": 250,
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -355,10 +324,7 @@
"override": false
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -381,10 +347,7 @@
"override": false
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -403,10 +366,7 @@
"type": "string",
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -426,10 +386,7 @@
"format": "date-time",
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -449,10 +406,7 @@
"format": "date-time",
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -472,10 +426,7 @@
"maxLength": 50,
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -497,10 +448,7 @@
"override": true
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -522,10 +470,7 @@
"override": true
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -547,10 +492,7 @@
"override": false
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -572,10 +514,7 @@
"override": true
},
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -594,10 +533,7 @@
"type": "integer.checkbox",
"default_value": 0,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -616,10 +552,7 @@
"type": "integer",
"default_value": 0,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -639,10 +572,7 @@
"format": "date-time",
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -661,10 +591,7 @@
"type": "integer.checkbox",
"default_value": 1,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -683,10 +610,7 @@
"type": "integer.checkbox",
"default_value": true,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -706,10 +630,7 @@
"maxLength": 250,
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -728,10 +649,7 @@
"type": "integer.checkbox",
"default_value": 0,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -750,10 +668,7 @@
"type": "string",
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -772,10 +687,7 @@
"type": "readonly",
"default_value": 0,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -794,10 +706,7 @@
"type": "string",
"default_value": "",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -835,4 +744,4 @@
"dev_Icon"
],
"additionalProperties": false
-}
\ No newline at end of file
+}
diff --git a/front/plugins/internet_ip/config.json b/front/plugins/internet_ip/config.json
index 74a82c96..7a800614 100755
--- a/front/plugins/internet_ip/config.json
+++ b/front/plugins/internet_ip/config.json
@@ -15,11 +15,7 @@
],
"data_source": "script",
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -66,21 +62,11 @@
"settings": [
{
"function": "RUN",
- "events": [
- "run"
- ],
+ "events": ["run"],
"type": "text.select",
"default_value": "schedule",
- "options": [
- "disabled",
- "once",
- "schedule",
- "always_after_scan"
- ],
- "localized": [
- "name",
- "description"
- ],
+ "options": ["disabled", "once", "schedule", "always_after_scan"],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -111,10 +97,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/internet_ip/script.py prev_ip={prev_ip} INTRNT_DIG_GET_IP_ARG={INTRNT_DIG_GET_IP_ARG}",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -149,10 +132,7 @@
"type": "text",
"default_value": "-4 myip.opendns.com @resolver1.opendns.com",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -187,10 +167,7 @@
"type": "text",
"default_value": "*/5 * * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -225,10 +202,7 @@
"type": "integer",
"default_value": 30,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -263,10 +237,7 @@
"type": "integer",
"default_value": 3,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -283,19 +254,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- "Watched_Value1"
- ],
+ "default_value": ["Watched_Value1"],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -324,20 +290,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new",
- "watched-changed"
- ],
+ "default_value": ["new", "watched-changed"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -377,9 +337,7 @@
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -403,9 +361,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -428,9 +384,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -446,29 +400,29 @@
"column": "Watched_Value2",
"css_classes": "col-sm-2",
"show": true,
- "type": "textarea_readonly",
- "default_value":"",
+ "type": "textarea_readonly",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[
+ "name": [
{
"language_code": "en_us",
- "string" : "Response"
+ "string": "Response"
}
]
- },
+ },
{
"column": "Watched_Value3",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[
+ "name": [
{
"language_code": "en_us",
- "string" : "Retries needed"
+ "string": "Retries needed"
}
]
},
@@ -483,9 +437,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -508,9 +460,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -534,9 +484,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -576,9 +524,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -595,4 +541,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/internet_speedtest/config.json b/front/plugins/internet_speedtest/config.json
index 74dc4832..33cebed8 100755
--- a/front/plugins/internet_speedtest/config.json
+++ b/front/plugins/internet_speedtest/config.json
@@ -5,11 +5,7 @@
"enabled": true,
"data_source": "script",
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -49,9 +45,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -74,9 +68,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -99,9 +91,7 @@
"type": "url",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -120,9 +110,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -145,9 +133,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -166,9 +152,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -208,9 +192,7 @@
"hexColor": "#05483C"
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -246,9 +228,7 @@
"hexColor": "#05483C"
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -267,9 +247,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -292,9 +270,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -317,9 +293,7 @@
"type": "textbox_save",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -359,9 +333,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -384,9 +356,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -406,21 +376,11 @@
"settings": [
{
"function": "RUN",
- "events": [
- "run"
- ],
+ "events": ["run"],
"type": "text.select",
"default_value": "disabled",
- "options": [
- "disabled",
- "once",
- "schedule",
- "always_after_scan"
- ],
- "localized": [
- "name",
- "description"
- ],
+ "options": ["disabled", "once", "schedule", "always_after_scan"],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -451,10 +411,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/internet_speedtest/script.py",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -489,10 +446,7 @@
"type": "text",
"default_value": "*/30 * * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -527,10 +481,7 @@
"type": "integer",
"default_value": 60,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -570,10 +521,7 @@
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -609,10 +557,7 @@
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -643,4 +588,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/known_template/config.json b/front/plugins/known_template/config.json
index 229db4e1..be4380a6 100755
--- a/front/plugins/known_template/config.json
+++ b/front/plugins/known_template/config.json
@@ -1,684 +1,690 @@
-{
+{
"code_name": "known_template",
"template_type": "database-entry",
"unique_prefix": "KNWN",
"plugin_type": "system",
"enabled": true,
- "data_source": "template",
- "show_ui": false,
+ "data_source": "template",
+ "show_ui": false,
"localized": ["display_name", "description", "icon"],
- "display_name": [{
+ "display_name": [
+ {
"language_code": "en_us",
"string": "Known Devices"
- }],
- "description": [{
- "language_code": "en_us",
- "string": "The template used for known devices."
- }],
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The template used for known devices."
+ }
+ ],
"icon": [
{
"language_code": "en_us",
"string": ""
}
],
- "params" : [
+ "params": [
{
- "name" : "target_macs",
- "type" : "setting",
- "value" : "KNWN_target_macs"
- },
- {
- "name" : "dev_AlertDeviceDown",
- "type" : "setting",
- "value" : "KNWN_dev_AlertDeviceDown"
- },
- {
- "name" : "dev_AlertEvents",
- "type" : "setting",
- "value" : "KNWN_dev_AlertEvents"
- },
- {
- "name" : "trigger_ids",
- "type" : "array",
- "value" : "trigger.Object_PrimaryID"
+ "name": "target_macs",
+ "type": "setting",
+ "value": "KNWN_target_macs"
},
{
- "name" : "trigger_objects",
- "type" : "array",
- "value" : "trigger"
+ "name": "dev_AlertDeviceDown",
+ "type": "setting",
+ "value": "KNWN_dev_AlertDeviceDown"
+ },
+ {
+ "name": "dev_AlertEvents",
+ "type": "setting",
+ "value": "KNWN_dev_AlertEvents"
+ },
+ {
+ "name": "trigger_ids",
+ "type": "array",
+ "value": "trigger.Object_PrimaryID"
+ },
+ {
+ "name": "trigger_objects",
+ "type": "array",
+ "value": "trigger"
}
- ],
- "settings":[
+ ],
+ "settings": [
+ {
+ "function": "FLOW",
+ "type": "json",
+ "default_value": [
{
- "function": "FLOW",
- "type": "json",
- "default_value": [{
- "name":"apply_template",
- "trigger": [
- {
- "object_event": "new",
- "object_filter": "",
- "object": "Devices"
- }
- ],
- "steps": [
- {
- "step_type":"wait",
- "params": [
- {
- "days": 3,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
- }
- ]
- },
- {
- "step_type":"condition",
- "params": [
- {
- "left": {
- "value": "triggers[0].object['dev_NewDevice']",
- "use_quotes": true,
- "js_template": "'{value}'.toString()"
- },
- "operator": {
- "value" : "==",
- "data_type": "boolean"
- },
- "right": {
- "value": true,
- "use_quotes": false,
- "js_template": "'{value}'.toString()"
- }
- }
- ]
- },
- {
- "step_type":"action",
- "params": [
- {
- "type": "plugin",
- "params":
- {
- "unique_prefix": "KNWN",
- "overrides":[
- {
- "object_path": "settings.0",
- "key":"function",
- "value":"target_macs",
- "target_property":"default_value",
- "desired_value": "triggers.keys"
- }
- ]
- }
-
- }
- ]
- }
+ "name": "apply_template",
+ "trigger": [
+ {
+ "object_event": "new",
+ "object_filter": "",
+ "object": "Devices"
+ }
+ ],
+ "steps": [
+ {
+ "step_type": "wait",
+ "params": [
+ {
+ "days": 3,
+ "hours": 0,
+ "minutes": 0,
+ "seconds": 0
+ }
]
- }],
- "options": [],
- "localized": ["name", "description"],
- "name": [
+ },
{
- "language_code": "en_us",
- "string": "Plugin flow"
- }
- ],
- "description": [
+ "step_type": "condition",
+ "params": [
+ {
+ "left": {
+ "value": "triggers[0].object['dev_NewDevice']",
+ "use_quotes": true,
+ "js_template": "'{value}'.toString()"
+ },
+ "operator": {
+ "value": "==",
+ "data_type": "boolean"
+ },
+ "right": {
+ "value": true,
+ "use_quotes": false,
+ "js_template": "'{value}'.toString()"
+ }
+ }
+ ]
+ },
{
- "language_code": "en_us",
- "string": "This flow makes sure the template is applied to devices that are older than 3 days."
- }
- ]
- },
- {
- "function": "target_macs",
- "type": "list.readonly",
- "maxLength": 50,
- "default_value": [],
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Target devices"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The MAC address of the devices to update. Uneditable. This parameter is dynamically updated via a Flow."
- }
- ]
- },
- {
- "function": "CMD",
- "type": "text",
- "default_value":"UPDATE Devices SET dev_AlertDeviceDown = {KNWN_dev_AlertDeviceDown}, dev_AlertEvents = {KNWN_dev_AlertEvents} WHERE dev_MAC in ({target_macs})",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "UPDATE SQL"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "This SQL query is used to update target devices."
- }]
- },
- {
- "function": "dev_Name",
- "type": "readonly",
- "maxLength": 50,
- "default_value": "(unknown)",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Name"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The name of the device. Uneditable as internal functionality is dependent on specific new device names."
- }
- ]
- },
- {
- "function": "dev_Owner",
- "type": "string",
- "maxLength": 30,
- "default_value": "House",
- "override_value": {
- "override": false
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Owner"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The owner of the device."
- }
- ]
- },
- {
- "function": "dev_DeviceType",
- "type": "string",
- "maxLength": 30,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Type"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The type of the device."
- }
- ]
- },
- {
- "function": "dev_Vendor",
- "type": "readonly",
- "maxLength": 250,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Vendor"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The vendor of the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_Favorite",
- "type": "integer.checkbox",
- "default_value": 0,
- "override_value": {
- "override": false
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Favorite Device"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device is marked as a favorite."
- }
- ]
- },
- {
- "function": "dev_Group",
- "type": "string",
- "maxLength": 10,
- "default_value": "",
- "override_value": {
- "override": false
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Group"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The group to which the device belongs."
- }
- ]
- },
- {
- "function": "dev_Comments",
- "type": "string",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Comments"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Additional comments or notes about the device."
- }
- ]
- },
- {
- "function": "dev_FirstConnection",
- "type": "readonly",
- "format": "date-time",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "First Connection"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The date and time of the first connection with the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_LastConnection",
- "type": "readonly",
- "format": "date-time",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Last Connection"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The date and time of the last connection with the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_LastIP",
- "type": "readonly",
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Last IP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The last known IP address of the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_StaticIP",
- "type": "integer.checkbox",
- "default_value": 1,
- "override_value": {
- "override": true
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Static IP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device has a static IP address."
- }
- ]
- },
- {
- "function": "dev_ScanCycle",
- "type": "integer.checkbox",
- "default_value": 1,
- "override_value": {
- "override": true
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Scan Cycle"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The default value of the Scan device dropdown. Enable if newly discovered devices should be scanned."
- }
- ]
- },
- {
- "function": "dev_LogEvents",
- "type": "integer.checkbox",
- "default_value": 0,
- "override_value": {
- "override": false
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Log Events"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether events related to the device shouldbe logged."
- }]
- },
- {
- "function": "dev_AlertEvents",
- "type": "integer.checkbox",
- "default_value": 0,
- "override_value": {
- "override": true
- },
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Alert Events"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether events related to the device should trigger alerts. The default value of the Alert All Events checkbox."
- }
- ]
- },
- {
- "function": "dev_AlertDeviceDown",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Alert Device Down"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether an alert should be triggered when the device goes down. The default value of the Alert Down checkbox."
- }
- ]
- },
- {
- "function": "dev_SkipRepeated",
- "type": "integer",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Skip Repeated"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The default value of the Skip repeated notifications for dropdown. Enter number of hours for which repeated notifications should be ignored for. If you enter 0 then you get notified on all events."
- }
- ]
- },
- {
- "function": "dev_LastNotification",
- "type": "readonly",
- "format": "date-time",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Last Notification"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The date and time of the last notification sent for the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_PresentLastScan",
- "type": "integer.checkbox",
- "default_value": 1,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Present Last Scan"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device should be marked as present after detected in a scan."
- }
- ]
- },
- {
- "function": "dev_NewDevice",
- "type": "integer.checkbox",
- "default_value": true,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "New Device"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device is considered a new device. The default value of the New Device checkbox."
- }
- ]
- },
- {
- "function": "dev_Location",
- "type": "string",
- "maxLength": 250,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Location"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The location of the device."
- }
- ]
- },
- {
- "function": "dev_Archived",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Archived"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device is archived. The default value of the Archived checkbox."
- }
- ]
- },
- {
- "function": "dev_Network_Node_MAC_ADDR",
- "type": "string",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Network Node MAC Address"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The MAC address of the network node."
- }
- ]
- },
- {
- "function": "dev_Network_Node_port",
- "type": "readonly",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Network Node Port"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The port number of the network node. Uneditable."
- }
- ]
- },
- {
- "function": "dev_Icon",
- "type": "string",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Icon"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The icon associated with the device. Check the documentation on icons for more details."
+ "step_type": "action",
+ "params": [
+ {
+ "type": "plugin",
+ "params": {
+ "unique_prefix": "KNWN",
+ "overrides": [
+ {
+ "object_path": "settings.0",
+ "key": "function",
+ "value": "target_macs",
+ "target_property": "default_value",
+ "desired_value": "triggers.keys"
+ }
+ ]
+ }
+ }
+ ]
}
]
}
+ ],
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Plugin flow"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This flow makes sure the template is applied to devices that are older than 3 days."
+ }
+ ]
+ },
+ {
+ "function": "target_macs",
+ "type": "list.readonly",
+ "maxLength": 50,
+ "default_value": [],
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Target devices"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The MAC address of the devices to update. Uneditable. This parameter is dynamically updated via a Flow."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "text",
+ "default_value": "UPDATE Devices SET dev_AlertDeviceDown = {KNWN_dev_AlertDeviceDown}, dev_AlertEvents = {KNWN_dev_AlertEvents} WHERE dev_MAC in ({target_macs})",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "UPDATE SQL"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This SQL query is used to update target devices."
+ }
+ ]
+ },
+ {
+ "function": "dev_Name",
+ "type": "readonly",
+ "maxLength": 50,
+ "default_value": "(unknown)",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Name"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The name of the device. Uneditable as internal functionality is dependent on specific new device names."
+ }
+ ]
+ },
+ {
+ "function": "dev_Owner",
+ "type": "string",
+ "maxLength": 30,
+ "default_value": "House",
+ "override_value": {
+ "override": false
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Owner"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The owner of the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_DeviceType",
+ "type": "string",
+ "maxLength": 30,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Type"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The type of the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_Vendor",
+ "type": "readonly",
+ "maxLength": 250,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Vendor"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The vendor of the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_Favorite",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "override_value": {
+ "override": false
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Favorite Device"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device is marked as a favorite."
+ }
+ ]
+ },
+ {
+ "function": "dev_Group",
+ "type": "string",
+ "maxLength": 10,
+ "default_value": "",
+ "override_value": {
+ "override": false
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Group"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The group to which the device belongs."
+ }
+ ]
+ },
+ {
+ "function": "dev_Comments",
+ "type": "string",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Comments"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Additional comments or notes about the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_FirstConnection",
+ "type": "readonly",
+ "format": "date-time",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "First Connection"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The date and time of the first connection with the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_LastConnection",
+ "type": "readonly",
+ "format": "date-time",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last Connection"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The date and time of the last connection with the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_LastIP",
+ "type": "readonly",
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last IP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The last known IP address of the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_StaticIP",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "override_value": {
+ "override": true
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Static IP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device has a static IP address."
+ }
+ ]
+ },
+ {
+ "function": "dev_ScanCycle",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "override_value": {
+ "override": true
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Scan Cycle"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The default value of the Scan device dropdown. Enable if newly discovered devices should be scanned."
+ }
+ ]
+ },
+ {
+ "function": "dev_LogEvents",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "override_value": {
+ "override": false
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Log Events"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether events related to the device shouldbe logged."
+ }
+ ]
+ },
+ {
+ "function": "dev_AlertEvents",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "override_value": {
+ "override": true
+ },
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Alert Events"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether events related to the device should trigger alerts. The default value of the Alert All Events checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_AlertDeviceDown",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Alert Device Down"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether an alert should be triggered when the device goes down. The default value of the Alert Down checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_SkipRepeated",
+ "type": "integer",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Skip Repeated"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The default value of the Skip repeated notifications for dropdown. Enter number of hours for which repeated notifications should be ignored for. If you enter 0 then you get notified on all events."
+ }
+ ]
+ },
+ {
+ "function": "dev_LastNotification",
+ "type": "readonly",
+ "format": "date-time",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last Notification"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The date and time of the last notification sent for the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_PresentLastScan",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Present Last Scan"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device should be marked as present after detected in a scan."
+ }
+ ]
+ },
+ {
+ "function": "dev_NewDevice",
+ "type": "integer.checkbox",
+ "default_value": true,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "New Device"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device is considered a new device. The default value of the New Device checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_Location",
+ "type": "string",
+ "maxLength": 250,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Location"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The location of the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_Archived",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Archived"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device is archived. The default value of the Archived checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_Network_Node_MAC_ADDR",
+ "type": "string",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Network Node MAC Address"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The MAC address of the network node."
+ }
+ ]
+ },
+ {
+ "function": "dev_Network_Node_port",
+ "type": "readonly",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Network Node Port"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The port number of the network node. Uneditable."
+ }
+ ]
+ },
+ {
+ "function": "dev_Icon",
+ "type": "string",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Icon"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The icon associated with the device. Check the documentation on icons for more details."
+ }
+ ]
+ }
],
- "required": [
- "dev_MAC",
- "dev_Name",
- "dev_Owner",
- "dev_FirstConnection",
- "dev_LastConnection",
- "dev_LastIP",
- "dev_StaticIP",
- "dev_ScanCycle",
- "dev_LogEvents",
- "dev_AlertEvents",
- "dev_AlertDeviceDown",
- "dev_SkipRepeated",
- "dev_LastNotification",
- "dev_PresentLastScan",
- "dev_NewDevice",
- "dev_Location",
- "dev_Archived",
- "dev_Network_Node_MAC_ADDR",
- "dev_Network_Node_port",
- "dev_Icon"
- ],
- "additionalProperties": false
- }
-
-
-
\ No newline at end of file
+ "required": [
+ "dev_MAC",
+ "dev_Name",
+ "dev_Owner",
+ "dev_FirstConnection",
+ "dev_LastConnection",
+ "dev_LastIP",
+ "dev_StaticIP",
+ "dev_ScanCycle",
+ "dev_LogEvents",
+ "dev_AlertEvents",
+ "dev_AlertDeviceDown",
+ "dev_SkipRepeated",
+ "dev_LastNotification",
+ "dev_PresentLastScan",
+ "dev_NewDevice",
+ "dev_Location",
+ "dev_Archived",
+ "dev_Network_Node_MAC_ADDR",
+ "dev_Network_Node_port",
+ "dev_Icon"
+ ],
+ "additionalProperties": false
+}
diff --git a/front/plugins/maintenance/config.json b/front/plugins/maintenance/config.json
index e0189ca4..2bbbf5d2 100755
--- a/front/plugins/maintenance/config.json
+++ b/front/plugins/maintenance/config.json
@@ -3,14 +3,14 @@
"unique_prefix": "MAINT",
"plugin_type": "system",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
"string": "Maintenance"
- }
+ }
],
"icon": [
{
@@ -24,33 +24,42 @@
"string": "A plugin for maintenance tasks."
}
],
- "params" : [
- ],
+ "params": [],
"settings": [
{
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"schedule",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "schedule",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
"localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuándo ejecutar"
- },
- {
- "language_code":"de_de",
- "string" : "Wann laufen"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "When the maintenance tasks should run. A daily or weekly SCHEDULE is a good option."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wann laufen"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When the maintenance tasks should run. A daily or weekly SCHEDULE is a good option."
+ }
+ ]
+ },
{
"function": "CMD",
"type": "readonly",
@@ -69,7 +78,7 @@
{
"language_code": "de_de",
"string": "Befehl"
- }
+ }
],
"description": [
{
@@ -83,40 +92,44 @@
{
"language_code": "de_de",
"string": "Befehl zum Ausführen. Dies kann nicht geändert werden"
- }
+ }
]
},
{
"function": "RUN_SCHD",
"type": "text",
- "default_value":"0 2 * * *",
+ "default_value": "0 2 * * *",
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- },
- {
- "language_code":"de_de",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the MAINT_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración MAINT_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- },
- {
- "language_code":"de_de",
- "string" : "Nur aktiviert, wenn Sie schedule in der CSVBCKP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the MAINT_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración MAINT_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Nur aktiviert, wenn Sie schedule in der CSVBCKP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+ }
+ ]
+ },
{
"function": "RUN_TIMEOUT",
"type": "integer",
@@ -135,7 +148,7 @@
{
"language_code": "de_de",
"string": "Zeitüberschreitung"
- }
+ }
],
"description": [
{
@@ -149,7 +162,7 @@
{
"language_code": "de_de",
"string": "Maximale Zeit in Sekunden, die auf den Abschluss des Skripts gewartet werden soll. Bei Überschreitung dieser Zeit wird das Skript abgebrochen."
- }
+ }
]
},
{
@@ -158,19 +171,20 @@
"default_value": 250000,
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Log length"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "How many last app.log lines to keep. If LOG_LEVEL is set to debug the app generates about 10000 lines per hour, so when debugging an issue the recommended setting should cover the bug occurence timeframe. For example for a bug with a 3 day periodical appearence the value 1000000 should be sufficient. Setting this value to 1000000 generates approximatelly a 50MB app.log file. Set to 0 to disable log purging."
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Log length"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "How many last app.log lines to keep. If LOG_LEVEL is set to debug the app generates about 10000 lines per hour, so when debugging an issue the recommended setting should cover the bug occurence timeframe. For example for a bug with a 3 day periodical appearence the value 1000000 should be sufficient. Setting this value to 1000000 generates approximatelly a 50MB app.log file. Set to 0 to disable log purging."
+ }
+ ]
}
],
- "database_column_definitions":
- [
-
- ]
+ "database_column_definitions": []
}
diff --git a/front/plugins/newdev_template/config.json b/front/plugins/newdev_template/config.json
index cca8c6a3..373136ba 100755
--- a/front/plugins/newdev_template/config.json
+++ b/front/plugins/newdev_template/config.json
@@ -1,654 +1,656 @@
-{
+{
"code_name": "newdev_template",
"template_type": "database-entry",
"unique_prefix": "NEWDEV",
"plugin_type": "system",
"enabled": true,
- "data_source": "template",
+ "data_source": "template",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
- "display_name": [{
+ "display_name": [
+ {
"language_code": "en_us",
"string": "New Devices"
- }],
- "description": [{
- "language_code": "en_us",
- "string": "The template used for new devices."
- }],
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The template used for new devices."
+ }
+ ],
"icon": [
{
"language_code": "en_us",
"string": ""
}
],
- "settings":[
+ "settings": [
+ {
+ "function": "ignored_MACs",
+ "type": "list",
+ "default_value": [],
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
{
- "function": "ignored_MACs",
- "type": "list",
- "default_value": [
- ],
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Ignored MACs"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "List of MACs to ignore. Use % as a wildcard. Ignored devices will not be shown anywhere in the UI or notifications.
For example 02:42:ac:% to filter out docker containers."
- }
- ]
- },
- {
- "function": "ignored_IPs",
- "type": "list",
- "default_value": [
- ],
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Ignored IPs"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "List of IPs to ignore. Use % as a wildcard. Ignored devices will not be shown anywhere in the UI or notifications.
For example 192.168.3.% to filter out an IP range."
- }
- ]
- },
- {
- "function": "dev_MAC",
- "type": "readonly",
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device MAC"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The MAC address of the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_Name",
- "type": "readonly",
- "maxLength": 50,
- "default_value": "(unknown)",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Name"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The name of the device. Uneditable as internal functionality is dependent on specific new device names."
- }
- ]
- },
- {
- "function": "dev_Owner",
- "type": "text.select",
- "maxLength": 30,
- "default_value": "",
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "SELECT DISTINCT '' as id, '❌None' as name UNION SELECT dev_Owner as id, dev_Owner as name FROM (SELECT dev_Owner FROM Devices UNION SELECT 'House' ) AS all_devices ORDER BY id;"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Owner"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The owner of the device."
- }
- ]
- },
- {
- "function": "dev_DeviceType",
- "type": "text.select",
- "maxLength": 30,
- "default_value": "",
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "SELECT DISTINCT 9 as ord, dev_DeviceType as id, dev_DeviceType as name FROM Devices WHERE dev_DeviceType NOT IN ('', 'Smartphone', 'Tablet', 'Laptop', 'Mini PC', 'PC', 'Printer', 'Server', 'Singleboard Computer (SBC)', 'NAS', 'Domotic', 'IP Camera', 'Game Console', 'SmartTV', 'TV Decoder', 'Virtual Assistance', 'Clock', 'House Appliance', 'Phone', 'Radio', 'AP', 'Gateway', 'Firewall', 'Hypervisor', 'Powerline', 'Switch', 'WLAN', 'PLC', 'Router', 'USB LAN Adapter', 'USB WIFI Adapter') UNION SELECT 0 as ord, '', '❌None' UNION SELECT 1 as ord, '-----', '-- 📱Handhelds --' UNION SELECT 1 as ord, 'Smartphone', 'Smartphone' UNION SELECT 1 as ord, 'Tablet', 'Tablet' UNION SELECT 2 as ord, '-----', '-- 💻Computers --' UNION SELECT 2 as ord, 'Laptop', 'Laptop' UNION SELECT 2 as ord, 'Mini PC', 'Mini PC' UNION SELECT 2 as ord, 'PC', 'PC' UNION SELECT 2 as ord, 'Printer', 'Printer' UNION SELECT 2 as ord, 'Server', 'Server' UNION SELECT 2 as ord, 'Singleboard Computer (SBC)', 'Singleboard Computer (SBC)' UNION SELECT 2 as ord, 'NAS', 'NAS' UNION SELECT 3 as ord, '-----', '-- 🏠Smart home --' UNION SELECT 3 as ord, 'Domotic', 'Domotic' UNION SELECT 3 as ord, 'IP Camera', 'IP Camera' UNION SELECT 3 as ord, 'Game Console', 'Game Console' UNION SELECT 3 as ord, 'SmartTV', 'SmartTV' UNION SELECT 3 as ord, 'TV Decoder', 'TV Decoder' UNION SELECT 3 as ord, 'Virtual Assistance', 'Virtual Assistance' UNION SELECT 4 as ord, '-----', '-- Wired --' UNION SELECT 4 as ord, 'Clock', 'Clock' UNION SELECT 4 as ord, 'House Appliance', 'House Appliance' UNION SELECT 4 as ord, 'Phone', 'Phone' UNION SELECT 4 as ord, 'Radio', 'Radio' UNION SELECT 5 as ord, '-----', '-- 📡Network nodes --' UNION SELECT 5 as ord, 'AP', 'AP' UNION SELECT 5 as ord, 'Gateway', 'Gateway' UNION SELECT 5 as ord, 'Firewall', 'Firewall' UNION SELECT 5 as ord, 'Hypervisor', 'Hypervisor' UNION SELECT 5 as ord, 'Powerline', 'Powerline' UNION SELECT 5 as ord, 'Switch', 'Switch' UNION SELECT 5 as ord, 'WLAN', 'WLAN' UNION SELECT 5 as ord, 'PLC', 'PLC' UNION SELECT 5 as ord, 'Router', 'Router' UNION SELECT 5 as ord, 'USB LAN Adapter', 'USB LAN Adapter' UNION SELECT 5 as ord, 'USB WIFI Adapter', 'USB WIFI Adapter' UNION SELECT 9 as ord, '-----', '-- ⚙Custom --' UNION SELECT 10 as ord, '-----', '-----' UNION SELECT 10 as ord, 'Other', 'Other' ORDER BY 1,2;"
- },
- {
- "name" : "uilang",
- "type" : "setting",
- "value" : "UI_LANG"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Type"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The type of the device."
- }
- ]
- },
- {
- "function": "dev_Vendor",
- "type": "readonly",
- "maxLength": 250,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Vendor"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The vendor of the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_Favorite",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Favorite Device"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device is marked as a favorite."
- }
- ]
- },
- {
- "function": "dev_Group",
- "type": "text.select",
- "maxLength": 10,
- "default_value": "",
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "SELECT DISTINCT '' as id, '❌None' as name UNION SELECT dev_Group as id, dev_Group as name FROM (SELECT dev_Group FROM Devices WHERE dev_Group <> '' UNION SELECT 'Personal' UNION SELECT 'Always on' UNION SELECT 'Friends' UNION SELECT 'Others' ) AS all_devices ORDER BY id;"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Group"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The group to which the device belongs."
- }
- ]
- },
- {
- "function": "dev_Comments",
- "type": "string",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Comments"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Additional comments or notes about the device."
- }
- ]
- },
- {
- "function": "dev_FirstConnection",
- "type": "readonly",
- "format": "date-time",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "First Connection"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The date and time of the first connection with the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_LastConnection",
- "type": "readonly",
- "format": "date-time",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Last Connection"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The date and time of the last connection with the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_LastIP",
- "type": "readonly",
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Last IP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The last known IP address of the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_StaticIP",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Static IP"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device has a static IP address."
- }
- ]
- },
- {
- "function": "dev_ScanCycle",
- "type": "integer.checkbox",
- "default_value": 1,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Scan Cycle"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The default value of the Scan device dropdown. Enable if newly discovered devices should be scanned."
- }
- ]
- },
- {
- "function": "dev_LogEvents",
- "type": "integer.checkbox",
- "default_value": 1,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Log Events"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether events related to the device shouldbe logged."
- }]
- },
- {
- "function": "dev_AlertEvents",
- "type": "integer.checkbox",
- "default_value": 1,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Alert Events"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether events related to the device should trigger alerts. The default value of the Alert All Events checkbox."
- }
- ]
- },
- {
- "function": "dev_AlertDeviceDown",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Alert Device Down"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether an alert should be triggered when the device goes down. The default value of the Alert Down checkbox."
- }
- ]
- },
- {
- "function": "dev_SkipRepeated",
- "type": "text.select",
- "default_value": 0,
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "SELECT '0' as id, '0 (notify all)' as name UNION SELECT '168' as id, '1 week' as name UNION SELECT '24' as id, '1 day' as name UNION SELECT '8' as id, '8 h' as name UNION SELECT '1' as id, '1 h' as name"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Skip Repeated (h)"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The default value of the Skip repeated notifications for dropdown. Enter number of hours for which repeated notifications should be ignored for. If you enter 0 then you get notified on all events."
- }
- ]
- },
- {
- "function": "dev_LastNotification",
- "type": "readonly",
- "format": "date-time",
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Last Notification"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The date and time of the last notification sent for the device. Uneditable - Autodetected."
- }
- ]
- },
- {
- "function": "dev_PresentLastScan",
- "type": "integer.checkbox",
- "default_value": 1,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Present Last Scan"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device should be marked as present after detected in a scan."
- }
- ]
- },
- {
- "function": "dev_NewDevice",
- "type": "integer.checkbox",
- "default_value": 1,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "New Device"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device is considered a new device. The default value of the New Device checkbox. If checked this will show the New status for the device and include it in lists when the New Devices filter is active. Doesn't affect notifications."
- }
- ]
- },
- {
- "function": "dev_Location",
- "type": "text.select",
- "maxLength": 250,
- "default_value": "",
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "SELECT DISTINCT '' as id, '❌None' as name UNION SELECT dev_Location as id, dev_Location as name FROM (SELECT dev_Location FROM Devices where dev_Location not in (null, 'null', '') UNION SELECT 'Bathroom' UNION SELECT 'Bedroom' UNION SELECT 'Dining room' UNION SELECT 'Hall' UNION SELECT 'Kitchen' UNION SELECT 'Laundry' UNION SELECT 'Living room' UNION SELECT 'Study' UNION SELECT 'Attic' UNION SELECT 'Basement' UNION SELECT 'Garage' UNION SELECT 'Back yard' UNION SELECT 'Garden' UNION SELECT 'Terrace') AS all_devices ORDER BY id; "
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Location"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The location of the device."
- }
- ]
- },
- {
- "function": "dev_Archived",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Archived"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Indicates whether the device is archived. The default value of the Archived checkbox."
- }
- ]
- },
- {
- "function": "dev_Network_Node_MAC_ADDR",
- "type": "text.select",
- "default_value": "",
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "SELECT '❌None' as name, '' as id UNION SELECT Dev_Name as name, dev_MAC as id FROM Devices WHERE EXISTS (SELECT 1 FROM Settings WHERE Code_Name = 'NETWORK_DEVICE_TYPES' AND LOWER(value) LIKE '%' || LOWER(dev_DeviceType) || '%' AND dev_DeviceType <> '')"
- },
- {
- "name" : "target_macs",
- "type" : "setting",
- "value" : "KNWN_target_macs"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Network Node MAC Address"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The MAC address of the network node."
- }
- ]
- },
- {
- "function": "dev_Network_Node_port",
- "type": "readonly",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Network Node Port"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The port number of the network node. Uneditable."
- }
- ]
- },
- {
- "function": "dev_Icon",
- "type": "text.select",
- "default_value": "",
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "sql",
- "value" : "WITH RECURSIVE SettingsIcons AS (SELECT REPLACE(REPLACE(REPLACE(Value, '[', ''), ']', ''), '''', '') AS icon_list FROM Settings WHERE Code_Name = 'UI_ICONS'), SplitIcons AS (SELECT TRIM(SUBSTR(icon_list, 1, INSTR(icon_list || ',', ',') - 1)) AS icon, SUBSTR(icon_list, INSTR(icon_list || ',', ',') + 1) AS remaining_icons FROM SettingsIcons WHERE icon_list <> '' UNION ALL SELECT TRIM(SUBSTR(remaining_icons, 1, INSTR(remaining_icons || ',', ',') - 1)) AS icon, SUBSTR(remaining_icons, INSTR(remaining_icons || ',', ',') + 1) AS remaining_icons FROM SplitIcons WHERE remaining_icons <> '') SELECT DISTINCT * FROM (SELECT icon as name, icon as id FROM SplitIcons UNION SELECT '❌None' AS name, '' AS id UNION SELECT Dev_Icon AS name, Dev_Icon AS id FROM Devices WHERE Dev_Icon <> '') AS combined_results;"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Device Icon"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The icon associated with the device. Check the documentation on icons for more details."
- }
- ]
- },
- {
- "function": "LESS_NAME_CLEANUP",
- "type": "integer.checkbox",
- "default_value": 0,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Less Name Cleanup"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Check to start using the new code for cleaning device names. Removes all labels starting with underscore and removes network domain and search list."
- }
- ]
+ "language_code": "en_us",
+ "string": "Ignored MACs"
}
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "List of MACs to ignore. Use % as a wildcard. Ignored devices will not be shown anywhere in the UI or notifications.
For example 02:42:ac:% to filter out docker containers."
+ }
+ ]
+ },
+ {
+ "function": "ignored_IPs",
+ "type": "list",
+ "default_value": [],
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Ignored IPs"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "List of IPs to ignore. Use % as a wildcard. Ignored devices will not be shown anywhere in the UI or notifications.
For example 192.168.3.% to filter out an IP range."
+ }
+ ]
+ },
+ {
+ "function": "dev_MAC",
+ "type": "readonly",
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device MAC"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The MAC address of the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_Name",
+ "type": "readonly",
+ "maxLength": 50,
+ "default_value": "(unknown)",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Name"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The name of the device. Uneditable as internal functionality is dependent on specific new device names."
+ }
+ ]
+ },
+ {
+ "function": "dev_Owner",
+ "type": "text.select",
+ "maxLength": 30,
+ "default_value": "",
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "SELECT DISTINCT '' as id, '❌None' as name UNION SELECT dev_Owner as id, dev_Owner as name FROM (SELECT dev_Owner FROM Devices UNION SELECT 'House' ) AS all_devices ORDER BY id;"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Owner"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The owner of the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_DeviceType",
+ "type": "text.select",
+ "maxLength": 30,
+ "default_value": "",
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "SELECT DISTINCT 9 as ord, dev_DeviceType as id, dev_DeviceType as name FROM Devices WHERE dev_DeviceType NOT IN ('', 'Smartphone', 'Tablet', 'Laptop', 'Mini PC', 'PC', 'Printer', 'Server', 'Singleboard Computer (SBC)', 'NAS', 'Domotic', 'IP Camera', 'Game Console', 'SmartTV', 'TV Decoder', 'Virtual Assistance', 'Clock', 'House Appliance', 'Phone', 'Radio', 'AP', 'Gateway', 'Firewall', 'Hypervisor', 'Powerline', 'Switch', 'WLAN', 'PLC', 'Router', 'USB LAN Adapter', 'USB WIFI Adapter') UNION SELECT 0 as ord, '', '❌None' UNION SELECT 1 as ord, '-----', '-- 📱Handhelds --' UNION SELECT 1 as ord, 'Smartphone', 'Smartphone' UNION SELECT 1 as ord, 'Tablet', 'Tablet' UNION SELECT 2 as ord, '-----', '-- 💻Computers --' UNION SELECT 2 as ord, 'Laptop', 'Laptop' UNION SELECT 2 as ord, 'Mini PC', 'Mini PC' UNION SELECT 2 as ord, 'PC', 'PC' UNION SELECT 2 as ord, 'Printer', 'Printer' UNION SELECT 2 as ord, 'Server', 'Server' UNION SELECT 2 as ord, 'Singleboard Computer (SBC)', 'Singleboard Computer (SBC)' UNION SELECT 2 as ord, 'NAS', 'NAS' UNION SELECT 3 as ord, '-----', '-- 🏠Smart home --' UNION SELECT 3 as ord, 'Domotic', 'Domotic' UNION SELECT 3 as ord, 'IP Camera', 'IP Camera' UNION SELECT 3 as ord, 'Game Console', 'Game Console' UNION SELECT 3 as ord, 'SmartTV', 'SmartTV' UNION SELECT 3 as ord, 'TV Decoder', 'TV Decoder' UNION SELECT 3 as ord, 'Virtual Assistance', 'Virtual Assistance' UNION SELECT 4 as ord, '-----', '-- Wired --' UNION SELECT 4 as ord, 'Clock', 'Clock' UNION SELECT 4 as ord, 'House Appliance', 'House Appliance' UNION SELECT 4 as ord, 'Phone', 'Phone' UNION SELECT 4 as ord, 'Radio', 'Radio' UNION SELECT 5 as ord, '-----', '-- 📡Network nodes --' UNION SELECT 5 as ord, 'AP', 'AP' UNION SELECT 5 as ord, 'Gateway', 'Gateway' UNION SELECT 5 as ord, 'Firewall', 'Firewall' UNION SELECT 5 as ord, 'Hypervisor', 'Hypervisor' UNION SELECT 5 as ord, 'Powerline', 'Powerline' UNION SELECT 5 as ord, 'Switch', 'Switch' UNION SELECT 5 as ord, 'WLAN', 'WLAN' UNION SELECT 5 as ord, 'PLC', 'PLC' UNION SELECT 5 as ord, 'Router', 'Router' UNION SELECT 5 as ord, 'USB LAN Adapter', 'USB LAN Adapter' UNION SELECT 5 as ord, 'USB WIFI Adapter', 'USB WIFI Adapter' UNION SELECT 9 as ord, '-----', '-- ⚙Custom --' UNION SELECT 10 as ord, '-----', '-----' UNION SELECT 10 as ord, 'Other', 'Other' ORDER BY 1,2;"
+ },
+ {
+ "name": "uilang",
+ "type": "setting",
+ "value": "UI_LANG"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Type"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The type of the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_Vendor",
+ "type": "readonly",
+ "maxLength": 250,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Vendor"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The vendor of the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_Favorite",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Favorite Device"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device is marked as a favorite."
+ }
+ ]
+ },
+ {
+ "function": "dev_Group",
+ "type": "text.select",
+ "maxLength": 10,
+ "default_value": "",
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "SELECT DISTINCT '' as id, '❌None' as name UNION SELECT dev_Group as id, dev_Group as name FROM (SELECT dev_Group FROM Devices WHERE dev_Group <> '' UNION SELECT 'Personal' UNION SELECT 'Always on' UNION SELECT 'Friends' UNION SELECT 'Others' ) AS all_devices ORDER BY id;"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Group"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The group to which the device belongs."
+ }
+ ]
+ },
+ {
+ "function": "dev_Comments",
+ "type": "string",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Comments"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Additional comments or notes about the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_FirstConnection",
+ "type": "readonly",
+ "format": "date-time",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "First Connection"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The date and time of the first connection with the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_LastConnection",
+ "type": "readonly",
+ "format": "date-time",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last Connection"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The date and time of the last connection with the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_LastIP",
+ "type": "readonly",
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last IP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The last known IP address of the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_StaticIP",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Static IP"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device has a static IP address."
+ }
+ ]
+ },
+ {
+ "function": "dev_ScanCycle",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Scan Cycle"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The default value of the Scan device dropdown. Enable if newly discovered devices should be scanned."
+ }
+ ]
+ },
+ {
+ "function": "dev_LogEvents",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Log Events"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether events related to the device shouldbe logged."
+ }
+ ]
+ },
+ {
+ "function": "dev_AlertEvents",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Alert Events"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether events related to the device should trigger alerts. The default value of the Alert All Events checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_AlertDeviceDown",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Alert Device Down"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether an alert should be triggered when the device goes down. The default value of the Alert Down checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_SkipRepeated",
+ "type": "text.select",
+ "default_value": 0,
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "SELECT '0' as id, '0 (notify all)' as name UNION SELECT '168' as id, '1 week' as name UNION SELECT '24' as id, '1 day' as name UNION SELECT '8' as id, '8 h' as name UNION SELECT '1' as id, '1 h' as name"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Skip Repeated (h)"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The default value of the Skip repeated notifications for dropdown. Enter number of hours for which repeated notifications should be ignored for. If you enter 0 then you get notified on all events."
+ }
+ ]
+ },
+ {
+ "function": "dev_LastNotification",
+ "type": "readonly",
+ "format": "date-time",
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last Notification"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The date and time of the last notification sent for the device. Uneditable - Autodetected."
+ }
+ ]
+ },
+ {
+ "function": "dev_PresentLastScan",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Present Last Scan"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device should be marked as present after detected in a scan."
+ }
+ ]
+ },
+ {
+ "function": "dev_NewDevice",
+ "type": "integer.checkbox",
+ "default_value": 1,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "New Device"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device is considered a new device. The default value of the New Device checkbox. If checked this will show the New status for the device and include it in lists when the New Devices filter is active. Doesn't affect notifications."
+ }
+ ]
+ },
+ {
+ "function": "dev_Location",
+ "type": "text.select",
+ "maxLength": 250,
+ "default_value": "",
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "SELECT DISTINCT '' as id, '❌None' as name UNION SELECT dev_Location as id, dev_Location as name FROM (SELECT dev_Location FROM Devices where dev_Location not in (null, 'null', '') UNION SELECT 'Bathroom' UNION SELECT 'Bedroom' UNION SELECT 'Dining room' UNION SELECT 'Hall' UNION SELECT 'Kitchen' UNION SELECT 'Laundry' UNION SELECT 'Living room' UNION SELECT 'Study' UNION SELECT 'Attic' UNION SELECT 'Basement' UNION SELECT 'Garage' UNION SELECT 'Back yard' UNION SELECT 'Garden' UNION SELECT 'Terrace') AS all_devices ORDER BY id; "
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Location"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The location of the device."
+ }
+ ]
+ },
+ {
+ "function": "dev_Archived",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Archived"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Indicates whether the device is archived. The default value of the Archived checkbox."
+ }
+ ]
+ },
+ {
+ "function": "dev_Network_Node_MAC_ADDR",
+ "type": "text.select",
+ "default_value": "",
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "SELECT '❌None' as name, '' as id UNION SELECT Dev_Name as name, dev_MAC as id FROM Devices WHERE EXISTS (SELECT 1 FROM Settings WHERE Code_Name = 'NETWORK_DEVICE_TYPES' AND LOWER(value) LIKE '%' || LOWER(dev_DeviceType) || '%' AND dev_DeviceType <> '')"
+ },
+ {
+ "name": "target_macs",
+ "type": "setting",
+ "value": "KNWN_target_macs"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Network Node MAC Address"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The MAC address of the network node."
+ }
+ ]
+ },
+ {
+ "function": "dev_Network_Node_port",
+ "type": "readonly",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Network Node Port"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The port number of the network node. Uneditable."
+ }
+ ]
+ },
+ {
+ "function": "dev_Icon",
+ "type": "text.select",
+ "default_value": "",
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "sql",
+ "value": "WITH RECURSIVE SettingsIcons AS (SELECT REPLACE(REPLACE(REPLACE(Value, '[', ''), ']', ''), '''', '') AS icon_list FROM Settings WHERE Code_Name = 'UI_ICONS'), SplitIcons AS (SELECT TRIM(SUBSTR(icon_list, 1, INSTR(icon_list || ',', ',') - 1)) AS icon, SUBSTR(icon_list, INSTR(icon_list || ',', ',') + 1) AS remaining_icons FROM SettingsIcons WHERE icon_list <> '' UNION ALL SELECT TRIM(SUBSTR(remaining_icons, 1, INSTR(remaining_icons || ',', ',') - 1)) AS icon, SUBSTR(remaining_icons, INSTR(remaining_icons || ',', ',') + 1) AS remaining_icons FROM SplitIcons WHERE remaining_icons <> '') SELECT DISTINCT * FROM (SELECT icon as name, icon as id FROM SplitIcons UNION SELECT '❌None' AS name, '' AS id UNION SELECT Dev_Icon AS name, Dev_Icon AS id FROM Devices WHERE Dev_Icon <> '') AS combined_results;"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device Icon"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The icon associated with the device. Check the documentation on icons for more details."
+ }
+ ]
+ },
+ {
+ "function": "LESS_NAME_CLEANUP",
+ "type": "integer.checkbox",
+ "default_value": 0,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Less Name Cleanup"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Check to start using the new code for cleaning device names. Removes all labels starting with underscore and removes network domain and search list."
+ }
+ ]
+ }
],
- "required": [
- "dev_MAC",
- "dev_Name",
- "dev_Owner",
- "dev_FirstConnection",
- "dev_LastConnection",
- "dev_LastIP",
- "dev_StaticIP",
- "dev_ScanCycle",
- "dev_LogEvents",
- "dev_AlertEvents",
- "dev_AlertDeviceDown",
- "dev_SkipRepeated",
- "dev_LastNotification",
- "dev_PresentLastScan",
- "dev_NewDevice",
- "dev_Location",
- "dev_Archived",
- "dev_Network_Node_MAC_ADDR",
- "dev_Network_Node_port",
- "dev_Icon",
- "LESS_NAME_CLEANUP"
- ],
- "additionalProperties": false
- }
-
+ "required": [
+ "dev_MAC",
+ "dev_Name",
+ "dev_Owner",
+ "dev_FirstConnection",
+ "dev_LastConnection",
+ "dev_LastIP",
+ "dev_StaticIP",
+ "dev_ScanCycle",
+ "dev_LogEvents",
+ "dev_AlertEvents",
+ "dev_AlertDeviceDown",
+ "dev_SkipRepeated",
+ "dev_LastNotification",
+ "dev_PresentLastScan",
+ "dev_NewDevice",
+ "dev_Location",
+ "dev_Archived",
+ "dev_Network_Node_MAC_ADDR",
+ "dev_Network_Node_port",
+ "dev_Icon",
+ "LESS_NAME_CLEANUP"
+ ],
+ "additionalProperties": false
+}
diff --git a/front/plugins/nmap_dev_scan/config.json b/front/plugins/nmap_dev_scan/config.json
index de57e8de..e1b9ae32 100755
--- a/front/plugins/nmap_dev_scan/config.json
+++ b/front/plugins/nmap_dev_scan/config.json
@@ -15,11 +15,7 @@
}
],
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -58,13 +54,8 @@
"always_after_scan",
"on_new_device"
],
- "localized": [
- "name",
- "description"
- ],
- "events": [
- "run"
- ],
+ "localized": ["name", "description"],
+ "events": ["run"],
"name": [
{
"language_code": "en_us",
@@ -99,10 +90,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/nmap_dev_scan/nmap_dev.py ",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -137,10 +125,7 @@
"type": "integer",
"default_value": 300,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -175,10 +160,7 @@
"type": "text",
"default_value": "*/5 * * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -211,18 +193,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- ],
+ "default_value": [],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -255,19 +233,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new"
- ],
+ "default_value": ["new"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -302,10 +275,7 @@
"type": "text",
"default_value": "sudo nmap -sn -PR -oX - ",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -329,9 +299,7 @@
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -355,9 +323,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -381,9 +347,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -399,9 +363,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -422,18 +384,20 @@
"mapped_to_column": "cur_LastQuery",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Interface"
- },
- {
- "language_code":"es_es",
- "string" : "Interfaz"
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Interface"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Interfaz"
+ }
+ ]
},
{
"column": "Dummy",
@@ -446,9 +410,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -471,9 +433,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -496,9 +456,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -538,9 +496,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -557,4 +513,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/nmap_scan/config.json b/front/plugins/nmap_scan/config.json
index f8fe7a2c..e2b4ffce 100755
--- a/front/plugins/nmap_scan/config.json
+++ b/front/plugins/nmap_scan/config.json
@@ -1,491 +1,556 @@
{
- "code_name": "nmap_scan",
- "unique_prefix": "NMAP",
- "plugin_type": "other",
- "enabled": true,
- "data_source": "script",
- "data_filters": [
+ "code_name": "nmap_scan",
+ "unique_prefix": "NMAP",
+ "plugin_type": "other",
+ "enabled": true,
+ "data_source": "script",
+ "data_filters": [
+ {
+ "compare_column": "ForeignKey",
+ "compare_operator": "==",
+ "compare_field_id": "txtMacFilter",
+ "compare_js_template": "'{value}.toString()'",
+ "compare_use_quotes": true
+ }
+ ],
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "Services & Ports (NMAP)"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Servicios & Puertos (NMAP)"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ },
+ {
+ "language_code": "es_es",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This plugin shows all services discovered by NMAP scans."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Este complemento muestra todos los servicios descubiertos por escaneos NMAP."
+ }
+ ],
+ "params": [
+ {
+ "name": "ips",
+ "type": "sql",
+ "value": "SELECT dev_LastIP from DEVICES order by dev_MAC",
+ "timeoutMultiplier": true
+ },
+ {
+ "name": "macs",
+ "type": "sql",
+ "value": "SELECT dev_MAC from DEVICES order by dev_MAC"
+ },
+ {
+ "name": "timeout",
+ "type": "setting",
+ "value": "NMAP_RUN_TIMEOUT"
+ },
+ {
+ "name": "args",
+ "type": "setting",
+ "value": "NMAP_ARGS",
+ "base64": true
+ }
+ ],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "compare_column" : "ForeignKey",
- "compare_operator" : "==",
- "compare_field_id": "txtMacFilter",
- "compare_js_template": "'{value}.toString()'",
- "compare_use_quotes": true
+ "language_code": "en_us",
+ "string": "N/A"
}
- ],
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "display_name" : [{
- "language_code":"en_us",
- "string" : "Services & Ports (NMAP)"
+ ]
},
{
- "language_code":"es_es",
- "string" : "Servicios & Puertos (NMAP)"
- }],
- "icon":[{
- "language_code":"en_us",
- "string" : ""
- },
- {
- "language_code":"es_es",
- "string" : ""
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "This plugin shows all services discovered by NMAP scans."
- },
- {
- "language_code":"es_es",
- "string" : "Este complemento muestra todos los servicios descubiertos por escaneos NMAP."
- }],
- "params" : [
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "name" : "ips",
- "type" : "sql",
- "value" : "SELECT dev_LastIP from DEVICES order by dev_MAC",
- "timeoutMultiplier" : true
- },
- {
- "name" : "macs",
- "type" : "sql",
- "value" : "SELECT dev_MAC from DEVICES order by dev_MAC"
- },
- {
- "name" : "timeout",
- "type" : "setting",
- "value" : "NMAP_RUN_TIMEOUT"
- },
- {
- "name" : "args",
- "type" : "setting",
- "value" : "NMAP_ARGS",
- "base64" : true
+ "language_code": "en_us",
+ "string": "N/A"
}
- ],
- "database_column_definitions":
- [
- {
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- }]
- } ,
- {
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- }]
- },
- {
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "device_name_mac",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Device name"
- },
- {
- "language_code":"es_es",
- "string" : "Nombre del dispositivo"
- }]
- },
- {
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Port"
- },
- {
- "language_code":"es_es",
- "string" : "Puerto"
- }]
- } ,
- {
- "column": "DateTimeCreated",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Created"
- },
- {
- "language_code":"es_es",
- "string" : "Creado"
- }]
- },
- {
- "column": "DateTimeChanged",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Changed"
- },
- {
- "language_code":"es_es",
- "string" : "Cambiado"
- }]
- },
- {
- "column": "Watched_Value1",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "State"
- },
- {
- "language_code":"es_es",
- "string" : "Estado"
- }]
- },
- {
- "column": "Watched_Value2",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "label",
- "default_value":"",
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Service"
- },
- {
- "language_code":"es_es",
- "string" : "Servicio"
- }]
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "regex.url_http_https",
- "default_value":"",
- "options": [
- {
- "type": "regex",
- "param": "([\\d.:]+)"
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "HTTP/s links"
- },
- {
- "language_code":"es_es",
- "string" : "Enlaces HTTP/s"
- }]
- } ,
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- },
- {
- "language_code":"es_es",
- "string" : "N/A"
- }]
- } ,
- {
- "column": "Extra",
- "css_classes": "col-sm-1",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Extra"
- },
- {
- "language_code":"es_es",
- "string" : "Extra"
- }]
- },
- {
- "column": "UserData",
- "css_classes": "col-sm-3",
- "show": true,
- "type": "textbox_save",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "User data"
- },
- {
- "language_code":"es_es",
- "string" : "Datos de usuario"
- }]
- },
- {
- "column": "ForeignKey",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "device_mac",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "MAC"
- },
- {
- "language_code":"es_es",
- "string" : "MAC"
- }]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "replace",
- "default_value":"",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Status"
- },
- {
- "language_code":"es_es",
- "string" : "Estado"
- }]
- }
- ],
- "settings":[
- {
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuando ejecutar"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Enable a regular Nmap scan on your network on all devices. The scheduling settings can be found below. If you select once Nmap is run only once on start for the time specified in NMAP_TIMEOUT setting."
- },
- {
- "language_code":"es_es",
- "string" : "Habilite un escaneo regular de Nmap en su red en todos los dispositivos. Los ajustes de programación se pueden encontrar a continuación. Si selecciona una vez, Nmap se ejecuta solo una vez al inicio durante el tiempo especificado en la configuración de NMAP_TIMEOUT"
- }]
+ ]
},
{
- "function": "CMD",
- "type": "text",
- "default_value":"python3 /app/front/plugins/nmap_scan/script.py ips={ips} macs={macs} timeout={timeout} args={args}",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "SQL to run"
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "device_name_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device name"
},
{
- "language_code":"es_es",
- "string" : "Consulta SQL"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "This calls the script responsible for executing the NMAP scan."
- },
- {
- "language_code":"es_es",
- "string" : "Esto llama al script responsable de ejecutar el escaneo NMAP."
- }
- ]
- },
- {
- "function": "ARGS",
- "type": "text",
- "default_value":"-p -10000",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Arguments"
- },
- {
- "language_code":"es_es",
- "string" : "Argumentos"
- }],
- "description": [
- {
- "language_code":"en_us",
- "string" : "Arguments used to run the Nmap scan. Be careful to specify the arguments correctly. For example -p -10000 scans ports from 1 to 10000."
- },
- {
- "language_code":"es_es",
- "string" : "Argumentos utilizados para ejecutar el análisis de Nmap. Tenga cuidado de especificar los argumentos correctamente. Por ejemplo, -p -10000 escanea los puertos del 1 al 10000."
- }
- ]
- },
- {
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"0 2 * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the NMAP_RUN setting. Make sure you enter the schedule in the correct cron-like format."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona programar en la configuración de NMAP_RUN. Asegúrese de ingresar el cronograma en el formato tipo cron correcto."
- }]
- },
- {
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value": 30,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Run timeout"
- },
- {
- "language_code": "es_es",
- "string": "Tiempo límite de ejecución"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Max run time per device in seconds."
- },
- {
- "language_code": "es_es",
- "string": "Tiempo máximo de ejecución por dispositivo en segundos."
- }
- ]
- },
- {
- "function": "WATCH",
- "type": "text.multiselect",
- "default_value":["Watched_Value1"],
- "options": ["Watched_Value1","Watched_Value2","Watched_Value3","Watched_Value4"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Watched"
- },
- {
- "language_code":"es_es",
- "string" : "Visto"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is service type (e.g.: http, ssh)Watched_Value2 is Status (open or closed)Watched_Value3 unused Watched_Value4 unused
"
- },
- {
- "language_code":"es_es",
- "string" : "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es el tipo de servicio (p. ej., http, ssh)Watched_Value2 es el estado (abierto o cerrado) Watched_Value3 no utilizado Watched_Value4 no utilizado
"
- }]
- },
- {
- "function": "REPORT_ON",
- "type": "text.multiselect",
- "default_value":["new","watched-changed"],
- "options": ["new","watched-changed","watched-not-changed"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Report on"
- },
- {
- "language_code":"es_es",
- "string" : "Informar sobre"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
- },
- {
- "language_code":"es_es",
- "string" : "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). watched-changed significa que seleccionó Watched_ValueN Las columnas cambiaron."
- }]
+ "language_code": "es_es",
+ "string": "Nombre del dispositivo"
}
- ]
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Port"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Puerto"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeCreated",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Created"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Creado"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeChanged",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Changed"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cambiado"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "State"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Service"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Servicio"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "regex.url_http_https",
+ "default_value": "",
+ "options": [
+ {
+ "type": "regex",
+ "param": "([\\d.:]+)"
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "HTTP/s links"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Enlaces HTTP/s"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-1",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Extra"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Extra"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "User data"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Datos de usuario"
+ }
+ ]
+ },
+ {
+ "column": "ForeignKey",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "device_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MAC"
+ },
+ {
+ "language_code": "es_es",
+ "string": "MAC"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "watched-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "new",
+ "replacement": ""
+ },
+ {
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuando ejecutar"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable a regular Nmap scan on your network on all devices. The scheduling settings can be found below. If you select once Nmap is run only once on start for the time specified in NMAP_TIMEOUT setting."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilite un escaneo regular de Nmap en su red en todos los dispositivos. Los ajustes de programación se pueden encontrar a continuación. Si selecciona una vez, Nmap se ejecuta solo una vez al inicio durante el tiempo especificado en la configuración de NMAP_TIMEOUT"
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "text",
+ "default_value": "python3 /app/front/plugins/nmap_scan/script.py ips={ips} macs={macs} timeout={timeout} args={args}",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "SQL to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Consulta SQL"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This calls the script responsible for executing the NMAP scan."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Esto llama al script responsable de ejecutar el escaneo NMAP."
+ }
+ ]
+ },
+ {
+ "function": "ARGS",
+ "type": "text",
+ "default_value": "-p -10000",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Arguments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Argumentos"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Arguments used to run the Nmap scan. Be careful to specify the arguments correctly. For example -p -10000 scans ports from 1 to 10000."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Argumentos utilizados para ejecutar el análisis de Nmap. Tenga cuidado de especificar los argumentos correctamente. Por ejemplo, -p -10000 escanea los puertos del 1 al 10000."
+ }
+ ]
+ },
+ {
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "0 2 * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the NMAP_RUN setting. Make sure you enter the schedule in the correct cron-like format."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona programar en la configuración de NMAP_RUN. Asegúrese de ingresar el cronograma en el formato tipo cron correcto."
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 30,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo límite de ejecución"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Max run time per device in seconds."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo de ejecución por dispositivo en segundos."
+ }
+ ]
+ },
+ {
+ "function": "WATCH",
+ "type": "text.multiselect",
+ "default_value": ["Watched_Value1"],
+ "options": [
+ "Watched_Value1",
+ "Watched_Value2",
+ "Watched_Value3",
+ "Watched_Value4"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Watched"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Visto"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is service type (e.g.: http, ssh)Watched_Value2 is Status (open or closed)Watched_Value3 unused Watched_Value4 unused
"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es el tipo de servicio (p. ej., http, ssh)Watched_Value2 es el estado (abierto o cerrado) Watched_Value3 no utilizado Watched_Value4 no utilizado
"
+ }
+ ]
+ },
+ {
+ "function": "REPORT_ON",
+ "type": "text.multiselect",
+ "default_value": ["new", "watched-changed"],
+ "options": ["new", "watched-changed", "watched-not-changed"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Report on"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Informar sobre"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). watched-changed significa que seleccionó Watched_ValueN Las columnas cambiaron."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/notification_processing/config.json b/front/plugins/notification_processing/config.json
index 71dee302..0154ff63 100755
--- a/front/plugins/notification_processing/config.json
+++ b/front/plugins/notification_processing/config.json
@@ -3,7 +3,7 @@
"unique_prefix": "NTFPRCS",
"plugin_type": "system",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
"display_name": [
@@ -22,17 +22,22 @@
{
"language_code": "en_us",
"string": "A plugin to for advanced notification processing."
- }
+ }
],
- "params" : [
- ],
+ "params": [],
- "settings": [
+ "settings": [
{
"function": "INCLUDED_SECTIONS",
"type": "text.multiselect",
"default_value": ["new_devices", "down_devices", "events"],
- "options": ["new_devices", "down_devices", "down_reconnected", "events", "plugins"],
+ "options": [
+ "new_devices",
+ "down_devices",
+ "down_reconnected",
+ "events",
+ "plugins"
+ ],
"localized": ["name", "description"],
"name": [
{
@@ -52,16 +57,16 @@
{
"language_code": "en_us",
"string": "Specifies which events trigger notifications. Remove the event type(s) you do not want to get notified on. This setting overrides device-specific settings in the UI. (CTRL + Click to select/deselect)."
- },
+ },
{
"language_code": "de_de",
"string": "Spezifiziert, bei welchen Events Benachrichtigungen versendet werden. Entfernen Sie die Eventtypen, bei welchen Sie nicht benachrichtigt werden wollen. Diese Einstellung überschreibt gerätespezifische Einstellungen im UI. (STRG + klicken zum aus-/abwählen)."
- },
+ },
{
"language_code": "es_es",
"string": "Especifica que eventos envían notificaciones. Elimina los tipos de eventos de los que no quieras recibir notificaciones. Este ajuste sobreescribe los ajustes específicos de los dispositivos en la interfaz. (CTRL + Clic para seleccionar / deseleccionar)."
}
- ]
+ ]
},
{
"function": "alert_down_time",
@@ -79,8 +84,8 @@
{
"language_code": "en_us",
"string": "After how many minutes a device is reported as down and a notification is sent."
- }
- ]
+ }
+ ]
},
{
"function": "new_dev_condition",
@@ -98,8 +103,8 @@
{
"language_code": "en_us",
"string": "You can specify a SQL where condition to filter out New Devices from notifications. For example AND dev_LastIP NOT LIKE '192.168.3.%' will always exlude New Device notifications for all devices with the IP starting with 192.168.3.%."
- }
- ]
+ }
+ ]
},
{
"function": "event_condition",
@@ -117,13 +122,10 @@
{
"language_code": "en_us",
"string": "You can specify a SQL where condition to filter out Events from notifications. For example AND dev_LastIP NOT LIKE '192.168.3.%' will always exlude New Device notifications for all devices with the IP starting with 192.168.3.%."
- }
- ]
+ }
+ ]
}
],
- "database_column_definitions":
- [
-
- ]
+ "database_column_definitions": []
}
diff --git a/front/plugins/nslookup_scan/config.json b/front/plugins/nslookup_scan/config.json
index 4bac9650..d7d4343a 100755
--- a/front/plugins/nslookup_scan/config.json
+++ b/front/plugins/nslookup_scan/config.json
@@ -3,7 +3,7 @@
"unique_prefix": "NSLOOKUP",
"plugin_type": "other",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"show_ui": true,
"localized": ["display_name", "description", "icon"],
"display_name": [
@@ -22,41 +22,52 @@
{
"language_code": "en_us",
"string": "A plugin to discover device names."
- }
+ }
+ ],
+ "params": [
+ {
+ "name": "ips",
+ "type": "sql",
+ "value": "SELECT dev_LastIP from DEVICES order by dev_MAC",
+ "timeoutMultiplier": true
+ }
],
- "params" : [
- {
- "name" : "ips",
- "type" : "sql",
- "value" : "SELECT dev_LastIP from DEVICES order by dev_MAC",
- "timeoutMultiplier" : true
- }
- ],
"settings": [
{
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"before_name_updates",
- "options": ["disabled", "before_name_updates", "on_new_device", "once", "schedule", "always_after_scan"],
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "before_name_updates",
+ "options": [
+ "disabled",
+ "before_name_updates",
+ "on_new_device",
+ "once",
+ "schedule",
+ "always_after_scan"
+ ],
"localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuándo ejecutar"
- },
- {
- "language_code":"de_de",
- "string" : "Wann laufen"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "When the plugin should be executed. If enabled this will execute the scan until there are no (unknown) or (name not found) devices. Setting this to on_new_device or a daily schedule is recommended.
Depends on the SCAN_SUBNETS setting."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wann laufen"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When the plugin should be executed. If enabled this will execute the scan until there are no (unknown) or (name not found) devices. Setting this to on_new_device or a daily schedule is recommended.
Depends on the SCAN_SUBNETS setting."
+ }
+ ]
+ },
{
"function": "CMD",
"type": "readonly",
@@ -75,7 +86,7 @@
{
"language_code": "de_de",
"string": "Befehl"
- }
+ }
],
"description": [
{
@@ -89,40 +100,44 @@
{
"language_code": "de_de",
"string": "Befehl zum Ausführen. Dies kann nicht geändert werden"
- }
+ }
]
},
{
"function": "RUN_SCHD",
"type": "text",
- "default_value":"*/30 * * * *",
+ "default_value": "*/30 * * * *",
"options": [],
"localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- },
- {
- "language_code":"de_de",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the NSLOOKUP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración NSLOOKUP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- },
- {
- "language_code":"de_de",
- "string" : "Nur aktiviert, wenn Sie schedule in der NSLOOKUP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the NSLOOKUP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración NSLOOKUP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Nur aktiviert, wenn Sie schedule in der NSLOOKUP_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+ }
+ ]
+ },
{
"function": "RUN_TIMEOUT",
"type": "integer",
@@ -141,7 +156,7 @@
{
"language_code": "de_de",
"string": "Zeitüberschreitung"
- }
+ }
],
"description": [
{
@@ -155,22 +170,19 @@
{
"language_code": "de_de",
"string": "Maximale Zeit in Sekunden, die auf den Abschluss des Skripts gewartet werden soll. Bei Überschreitung dieser Zeit wird das Skript abgebrochen."
- }
+ }
]
}
],
- "database_column_definitions":
- [
+ "database_column_definitions": [
{
- "column": "Object_PrimaryID",
+ "column": "Object_PrimaryID",
"css_classes": "col-sm-2",
"show": true,
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -183,15 +195,13 @@
]
},
{
- "column": "Object_SecondaryID",
+ "column": "Object_SecondaryID",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -204,15 +214,13 @@
]
},
{
- "column": "Watched_Value1",
+ "column": "Watched_Value1",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -221,15 +229,13 @@
]
},
{
- "column": "Watched_Value2",
+ "column": "Watched_Value2",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -238,15 +244,13 @@
]
},
{
- "column": "DateTimeCreated",
+ "column": "DateTimeCreated",
"css_classes": "col-sm-2",
"show": true,
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -265,9 +269,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -303,9 +305,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -316,6 +316,6 @@
"string": "Estado"
}
]
- }
+ }
]
}
diff --git a/front/plugins/pholus_scan/config.json b/front/plugins/pholus_scan/config.json
index 914b8064..4798278f 100755
--- a/front/plugins/pholus_scan/config.json
+++ b/front/plugins/pholus_scan/config.json
@@ -15,11 +15,7 @@
}
],
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -75,13 +71,8 @@
"always_after_scan",
"on_new_device"
],
- "localized": [
- "name",
- "description"
- ],
- "events": [
- "run"
- ],
+ "localized": ["name", "description"],
+ "events": ["run"],
"name": [
{
"language_code": "en_us",
@@ -108,10 +99,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/pholus_scan/script.py userSubnets={subnets} timeoutSec={timeout}",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -138,10 +126,7 @@
"type": "integer",
"default_value": 300,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -168,10 +153,7 @@
"type": "text",
"default_value": "30 3 * * *",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -198,10 +180,7 @@
"type": "integer",
"default_value": 30,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -226,20 +205,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- "Watched_Value1",
- "Watched_Value2"
- ],
+ "default_value": ["Watched_Value1", "Watched_Value2"],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -264,19 +237,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new"
- ],
+ "default_value": ["new"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -308,9 +276,7 @@
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -330,9 +296,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -352,9 +316,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -374,9 +336,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -396,9 +356,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -418,9 +376,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -439,9 +395,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -477,9 +431,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -492,4 +444,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/pihole_scan/config.json b/front/plugins/pihole_scan/config.json
index 2bc5b886..211a3710 100755
--- a/front/plugins/pihole_scan/config.json
+++ b/front/plugins/pihole_scan/config.json
@@ -4,14 +4,14 @@
"plugin_type": "device_scanner",
"enabled": true,
"data_source": "sqlite-db-query",
- "mapped_to_table": "CurrentScan",
+ "mapped_to_table": "CurrentScan",
"data_filters": [
{
- "compare_column" : "Object_PrimaryID",
- "compare_operator" : "==",
- "compare_field_id": "txtMacFilter",
- "compare_js_template": "'{value}'.toString()",
- "compare_use_quotes": true
+ "compare_column": "Object_PrimaryID",
+ "compare_operator": "==",
+ "compare_field_id": "txtMacFilter",
+ "compare_js_template": "'{value}'.toString()",
+ "compare_use_quotes": true
}
],
"show_ui": true,
@@ -25,7 +25,7 @@
{
"language_code": "es_es",
"string": "PiHole (Sincronización de dispositivos)"
- }
+ }
],
"icon": [
{
@@ -35,7 +35,7 @@
{
"language_code": "es_es",
"string": ""
- }
+ }
],
"description": [
{
@@ -45,138 +45,175 @@
{
"language_code": "es_es",
"string": "Este complemento sincroniza dispositivos desde la base de datos de PiHole"
- }
+ }
],
- "params" : [
+ "params": [
{
- "name" : "subnets",
- "type" : "setting",
- "value" : "SCAN_SUBNETS",
- "base64": true
- }],
+ "name": "subnets",
+ "type": "setting",
+ "value": "SCAN_SUBNETS",
+ "base64": true
+ }
+ ],
"settings": [
- {
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
+ {
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
},
{
- "language_code":"es_es",
- "string" : "Cuando ejecutar"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Specify when your PiHole device import from the PiHole database will run. The typical setting would be schedule and then you specify a cron-like schedule in the PIHOLE_RUN_SCHDsetting. If enabled, you must map the pihole db into your container to the :/etc/pihole/pihole-FTL.db mount path as specified in the DB_PATH setting. ⚠ Use the same schedule if you have multiple Device scanners enabled."
+ "language_code": "es_es",
+ "string": "Cuando ejecutar"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Specify when your PiHole device import from the PiHole database will run. The typical setting would be schedule and then you specify a cron-like schedule in the PIHOLE_RUN_SCHDsetting. If enabled, you must map the pihole db into your container to the :/etc/pihole/pihole-FTL.db mount path as specified in the DB_PATH setting. ⚠ Use the same schedule if you have multiple Device scanners enabled."
},
{
- "language_code":"es_es",
- "string" : "Especifique cuándo se ejecutará la importación de su dispositivo PiHole desde la base de datos de PiHole. La configuración típica sería schedule y luego especifica una programación similar a cron en la configuración PIHOLE_RUN_SCHD. Si está habilitado, debe asignar la base de datos pihole en su contenedor a la ruta de montaje :/etc/pihole/pihole-FTL.db como se especifica en la configuración DB_PATH."
- }]
+ "language_code": "es_es",
+ "string": "Especifique cuándo se ejecutará la importación de su dispositivo PiHole desde la base de datos de PiHole. La configuración típica sería schedule y luego especifica una programación similar a cron en la configuración PIHOLE_RUN_SCHD. Si está habilitado, debe asignar la base de datos pihole en su contenedor a la ruta de montaje :/etc/pihole/pihole-FTL.db como se especifica en la configuración DB_PATH."
+ }
+ ]
},
{
- "function": "CMD",
- "type": "text",
- "default_value":"SELECT n.hwaddr AS Object_PrimaryID, {s-quote}null{s-quote} AS Object_SecondaryID, datetime() AS DateTime, na.ip AS Watched_Value1, n.lastQuery AS Watched_Value2, na.name AS Watched_Value3, n.macVendor AS Watched_Value4, {s-quote}null{s-quote} AS Extra, n.hwaddr AS ForeignKey FROM EXTERNAL_PIHOLE.Network AS n LEFT JOIN EXTERNAL_PIHOLE.Network_Addresses AS na ON na.network_id = n.id WHERE n.hwaddr NOT LIKE {s-quote}ip-%{s-quote} AND n.hwaddr is not {s-quote}00:00:00:00:00:00{s-quote} AND na.ip is not null",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "SQL to run"
+ "function": "CMD",
+ "type": "text",
+ "default_value": "SELECT n.hwaddr AS Object_PrimaryID, {s-quote}null{s-quote} AS Object_SecondaryID, datetime() AS DateTime, na.ip AS Watched_Value1, n.lastQuery AS Watched_Value2, na.name AS Watched_Value3, n.macVendor AS Watched_Value4, {s-quote}null{s-quote} AS Extra, n.hwaddr AS ForeignKey FROM EXTERNAL_PIHOLE.Network AS n LEFT JOIN EXTERNAL_PIHOLE.Network_Addresses AS na ON na.network_id = n.id WHERE n.hwaddr NOT LIKE {s-quote}ip-%{s-quote} AND n.hwaddr is not {s-quote}00:00:00:00:00:00{s-quote} AND na.ip is not null",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "SQL to run"
},
{
- "language_code":"es_es",
- "string" : "Consulta SQL"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "This SQL query is used to populate the coresponding UI tables under the Plugins section. This particular one selects data from a mapped PiHole SQLite database and maps it to the corresponding Plugin columns."
+ "language_code": "es_es",
+ "string": "Consulta SQL"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This SQL query is used to populate the coresponding UI tables under the Plugins section. This particular one selects data from a mapped PiHole SQLite database and maps it to the corresponding Plugin columns."
},
{
- "language_code":"es_es",
- "string" : "Esta consulta SQL se usa para completar las tablas de IU correspondientes en la sección Complementos. Este en particular selecciona datos de una base de datos PiHole SQLite asignada y los asigna a las columnas correspondientes del complemento."
- }]
+ "language_code": "es_es",
+ "string": "Esta consulta SQL se usa para completar las tablas de IU correspondientes en la sección Complementos. Este en particular selecciona datos de una base de datos PiHole SQLite asignada y los asigna a las columnas correspondientes del complemento."
+ }
+ ]
},
{
- "function": "DB_PATH",
- "type": "text",
- "default_value":"/etc/pihole/pihole-FTL.db",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "DB Path"
+ "function": "DB_PATH",
+ "type": "text",
+ "default_value": "/etc/pihole/pihole-FTL.db",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "DB Path"
},
{
- "language_code":"es_es",
- "string" : "Ruta de la base de datos"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Required setting for the sqlite-db-query plugin type. Is used to mount an external SQLite database and execute the SQL query stored in the CMD setting."
+ "language_code": "es_es",
+ "string": "Ruta de la base de datos"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Required setting for the sqlite-db-query plugin type. Is used to mount an external SQLite database and execute the SQL query stored in the CMD setting."
},
{
- "language_code":"es_es",
- "string" : "Configuración requerida para el tipo de complemento sqlite-db-query. Se utiliza para montar una base de datos SQLite externa y ejecutar la consulta SQL almacenada en la configuración CMD."
- }]
+ "language_code": "es_es",
+ "string": "Configuración requerida para el tipo de complemento sqlite-db-query. Se utiliza para montar una base de datos SQLite externa y ejecutar la consulta SQL almacenada en la configuración CMD."
+ }
+ ]
},
{
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"*/30 * * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "*/30 * * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
},
{
- "language_code":"es_es",
- "string" : "Programar"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the ARPSCAN_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering */30 * * * * will run the scan every 30 minutes. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices."
+ "language_code": "es_es",
+ "string": "Programar"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the ARPSCAN_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering */30 * * * * will run the scan every 30 minutes. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices."
},
{
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración ARPSCAN_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar */30 * * * * ejecutará el escaneo cada 30 minutos. Se ejecutará la PRÓXIMA vez que pase el tiempo.
Se recomienda utilizar el mismo intervalo de programación para todos los complementos que analizan su red."
- }]
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración ARPSCAN_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar */30 * * * * ejecutará el escaneo cada 30 minutos. Se ejecutará la PRÓXIMA vez que pase el tiempo.
Se recomienda utilizar el mismo intervalo de programación para todos los complementos que analizan su red."
+ }
+ ]
},
{
- "function": "WATCH",
- "type": "text.multiselect",
- "default_value":["Watched_Value1", "Watched_Value2"],
- "options": ["Watched_Value1","Watched_Value2","Watched_Value3","Watched_Value4"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Watched"
+ "function": "WATCH",
+ "type": "text.multiselect",
+ "default_value": ["Watched_Value1", "Watched_Value2"],
+ "options": [
+ "Watched_Value1",
+ "Watched_Value2",
+ "Watched_Value3",
+ "Watched_Value4"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Watched"
},
{
- "language_code":"es_es",
- "string" : "Visto"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is IPWatched_Value2 is Last QueryWatched_Value3 is Name Watched_Value4 is N/A
"
+ "language_code": "es_es",
+ "string": "Visto"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is IPWatched_Value2 is Last QueryWatched_Value3 is Name Watched_Value4 is N/A
"
},
{
- "language_code":"es_es",
- "string" : "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es IPWatched_Value2 es ProveedorWatched_Value3 is es InterfazWatched_Value4 es N/A
"
- }]
+ "language_code": "es_es",
+ "string": "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es IPWatched_Value2 es ProveedorWatched_Value3 is es InterfazWatched_Value4 es N/A
"
+ }
+ ]
},
{
"function": "REPORT_ON",
"type": "text.multiselect",
"default_value": ["new"],
- "options": ["new", "watched-changed", "watched-not-changed", "missing-in-last-scan"],
+ "options": [
+ "new",
+ "watched-changed",
+ "watched-not-changed",
+ "missing-in-last-scan"
+ ],
"localized": ["name", "description"],
"name": [
{
@@ -186,7 +223,7 @@
{
"language_code": "es_es",
"string": "Informar sobre"
- }
+ }
],
"description": [
{
@@ -196,158 +233,175 @@
{
"language_code": "es_es",
"string": "¿Cuándo se debe enviar la notificación?."
- }
+ }
]
}
],
- "database_column_definitions":
- [
+ "database_column_definitions": [
{
"column": "Object_PrimaryID",
- "mapped_to_column": "cur_MAC",
+ "mapped_to_column": "cur_MAC",
"css_classes": "col-sm-2",
"show": true,
- "type": "device_mac",
- "default_value":"",
+ "type": "device_mac",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "MAC"
- },
- {
- "language_code":"es_es",
- "string" : "MAC"
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "MAC"
+ },
+ {
+ "language_code": "es_es",
+ "string": "MAC"
+ }
+ ]
+ },
{
- "column": "Object_SecondaryID",
+ "column": "Object_SecondaryID",
"css_classes": "col-sm-2",
"show": false,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ }
+ ]
+ },
{
- "column": "Watched_Value1",
- "mapped_to_column": "cur_IP",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "device_ip",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Link to device"
- },
- {
- "language_code":"es_es",
- "string" : "N/A"
- }]
+ "column": "Watched_Value1",
+ "mapped_to_column": "cur_IP",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "device_ip",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Link to device"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
},
{
"column": "Watched_Value2",
- "mapped_to_column": "cur_LastQuery",
+ "mapped_to_column": "cur_LastQuery",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Last Query"
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Last Query"
+ }
+ ]
},
{
"column": "Watched_Value3",
- "mapped_to_column": "cur_Name",
+ "mapped_to_column": "cur_Name",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Name"
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Name"
+ }
+ ]
},
{
- "column": "Watched_Value4",
- "mapped_to_column": "cur_Vendor",
+ "column": "Watched_Value4",
+ "mapped_to_column": "cur_Vendor",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Vendor"
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Vendor"
+ }
+ ]
},
{
- "column": "Dummy",
- "mapped_to_column": "cur_ScanMethod",
- "mapped_to_column_data": {
- "value": "PIHOLE"
- },
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Scan method"
- },
- {
- "language_code":"es_es",
- "string" : "Método de escaneo"
- }]
- } ,
+ "column": "Dummy",
+ "mapped_to_column": "cur_ScanMethod",
+ "mapped_to_column_data": {
+ "value": "PIHOLE"
+ },
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Scan method"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Método de escaneo"
+ }
+ ]
+ },
{
"column": "DateTimeCreated",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Created"
- },
- {
- "language_code":"es_es",
- "string" : "Creado"
- }]
- },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Created"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Creado"
+ }
+ ]
+ },
{
- "column": "DateTimeChanged",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Changed"
- },
- {
- "language_code":"es_es",
- "string" : "Cambiado"
- }]
- }
+ "column": "DateTimeChanged",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Changed"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cambiado"
+ }
+ ]
+ }
]
}
diff --git a/front/plugins/set_password/config.json b/front/plugins/set_password/config.json
index 431a7682..210a187c 100755
--- a/front/plugins/set_password/config.json
+++ b/front/plugins/set_password/config.json
@@ -1,28 +1,32 @@
-{
+{
"code_name": "set_password",
"template_type": "database-entry",
"unique_prefix": "SETPWD",
"plugin_type": "system",
"enabled": true,
- "data_source": "template",
+ "data_source": "template",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
- "display_name": [{
+ "display_name": [
+ {
"language_code": "en_us",
"string": "Set password"
},
- {
+ {
"language_code": "es_es",
"string": "Establecer contraseña"
- }],
- "description": [{
- "language_code": "en_us",
- "string": "A simple plugin to set the web ui password on app start."
- },
- {
- "language_code": "es_es",
- "string": "Un complemento simple para configurar la contraseña de la interfaz de usuario web al iniciar la aplicación."
- }],
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A simple plugin to set the web ui password on app start."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Un complemento simple para configurar la contraseña de la interfaz de usuario web al iniciar la aplicación."
+ }
+ ],
"icon": [
{
"language_code": "en_us",
@@ -31,61 +35,58 @@
{
"language_code": "es_es",
"string": ""
- }
- ],
- "params" : [
- {
- "name" : "password",
- "type" : "setting",
- "value" : "SETPWD_password"
}
- ],
- "settings":[
- {
- "function": "enable_password",
- "type": "boolean",
- "default_value": false,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Enable login"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "When enabled a login dialog is displayed. If facing issues, you can always disable the login by setting SETPWD_enable_password=False in your app.conf file."
- }
- ]
- },
- {
- "function": "password",
- "type": "password.SHA256",
- "maxLength": 50,
- "default_value": "123456",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Password"
- },
- {
- "language_code": "es_es",
- "string": "Contraseña"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The default password is 123456."
- }
- ]
- }
-
-
+ ],
+ "params": [
+ {
+ "name": "password",
+ "type": "setting",
+ "value": "SETPWD_password"
+ }
+ ],
+ "settings": [
+ {
+ "function": "enable_password",
+ "type": "boolean",
+ "default_value": false,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Enable login"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When enabled a login dialog is displayed. If facing issues, you can always disable the login by setting SETPWD_enable_password=False in your app.conf file."
+ }
+ ]
+ },
+ {
+ "function": "password",
+ "type": "password.SHA256",
+ "maxLength": 50,
+ "default_value": "123456",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Password"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Contraseña"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The default password is 123456."
+ }
+ ]
+ }
]
-
- }
+}
diff --git a/front/plugins/snmp_discovery/config.json b/front/plugins/snmp_discovery/config.json
index 8349d297..650eb4fa 100755
--- a/front/plugins/snmp_discovery/config.json
+++ b/front/plugins/snmp_discovery/config.json
@@ -1,475 +1,552 @@
{
- "code_name": "snmp_discovery",
- "unique_prefix": "SNMPDSC",
- "plugin_type": "device_scanner",
- "enabled": true,
- "data_source": "script",
- "data_filters": [
+ "code_name": "snmp_discovery",
+ "unique_prefix": "SNMPDSC",
+ "plugin_type": "device_scanner",
+ "enabled": true,
+ "data_source": "script",
+ "data_filters": [
+ {
+ "compare_column": "Object_PrimaryID",
+ "compare_operator": "==",
+ "compare_field_id": "txtMacFilter",
+ "compare_js_template": "'{value}'.toString()",
+ "compare_use_quotes": true
+ }
+ ],
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "mapped_to_table": "CurrentScan",
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "SNMP discovery"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Descubrimiento SNMP"
+ },
+ {
+ "language_code": "de_de",
+ "string": "SNMP-Erkennung"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ },
+ {
+ "language_code": "es_es",
+ "string": ""
+ },
+ {
+ "language_code": "de_de",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This plugin is used to discover devices via the arp table(s) of a RFC1213 compliant router or switch."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Este complemento se utiliza para descubrir dispositivos a través de las tablas arp de un enrutador o conmutador compatible con RFC1213."
+ }
+ ],
+ "params": [
+ {
+ "name": "routers",
+ "type": "setting",
+ "value": "SNMPDSC_routers"
+ }
+ ],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "compare_column" : "Object_PrimaryID",
- "compare_operator" : "==",
- "compare_field_id": "txtMacFilter",
- "compare_js_template": "'{value}'.toString()",
- "compare_use_quotes": true
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
}
- ],
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "mapped_to_table": "CurrentScan",
- "display_name" : [{
- "language_code": "en_us",
- "string": "SNMP discovery"
- },
- {
- "language_code": "es_es",
- "string": "Descubrimiento SNMP"
+ ]
},
{
- "language_code": "de_de",
- "string": "SNMP-Erkennung"
- }],
- "icon":[{
- "language_code":"en_us",
- "string" : ""
- },
- {
- "language_code":"es_es",
- "string" : ""
- },
- {
- "language_code":"de_de",
- "string" : ""
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "This plugin is used to discover devices via the arp table(s) of a RFC1213 compliant router or switch."
- },
- {
- "language_code":"es_es",
- "string" : "Este complemento se utiliza para descubrir dispositivos a través de las tablas arp de un enrutador o conmutador compatible con RFC1213."
- }],
- "params" : [
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "name" : "routers",
- "type" : "setting",
- "value" : "SNMPDSC_routers"
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
}
- ],
- "database_column_definitions":
- [
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "mapped_to_column": "cur_MAC",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "device_mac",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- },
- {
- "language_code":"es_es",
- "string" : "N/A"
- }]
- } ,
- {
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "N/A"
- },
- {
- "language_code":"es_es",
- "string" : "N/A"
- }]
+ "language_code": "en_us",
+ "string": "MAC address"
},
{
- "column": "Object_PrimaryID",
- "mapped_to_column": "cur_MAC",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "device_mac",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "MAC address"
- },
- {
- "language_code":"es_es",
- "string" : "Dirección MAC"
- }]
- },
- {
- "column": "Object_SecondaryID",
- "mapped_to_column": "cur_IP",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "device_ip",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "IP"
- },
- {
- "language_code":"es_es",
- "string" : "IP"
- }]
- } ,
- {
- "column": "DateTimeCreated",
- "mapped_to_column": "cur_DateTime",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Created"
- },
- {
- "language_code":"es_es",
- "string" : "Creado"
- }]
- },
- {
- "column": "Watched_Value1",
- "mapped_to_column": "cur_Name",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"(unknown)",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Hostname"
- },
- {
- "language_code":"es_es",
- "string" : "Nombre de host"
- }]
- },
- {
- "column": "Watched_Value2",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Router IP"
- },
- {
- "language_code":"es_es",
- "string" : "Router IP"
- }]
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Type"
- },
- {
- "language_code":"es_es",
- "string" : "Tipo"
- }]
- } ,
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Network"
- },
- {
- "language_code":"es_es",
- "string" : "Red"
- }]
- } ,
- {
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "textbox_save",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Comments"
- },
- {
- "language_code":"es_es",
- "string" : "Comentarios"
- }]
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "RAW output"
- },
- {
- "language_code":"es_es",
- "string" : "salida RAW"
- }]
- },
- {
- "column": "Dummy",
- "mapped_to_column": "cur_ScanMethod",
- "mapped_to_column_data": {
- "value": "SNMPDSC"
- },
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Scan method"
- },
- {
- "language_code":"es_es",
- "string" : "Método de escaneo"
- }]
- } ,
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "replace",
- "default_value":"",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Status"
- },
- {
- "language_code":"es_es",
- "string" : "Estado"
- }]
- }
- ],
- "settings":[
- {
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
- },
- {
- "language_code":"es_es",
- "string" : "Cuándo ejecutar"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Enable import of devices from a SNMP enabled device. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings. ⚠ Use the same schedule if you have multiple Device scanners enabled."
- },
- {
- "language_code":"es_es",
- "string" : "Habilite la importación de dispositivos desde un dispositivo habilitado para SNMP. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el análisis se ejecuta solo una vez al inicio de la aplicación (contenedor) o después de actualizar su configuración."
- }]
- },
- {
- "function": "CMD",
- "type": "text",
- "default_value":"python3 /app/front/plugins/snmp_discovery/script.py routers={s-quote}{routers}{s-quote}",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Command"
- },
- {
- "language_code":"es_es",
- "string" : "Comando"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Command to run. Not recommended to change."
- },
- {
- "language_code":"es_es",
- "string" : "Comando para ejecutar. No se recomienda cambiar."
- }]
- },
- {
- "function": "routers",
- "type": "list",
- "default_value":["snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1.2.1.3.1.1.2"],
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Routers"
- },
- {
- "language_code":"es_es",
- "string" : "Routers"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "A list of snmpwalk commands to execute against IP addresses of roputers/switches with SNMP turned on.
Example with the router on the IP 192.168.1.1:
snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1.2.1.3.1.1.2
Only IPv4 supported. Authentication is not supported. More info on the plugin here."
- },
- {
- "language_code":"es_es",
- "string" : "Una lista de comandos snmpwalk para ejecutar en direcciones IP de computadoras/conmutadores con SNMP activado.
Ejemplo con el enrutador en la IP 192.168.1.1:
snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1. 2.1.3.1.1.2
Solo se admite IPv4. No se admite la autenticación. Más información sobre el complemento aquí."
- }]
- },
- {
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"0 2 * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
- },
- {
- "language_code":"es_es",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the SNMPDSC_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices. "
- },
- {
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración SNMPDSC_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- }]
- },
- {
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value":5,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Run timeout"
- },
- {
- "language_code":"es_es",
- "string" : "Tiempo de espera de ejecución"
- },
- {
- "language_code":"de_de",
- "string" : "Wartezeit"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code":"es_es",
- "string" : "Tiempo máximo en segundos para esperar a que finalice el script. Si se excede este tiempo, el script se cancela.."
- } ]
- },
- {
- "function": "WATCH",
- "type": "text.multiselect",
- "default_value":["Watched_Value1"],
- "options": ["Watched_Value1","Watched_Value2","Watched_Value3","Watched_Value4"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Watched"
- },
- {
- "language_code":"es_es",
- "string" : "Visto"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is Hostname (not discoverable) Watched_Value2 is Router IP Watched_Value3 is not used Watched_Value4 is not used
"
- },
- {
- "language_code":"es_es",
- "string" : "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es el nombre de host (no detectable) Watched_Value2 es la IP del enrutador Watched_Value3< /code> no se utiliza Watched_Value4 no se utiliza
"
- }]
- },
- {
- "function": "REPORT_ON",
- "type": "text.multiselect",
- "default_value":["new","watched-changed"],
- "options": ["new","watched-changed","watched-not-changed", "missing-in-last-scan"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "Report on"
- },
- {
- "language_code":"es_es",
- "string" : "Informar sobre"
- }] ,
- "description":[{
- "language_code":"en_us",
- "string" : "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
- },
- {
- "language_code":"es_es",
- "string" : "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). watched-changed significa que las columnas Watched_ValueN seleccionadas cambiaron."
- }]
+ "language_code": "es_es",
+ "string": "Dirección MAC"
}
- ]
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "mapped_to_column": "cur_IP",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "device_ip",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "IP"
+ },
+ {
+ "language_code": "es_es",
+ "string": "IP"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeCreated",
+ "mapped_to_column": "cur_DateTime",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Created"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Creado"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "mapped_to_column": "cur_Name",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "(unknown)",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Hostname"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Nombre de host"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Router IP"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Router IP"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Type"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tipo"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Network"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Red"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "RAW output"
+ },
+ {
+ "language_code": "es_es",
+ "string": "salida RAW"
+ }
+ ]
+ },
+ {
+ "column": "Dummy",
+ "mapped_to_column": "cur_ScanMethod",
+ "mapped_to_column_data": {
+ "value": "SNMPDSC"
+ },
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Scan method"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Método de escaneo"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "watched-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "new",
+ "replacement": ""
+ },
+ {
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable import of devices from a SNMP enabled device. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings. ⚠ Use the same schedule if you have multiple Device scanners enabled."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilite la importación de dispositivos desde un dispositivo habilitado para SNMP. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el análisis se ejecuta solo una vez al inicio de la aplicación (contenedor) o después de actualizar su configuración."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "text",
+ "default_value": "python3 /app/front/plugins/snmp_discovery/script.py routers={s-quote}{routers}{s-quote}",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run. Not recommended to change."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando para ejecutar. No se recomienda cambiar."
+ }
+ ]
+ },
+ {
+ "function": "routers",
+ "type": "list",
+ "default_value": [
+ "snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1.2.1.3.1.1.2"
+ ],
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Routers"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Routers"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "A list of snmpwalk commands to execute against IP addresses of roputers/switches with SNMP turned on.
Example with the router on the IP 192.168.1.1:
snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1.2.1.3.1.1.2
Only IPv4 supported. Authentication is not supported. More info on the plugin here."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Una lista de comandos snmpwalk para ejecutar en direcciones IP de computadoras/conmutadores con SNMP activado.
Ejemplo con el enrutador en la IP 192.168.1.1:
snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1. 2.1.3.1.1.2
Solo se admite IPv4. No se admite la autenticación. Más información sobre el complemento aquí."
+ }
+ ]
+ },
+ {
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "0 2 * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the SNMPDSC_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices. "
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración SNMPDSC_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 5,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se excede este tiempo, el script se cancela.."
+ }
+ ]
+ },
+ {
+ "function": "WATCH",
+ "type": "text.multiselect",
+ "default_value": ["Watched_Value1"],
+ "options": [
+ "Watched_Value1",
+ "Watched_Value2",
+ "Watched_Value3",
+ "Watched_Value4"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Watched"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Visto"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is Hostname (not discoverable) Watched_Value2 is Router IP Watched_Value3 is not used Watched_Value4 is not used
"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es el nombre de host (no detectable) Watched_Value2 es la IP del enrutador Watched_Value3< /code> no se utiliza Watched_Value4 no se utiliza
"
+ }
+ ]
+ },
+ {
+ "function": "REPORT_ON",
+ "type": "text.multiselect",
+ "default_value": ["new", "watched-changed"],
+ "options": [
+ "new",
+ "watched-changed",
+ "watched-not-changed",
+ "missing-in-last-scan"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Report on"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Informar sobre"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). watched-changed significa que las columnas Watched_ValueN seleccionadas cambiaron."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/sync/README.md b/front/plugins/sync/README.md
index ebf02d22..beb62b4a 100755
--- a/front/plugins/sync/README.md
+++ b/front/plugins/sync/README.md
@@ -5,47 +5,29 @@ Synchronization plugin to synchronize multiple app instances. The Plugin can syc
1. 💻 Devices: The plugin sends an encrypted `table_devices.json` file to synchronize the whole Devices DB table.
1. 🔌 Plugin data: The plugin sends encrypted `last_result.log` files for individual plugins.
-### Synchronizing 💻 Devices data
+> [!TIP]
+> `[n]` indicates a setting taht is usually specified for the node instance. `[n,h]` indicates a setting used both, on the node and on the hub instance.
-This is probably what most of the setups will use. Required settings follow.
+### Synchronizing 💻 Devices data or 🔌 Plugins data
-#### Node (Source) Settings
+Most of the setups will probably only use 💻 Devices synchronization. 🔌 Plugins data will be probably used in only special use cases.
-- When to run `SYNC_RUN`
-- Schedule `SYNC_RUN_SCHD`
-- API token `SYNC_api_token`
-- Encryption Key `SYNC_encryption_key`
-- Node name `SYNC_node_name`
-- Hub URL `SYNC_hub_url`
-- Send Devices `SYNC_devices` 👈
+#### [n] Node (Source) Settings
-#### Hub (Target) Settings
+- When to run [n,h] `SYNC_RUN`
+- Schedule [n,h] `SYNC_RUN_SCHD`
+- API token [n,h] `SYNC_api_token`
+- Encryption Key [n,h] `SYNC_encryption_key`
+- Node name [n] `SYNC_node_name`
+- Hub URL [n] `SYNC_hub_url`
+- Sync Devices [n] `SYNC_devices` or Sync Plugins [n] `SYNC_plugins` (or both)
-- When to run `SYNC_RUN`
-- Schedule `SYNC_RUN_SCHD`
-- API token `SYNC_api_token`
-- Encryption Key `SYNC_encryption_key`
+#### [h] Hub (Target) Settings
-### Synchronizing 🔌 Plugins data
-
-This mechanism will be probably used in special use cases. Required settings follow.
-
-#### Node (Source) Settings
-
-- When to run `SYNC_RUN`
-- Schedule `SYNC_RUN_SCHD`
-- API token `SYNC_api_token`
-- Encryption Key `SYNC_encryption_key`
-- Node name `SYNC_node_name`
-- Hub URL `SYNC_hub_url`
-- Send Plugins `SYNC_plugins` 👈
-
-#### Hub (Target) Settings
-
-- When to run `SYNC_RUN`
-- Schedule `SYNC_RUN_SCHD`
-- API token `SYNC_api_token`
-- Encryption Key `SYNC_encryption_key`
+- When to run [n,h] `SYNC_RUN`
+- Schedule [n,h] `SYNC_RUN_SCHD`
+- API token [n,h] `SYNC_api_token`
+- Encryption Key [n,h] `SYNC_encryption_key`
### Usage
@@ -54,4 +36,4 @@ This mechanism will be probably used in special use cases. Required settings fol
### Notes
-- TBC
\ No newline at end of file
+- If a MAC address already exists on the hub, the device will be skipped in the data coming from this SYNC plugin.
\ No newline at end of file
diff --git a/front/plugins/sync/config.json b/front/plugins/sync/config.json
index ab211131..4f12ba57 100755
--- a/front/plugins/sync/config.json
+++ b/front/plugins/sync/config.json
@@ -1,9 +1,9 @@
-{
+{
"code_name": "sync",
"unique_prefix": "SYNC",
"plugin_type": "system",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"mapped_to_table": "CurrentScan",
"data_filters": [
{
@@ -16,279 +16,287 @@
],
"show_ui": true,
"localized": ["display_name", "description", "icon"],
- "display_name": [{
+ "display_name": [
+ {
"language_code": "en_us",
"string": "Sync Hub"
- }],
- "description": [{
- "language_code": "en_us",
- "string": "Plugin to synchronize multiple NetAlertX instances."
- }],
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Plugin to synchronize multiple NetAlertX instances."
+ }
+ ],
"icon": [
{
"language_code": "en_us",
"string": ""
}
],
- "params" : [],
- "settings":[
- {
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
-
- "default_value":"disabled",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device", "on_notification"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code":"en_us",
- "string" : "When to run"
+ "params": [],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+
+ "default_value": "disabled",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device",
+ "on_notification"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run [n,h]"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar [n,h]"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wann laufen [n,h]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When the sync should run. Data might be lost if you run the sync less frequently. Good options are always_after_scan, on_new_device, on_notification"
+ }
+ ]
},
{
- "language_code":"es_es",
- "string" : "Cuándo ejecutar"
+ "function": "RUN_SCHD",
+ "type": "text",
+
+ "default_value": "*/5 * * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule [n,h]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the SYNC_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración SYNC_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Nur aktiviert, wenn Sie schedule in der SYNC_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+ }
+ ]
},
{
- "language_code":"de_de",
- "string" : "Wann laufen"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "When the node sync should run. Data might be lost if you run the sync less frequently. Good options are always_after_scan, on_new_device, on_notification"
- }]
- },
- {
- "function": "RUN_SCHD",
- "type": "text",
-
- "default_value":"*/5 * * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
+ "function": "api_token",
+ "type": "text",
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "API token [n,h]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "API token to secure communication. It's sent in the request header. The API token needs to be the same on the hub and on the nodes."
+ }
+ ]
},
{
- "language_code":"es_es",
- "string" : "Schedule"
+ "function": "encryption_key",
+ "type": "text",
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Encryption Key [n,h]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Encryption key used to encrypt the data before sending and for decryption on th ehub. The key needs to be the same on the hub and on the nodes."
+ }
+ ]
},
{
- "language_code":"de_de",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the SYNC_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ "function": "hub_url",
+ "type": "text",
+
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Hub URL [n]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The URL of the hub (target instance). Set on the Node. Without a trailig slash, for example http://192.168.1.82:20211"
+ }
+ ]
},
{
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración SYNC_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ "function": "node_name",
+ "type": "text",
+ "maxLength": 50,
+ "default_value": "",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Node name [n]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Use a unique node name, without spaces or special characters, such as Node_Vlan01"
+ }
+ ]
},
{
- "language_code":"de_de",
- "string" : "Nur aktiviert, wenn Sie schedule in der SYNC_RUN-Einstellung auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter crontab.guru). Wenn Sie beispielsweise 0 4 * * * eingeben, wird der Scan nach 4 Uhr morgens in der TIMEZONE ausgeführt. Code> den Sie oben festgelegt haben. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
- }]
- },
- {
- "function": "api_token",
- "type": "text",
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "API token"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "API token to secure communication. The API token needs to be the same on the hub and on the nodes."
- }
- ]
- },
- {
- "function": "encryption_key",
- "type": "text",
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Encryption Key"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Encryption key used to encrypt the sent data. The key needs to be the same on the hub and on the nodes."
- }
- ]
- },
- {
- "function": "hub_url",
- "type": "text",
-
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Hub URL"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Target hub URL to send the data to without a trailig slash, for example http://192.168.1.82:20211"
- }
- ]
- },
- {
- "function": "node_name",
- "type": "text",
- "maxLength": 50,
- "default_value": "",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Node name"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Use a unique node name, without spaces or special characters, such as Node_Vlan01"
- }
- ]
- },
- {
- "function": "devices",
- "type": "boolean",
- "default_value": false,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Send Devices"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "When enabled the whole Devices table is sent over. Only new devices with new MACs are inserted in the target hub."
- }
- ]
- },
- {
- "function": "plugins",
- "type": "text.multiselect",
- "maxLength": 50,
- "default_value": [
- ],
- "options": ["{value}"],
- "options_params" : [
- {
- "name" : "value",
- "type" : "setting",
- "value" : "LOADED_PLUGINS"
- }
- ],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Send Plugins"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Plugins to synchronize. Only plugins that produce some kind of output in last_result.log can be synchronized."
- }
- ]
- },
- {
- "function": "CMD",
- "type": "readonly",
- "default_value": "python3 /app/front/plugins/sync/sync.py",
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Command"
- },
- {
- "language_code": "es_es",
- "string": "Comando"
- },
- {
- "language_code": "de_de",
- "string": "Befehl"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Command to run. This can not be changed"
- },
- {
- "language_code": "es_es",
- "string": "Comando a ejecutar. Esto no se puede cambiar"
- },
- {
- "language_code": "de_de",
- "string": "Befehl zum Ausführen. Dies kann nicht geändert werden"
- }
- ]
- },
- {
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value": 30,
- "options": [],
- "localized": ["name", "description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "Run timeout"
- },
- {
- "language_code": "es_es",
- "string": "Tiempo límite de ejecución"
- },
- {
- "language_code": "de_de",
- "string": "Zeitüberschreitung"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code": "es_es",
- "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- },
- {
- "language_code": "de_de",
- "string": "Maximale Zeit in Sekunden, die auf den Abschluss des Skripts gewartet werden soll. Bei Überschreitung dieser Zeit wird das Skript abgebrochen."
- }
- ]
- }
-
-
+ "function": "devices",
+ "type": "boolean",
+ "default_value": false,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Sync Devices [n]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "When enabled the whole Devices table is sent over. Only new devices with new MACs are inserted in the target hub."
+ }
+ ]
+ },
+ {
+ "function": "plugins",
+ "type": "text.multiselect",
+ "maxLength": 50,
+ "default_value": [],
+ "options": ["{value}"],
+ "options_params": [
+ {
+ "name": "value",
+ "type": "setting",
+ "value": "LOADED_PLUGINS"
+ }
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Sync Plugins [n]"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Plugins to synchronize. Only plugins that produce some kind of output in last_result.log can be synchronized."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "readonly",
+ "default_value": "python3 /app/front/plugins/sync/sync.py",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Befehl"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run. This can not be changed"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar. Esto no se puede cambiar"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Befehl zum Ausführen. Dies kann nicht geändert werden"
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 30,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo límite de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Zeitüberschreitung"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Maximale Zeit in Sekunden, die auf den Abschluss des Skripts gewartet werden soll. Bei Überschreitung dieser Zeit wird das Skript abgebrochen."
+ }
+ ]
+ }
],
"database_column_definitions": [
{
@@ -299,9 +307,7 @@
"type": "device_name_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -325,9 +331,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -351,9 +355,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -369,9 +371,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -392,27 +392,31 @@
"mapped_to_column": "cur_SyncHubNodeName",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Sync Node"
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Sync Node"
+ }
+ ]
},
{
"column": "Watched_Value4",
"css_classes": "col-sm-2",
"show": true,
- "type": "label",
- "default_value":"",
+ "type": "label",
+ "default_value": "",
"options": [],
"localized": ["name"],
- "name":[{
- "language_code":"en_us",
- "string" : "Device GUID"
- }]
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Device GUID"
+ }
+ ]
},
{
"column": "Dummy",
@@ -425,9 +429,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -450,9 +452,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -475,9 +475,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -517,9 +515,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -536,5 +532,4 @@
]
}
]
-
- }
+}
diff --git a/front/plugins/undiscoverables/config.json b/front/plugins/undiscoverables/config.json
index c8110b37..7f480dae 100755
--- a/front/plugins/undiscoverables/config.json
+++ b/front/plugins/undiscoverables/config.json
@@ -6,11 +6,7 @@
"data_source": "script",
"mapped_to_table": "CurrentScan",
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -63,21 +59,11 @@
"settings": [
{
"function": "RUN",
- "events": [
- "run"
- ],
+ "events": ["run"],
"type": "text.select",
"default_value": "disabled",
- "options": [
- "disabled",
- "once",
- "schedule",
- "always_after_scan"
- ],
- "localized": [
- "name",
- "description"
- ],
+ "options": ["disabled", "once", "schedule", "always_after_scan"],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -112,10 +98,7 @@
"type": "text",
"default_value": "python3 /app/front/plugins/undiscoverables/script.py devices={devices}",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -150,10 +133,7 @@
"type": "integer",
"default_value": 10,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -188,10 +168,7 @@
"type": "readonly",
"default_value": [],
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -231,10 +208,7 @@
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -267,14 +241,9 @@
{
"function": "devices_to_import",
"type": "list",
- "default_value": [
- "dummy_router"
- ],
+ "default_value": ["dummy_router"],
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -305,27 +274,31 @@
]
},
{
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"*/5 * * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code":"en_us",
- "string" : "Schedule"
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "*/5 * * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
},
{
- "language_code":"es_es",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code":"en_us",
- "string" : "Only enabled if you select schedule in the UNDIS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices. "
+ "language_code": "es_es",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the UNDIS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices. "
},
{
- "language_code":"es_es",
- "string" : "Solo está habilitado si selecciona schedule en la configuración UNDIS_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- }]
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración UNDIS_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ }
+ ]
}
],
"database_column_definitions": [
@@ -337,9 +310,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -363,9 +334,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -389,9 +358,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -414,9 +381,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -440,9 +405,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -469,9 +432,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -494,9 +455,7 @@
"type": "device_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -513,4 +472,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/unifi_import/config.json b/front/plugins/unifi_import/config.json
index cca7d88b..b06660b6 100755
--- a/front/plugins/unifi_import/config.json
+++ b/front/plugins/unifi_import/config.json
@@ -1,958 +1,874 @@
{
- "code_name": "unifi_import",
- "show_ui": true,
- "unique_prefix": "UNFIMP",
- "plugin_type": "device_scanner",
- "data_source": "script",
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
- "display_name": [
+ "code_name": "unifi_import",
+ "show_ui": true,
+ "unique_prefix": "UNFIMP",
+ "plugin_type": "device_scanner",
+ "data_source": "script",
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "UniFi import"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Importación UniFi"
+ }
+ ],
+ "enabled": true,
+ "mapped_to_table": "CurrentScan",
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
+ },
+ {
+ "language_code": "es_es",
+ "string": ""
+ }
+ ],
+ "params": [
+ {
+ "name": "username",
+ "type": "setting",
+ "value": "UNFIMP_username"
+ },
+ {
+ "name": "password",
+ "type": "setting",
+ "value": "UNFIMP_password"
+ },
+ {
+ "name": "host",
+ "type": "setting",
+ "value": "UNFIMP_host"
+ },
+ {
+ "name": "sites",
+ "type": "setting",
+ "value": "UNFIMP_sites"
+ },
+ {
+ "name": "port",
+ "type": "setting",
+ "value": "UNFIMP_port"
+ },
+ {
+ "name": "verifyssl",
+ "type": "setting",
+ "value": "UNFIMP_verifyssl"
+ },
+ {
+ "name": "version",
+ "type": "setting",
+ "value": "UNFIMP_version"
+ },
+ {
+ "name": "fullimport",
+ "type": "setting",
+ "value": "UNFIMP_fullimport"
+ }
+ ],
+ "data_filters": [
+ {
+ "compare_column": "Object_PrimaryID",
+ "compare_field_id": "txtMacFilter",
+ "compare_js_template": "'{value}'.toString()",
+ "compare_operator": "==",
+ "compare_use_quotes": true
+ }
+ ],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string": "UniFi import"
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "language_code": "es_es",
- "string": "Importación UniFi"
+ "language_code": "es_es",
+ "string": "N/A"
+ },
+ {
+ "language_code": "de_de",
+ "string": "N/A"
}
- ],
- "enabled": true,
- "mapped_to_table": "CurrentScan",
- "icon": [
+ ],
+ "options": [],
+ "show": false,
+ "type": "label"
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
{
- "language_code": "en_us",
- "string": ""
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "language_code": "es_es",
- "string": ""
+ "language_code": "es_es",
+ "string": "N/A"
+ },
+ {
+ "language_code": "de_de",
+ "string": "N/A"
}
- ],
- "params": [
+ ],
+ "options": [],
+ "show": false,
+ "type": "label"
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "mapped_to_column": "cur_MAC",
+ "name": [
{
- "name": "username",
- "type": "setting",
- "value": "UNFIMP_username"
+ "language_code": "en_us",
+ "string": "MAC address"
},
{
- "name": "password",
- "type": "setting",
- "value": "UNFIMP_password"
+ "language_code": "es_es",
+ "string": "Dirección MAC"
},
{
- "name": "host",
- "type": "setting",
- "value": "UNFIMP_host"
- },
- {
- "name": "sites",
- "type": "setting",
- "value": "UNFIMP_sites"
- },
- {
- "name": "port",
- "type": "setting",
- "value": "UNFIMP_port"
- },
- {
- "name": "verifyssl",
- "type": "setting",
- "value": "UNFIMP_verifyssl"
- },
- {
- "name": "version",
- "type": "setting",
- "value": "UNFIMP_version"
- },
- {
- "name": "fullimport",
- "type": "setting",
- "value": "UNFIMP_fullimport"
+ "language_code": "de_de",
+ "string": "MAC Adresse"
}
- ],
- "data_filters": [
+ ],
+ "options": [],
+ "show": true,
+ "type": "device_mac"
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "mapped_to_column": "cur_IP",
+ "name": [
{
- "compare_column": "Object_PrimaryID",
- "compare_field_id": "txtMacFilter",
- "compare_js_template": "'{value}'.toString()",
- "compare_operator": "==",
- "compare_use_quotes": true
+ "language_code": "en_us",
+ "string": "IP"
+ },
+ {
+ "language_code": "es_es",
+ "string": "IP"
+ },
+ {
+ "language_code": "de_de",
+ "string": "IP"
}
- ],
- "database_column_definitions": [
+ ],
+ "options": [],
+ "show": true,
+ "type": "device_ip"
+ },
+ {
+ "column": "DateTimeCreated",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
{
- "column": "Index",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- },
- {
- "language_code": "de_de",
- "string": "N/A"
- }
- ],
- "options": [],
- "show": false,
- "type": "label"
+ "language_code": "en_us",
+ "string": "Created"
},
{
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "N/A"
- },
- {
- "language_code": "es_es",
- "string": "N/A"
- },
- {
- "language_code": "de_de",
- "string": "N/A"
- }
- ],
- "options": [],
- "show": false,
- "type": "label"
+ "language_code": "es_es",
+ "string": "Creado"
},
{
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "mapped_to_column": "cur_MAC",
- "name": [
- {
- "language_code": "en_us",
- "string": "MAC address"
- },
- {
- "language_code": "es_es",
- "string": "Dirección MAC"
- },
- {
- "language_code": "de_de",
- "string": "MAC Adresse"
- }
- ],
- "options": [],
- "show": true,
- "type": "device_mac"
- },
- {
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "mapped_to_column": "cur_IP",
- "name": [
- {
- "language_code": "en_us",
- "string": "IP"
- },
- {
- "language_code": "es_es",
- "string": "IP"
- },
- {
- "language_code": "de_de",
- "string": "IP"
- }
- ],
- "options": [],
- "show": true,
- "type": "device_ip"
- },
- {
- "column": "DateTimeCreated",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Created"
- },
- {
- "language_code": "es_es",
- "string": "Creado"
- },
- {
- "language_code": "de_de",
- "string": "Erstellt"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "DateTimeChanged",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "mapped_to_column": "cur_DateTime",
- "name": [
- {
- "language_code": "en_us",
- "string": "Changed"
- },
- {
- "language_code": "es_es",
- "string": "Cambiado"
- },
- {
- "language_code": "de_de",
- "string": "Angepasst"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "Watched_Value1",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "mapped_to_column": "cur_Name",
- "name": [
- {
- "language_code": "en_us",
- "string": "Hostname"
- },
- {
- "language_code": "es_es",
- "string": "Nombre de host"
- },
- {
- "language_code": "de_de",
- "string": "Name des Hosts"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "Watched_Value2",
- "mapped_to_column": "cur_Vendor",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Vendor"
- },
- {
- "language_code": "es_es",
- "string": "Proveedor"
- },
- {
- "language_code": "de_de",
- "string": "Hersteller"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Type"
- },
- {
- "language_code": "es_es",
- "string": "Tipo"
- },
- {
- "language_code": "de_de",
- "string": "Typ"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Online?"
- },
- {
- "language_code": "es_es",
- "string": "¿Online?"
- },
- {
- "language_code": "de_de",
- "string": "Online?"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "UserData",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Comments"
- },
- {
- "language_code": "es_es",
- "string": "Comentarios"
- },
- {
- "language_code": "de_de",
- "string": "Kommentar"
- }
- ],
- "options": [],
- "show": false,
- "type": "textbox_save"
- },
- {
- "column": "Dummy",
- "css_classes": "col-sm-2",
- "default_value": "",
- "localized": [
- "name"
- ],
- "mapped_to_column": "cur_ScanMethod",
- "mapped_to_column_data": {
- "value": "UNFIMP"
- },
- "name": [
- {
- "language_code": "en_us",
- "string": "Scan method"
- },
- {
- "language_code": "es_es",
- "string": "Método de escaneo"
- },
- {
- "language_code": "de_de",
- "string": "Scan Methode"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Network"
- },
- {
- "language_code": "es_es",
- "string": "Red"
- },
- {
- "language_code": "de_de",
- "string": "Netzwerk"
- }
- ],
- "options": [],
- "show": true,
- "type": "label"
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "default_value": "",
- "localized": [
- "name"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Status"
- },
- {
- "language_code": "es_es",
- "string": "Estado"
- },
- {
- "language_code": "de_de",
- "string": "Status"
- }
- ],
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "show": true,
- "type": "replace"
+ "language_code": "de_de",
+ "string": "Erstellt"
}
- ],
- "description": [
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "DateTimeChanged",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "mapped_to_column": "cur_DateTime",
+ "name": [
{
- "language_code": "en_us",
- "string": "This plugin is used to import devices from an UNIFI controller."
+ "language_code": "en_us",
+ "string": "Changed"
},
{
- "language_code": "es_es",
- "string": "Este plugin se utiliza para importar dispositivos desde un controlador UNIFI."
+ "language_code": "es_es",
+ "string": "Cambiado"
},
{
- "language_code": "de_de",
- "string": "Dieses Plugin imporiert die Geräte von einem UNIFI Controller."
+ "language_code": "de_de",
+ "string": "Angepasst"
}
- ],
- "settings": [
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "mapped_to_column": "cur_Name",
+ "name": [
{
- "default_value": "disabled",
- "description": [
- {
- "language_code": "en_us",
- "string": "Enable import of devices from a UNIFI controller. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings. ⚠ Use the same schedule if you have multiple Device scanners enabled."
- },
- {
- "language_code": "es_es",
- "string": "Habilite la importación de dispositivos desde un controlador UNIFI. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el análisis se ejecuta solo una vez al iniciar la aplicación (contenedor) o después de actualizar su configuración."
- },
- {
- "language_code": "de_de",
- "string": "Aktiviere den Import von einem UNIFI controller. Bei schedule werden die Richtzeiten von weiter unten verwendet. Bei der Auswahl once der Import wird einmalig beim Start der Applikation (container), oder nach einem Update der Einstellungen durchgeführt."
- }
- ],
- "function": "RUN",
- "events": ["run"],
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "When to run"
- },
- {
- "language_code": "es_es",
- "string": "Cuándo ejecutar"
- },
- {
- "language_code": "de_de",
- "string": "Ausführungszeitpunkt"
- }
- ],
- "options": [
- "disabled",
- "once",
- "schedule",
- "always_after_scan",
- "on_new_device"
- ],
- "type": "text.select"
+ "language_code": "en_us",
+ "string": "Hostname"
},
{
- "default_value": "python3 /app/front/plugins/unifi_import/script.py username={username} password={password} host={host} sites={sites} port={port} verifyssl={verifyssl} version={version} fullimport={fullimport}",
- "description": [
- {
- "language_code": "en_us",
- "string": "Command to run. Not recommended to change."
- },
- {
- "language_code": "es_es",
- "string": "Comando para ejecutar. No se recomienda cambiar."
- },
- {
- "language_code": "de_de",
- "string": "Befehl der ausgeführt wird. Anpassung nicht empfohlen"
- }
- ],
- "function": "CMD",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Command"
- },
- {
- "language_code": "es_es",
- "string": "Comando"
- },
- {
- "language_code": "de_de",
- "string": "Befehl"
- }
- ],
- "options": [],
- "type": "text"
+ "language_code": "es_es",
+ "string": "Nombre de host"
},
{
- "default_value": "",
- "description": [
- {
- "language_code": "en_us",
- "string": "The username used to login into your UNIFI controller. It is recommended to create a read-only user account."
- },
- {
- "language_code": "es_es",
- "string": "El nombre de usuario utilizado para iniciar sesión en su controlador UNIFI. Se recomienda crear una cuenta de usuario de sólo lectura."
- }
- ],
- "function": "username",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Username"
- },
- {
- "language_code": "es_es",
- "string": "Nombre de usuario"
- }
- ],
- "options": [],
- "type": "text"
- },
- {
- "default_value": "",
- "description": [
- {
- "language_code": "en_us",
- "string": "The password used to login into your UNIFI controller."
- },
- {
- "language_code": "es_es",
- "string": "La contraseña utilizada para iniciar sesión en su controlador UNIFI."
- }
- ],
- "function": "password",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Password"
- },
- {
- "language_code": "es_es",
- "string": "Contraseña"
- }
- ],
- "options": [],
- "type": "password"
- },
- {
- "default_value": "192.168.1.1",
- "description": [
- {
- "language_code": "en_us",
- "string": "The host (IP) where the UNIFI controller is runnig. Do NOT include the protocol (e.g. https://)"
- },
- {
- "language_code": "es_es",
- "string": "El host (IP) donde se ejecuta el controlador UNIFI. NO incluya el protocolo (por ejemplo, https://)"
- }
- ],
- "function": "host",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Host"
- },
- {
- "language_code": "es_es",
- "string": "Host"
- }
- ],
- "options": [],
- "type": "text"
- },
- {
- "default_value": "8443",
- "description": [
- {
- "language_code": "en_us",
- "string": "The port number where the UNIFI controller is runnig. Usually it is 8443, for UDM(P) devices its 443."
- },
- {
- "language_code": "es_es",
- "string": "El número de puerto donde se ejecuta el controlador UNIFI. Normalmente es 8443."
- }
- ],
- "function": "port",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Port number"
- },
- {
- "language_code": "es_es",
- "string": "Número de puerto"
- }
- ],
- "options": [],
- "type": "text"
- },
- {
- "default_value": "false",
- "description": [
- {
- "language_code": "en_us",
- "string": "verify SSL certificate validity true|false."
- },
- {
- "language_code": "es_es",
- "string": "verificar la validez del certificado SSL true|false."
- }
- ],
- "function": "verifyssl",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "verify SSL"
- },
- {
- "language_code": "es_es",
- "string": "verificar SSL"
- }
- ],
- "options": ["true", "false"],
- "type": "text.select"
- },
- {
- "function": "version",
- "type": "text",
- "default_value": "v4",
- "options": [],
- "localized": ["name","description"],
- "name": [
- {
- "language_code": "en_us",
- "string": "API version"
- },
- {
- "language_code": "es_es",
- "string": "Versión API"
- }
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The base version of the Unify controller API. Supported values as of time of writing are v4|v5|unifiOS|UDMP-unifiOS."
- },
- {
- "language_code": "es_es",
- "string": "La versión base de la API del controlador Unify. Los valores admitidos al momento de escribir este artículo son v4|v5|unifiOS|UDMP-unifiOS."
- }
- ]
-
- },
- {
- "default_value": [
- "default"
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "The sites you want to connect to. Usually it is only one and the name is default. Check the URL in your UniFi controller UI if unsure."
- },
- {
- "language_code": "es_es",
- "string": "Los sitios a los que desea conectarse. Generalmente es solo uno y el nombre es default. Verifique la URL en la interfaz de usuario de su controlador UniFi si no está seguro."
- }
- ],
- "function": "sites",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "UNIFI sites"
- },
- {
- "language_code": "es_es",
- "string": "Sitios UNIFI"
- }
- ],
- "options": [],
- "type": "list"
- },
- {
- "default_value": "0 2 * * *",
- "description": [
- {
- "language_code": "en_us",
- "string": "Only enabled if you select schedule in the UNFIMP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices. "
- },
- {
- "language_code": "es_es",
- "string": "Solo está habilitado si selecciona schedule en la configuración UNFIMP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
- }
- ],
- "function": "RUN_SCHD",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Schedule"
- },
- {
- "language_code": "es_es",
- "string": "Schedule"
- }
- ],
- "options": [],
- "type": "text"
- },
- {
- "default_value": 5,
- "description": [
- {
- "language_code": "en_us",
- "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code": "es_es",
- "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- },
- {
- "language_code": "de_de",
- "string": "Maximale Laufzeit des Scripts. Nach Ablauf der Zeit wird das Script abgebrochen."
- }
- ],
- "function": "RUN_TIMEOUT",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Run timeout"
- },
- {
- "language_code": "es_es",
- "string": "Tiempo límite de ejecución"
- },
- {
- "language_code": "de_de",
- "string": "Wartezeit"
- }
- ],
- "options": [],
- "type": "integer"
- },
- {
- "default_value": [
- "Watched_Value1",
- "Watched_Value4"
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is Hostname Watched_Value2 is Vendor Watched_Value3 is Type Watched_Value4 is Online
"
- },
- {
- "language_code": "es_es",
- "string": "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es el nombre de host Watched_Value2 es el proveedor Watched_Value3 es el tipo Watched_Value4 es Online
"
- }
- ],
- "function": "WATCH",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Watched"
- },
- {
- "language_code": "es_es",
- "string": "Visto"
- }
- ],
- "options": [
- "Watched_Value1",
- "Watched_Value2",
- "Watched_Value3",
- "Watched_Value4"
- ],
- "type": "text.multiselect"
- },
- {
- "default_value": [
- "new",
- "watched-changed"
- ],
- "description": [
- {
- "language_code": "en_us",
- "string": "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
- },
- {
- "language_code": "es_es",
- "string": "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). watched-changed significa que las columnas Watched_ValueN seleccionadas cambiaron."
- }
- ],
- "function": "REPORT_ON",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Report on"
- },
- {
- "language_code": "es_es",
- "string": "Informar sobre"
- }
- ],
- "options": [
- "new",
- "watched-changed",
- "watched-not-changed",
- "missing-in-last-scan"
- ],
- "type": "text.multiselect"
- },
- {
- "default_value": "disabled",
- "description": [
- {
- "language_code": "en_us",
- "string": "Enable a full import of all known devices by the controller instead of only the online ones. During the scan, all found devices appear online. If you select once the full import is only performed once and the status is set to done afterwards."
- },
- {
- "language_code": "es_es",
- "string": "Translation Needed - Enable a full import of all known devices by the controller instead of only the online ones. During the scan, all found devices appear online. If you select once the full import is only performed once and the status is set to done afterwards."
- },
- {
- "language_code": "de_de",
- "string": "Führe einen kompletten Import aller dem Controller bekannten Geräten durch. Während des Scans werden alle gefundenen Geräte einmalig als Online angezeigt. Bei der Auswahl von once wird der Scan einmalig durchgeführt und der Status anschliessend auf done gesetzt"
- }
- ],
- "function": "fullimport",
- "localized": [
- "name",
- "description"
- ],
- "name": [
- {
- "language_code": "en_us",
- "string": "Perform full import"
- },
- {
- "language_code": "es_es",
- "string": "[ES] Perform full import"
- },
- {
- "language_code": "de_de",
- "string": "Vollständigen Import durchführen"
- }
- ],
- "options": [
- "disabled",
- "once",
- "always"
- ],
- "type": "text.select"
+ "language_code": "de_de",
+ "string": "Name des Hosts"
}
- ]
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "Watched_Value2",
+ "mapped_to_column": "cur_Vendor",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Vendor"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Proveedor"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Hersteller"
+ }
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Type"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tipo"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Typ"
+ }
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Online?"
+ },
+ {
+ "language_code": "es_es",
+ "string": "¿Online?"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Online?"
+ }
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comentarios"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Kommentar"
+ }
+ ],
+ "options": [],
+ "show": false,
+ "type": "textbox_save"
+ },
+ {
+ "column": "Dummy",
+ "css_classes": "col-sm-2",
+ "default_value": "",
+ "localized": ["name"],
+ "mapped_to_column": "cur_ScanMethod",
+ "mapped_to_column_data": {
+ "value": "UNFIMP"
+ },
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Scan method"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Método de escaneo"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Scan Methode"
+ }
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Network"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Red"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Netzwerk"
+ }
+ ],
+ "options": [],
+ "show": true,
+ "type": "label"
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "default_value": "",
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Status"
+ }
+ ],
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "watched-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "new",
+ "replacement": ""
+ },
+ {
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "show": true,
+ "type": "replace"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This plugin is used to import devices from an UNIFI controller."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Este plugin se utiliza para importar dispositivos desde un controlador UNIFI."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Dieses Plugin imporiert die Geräte von einem UNIFI Controller."
+ }
+ ],
+ "settings": [
+ {
+ "default_value": "disabled",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable import of devices from a UNIFI controller. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings. ⚠ Use the same schedule if you have multiple Device scanners enabled."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilite la importación de dispositivos desde un controlador UNIFI. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el análisis se ejecuta solo una vez al iniciar la aplicación (contenedor) o después de actualizar su configuración."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Aktiviere den Import von einem UNIFI controller. Bei schedule werden die Richtzeiten von weiter unten verwendet. Bei der Auswahl once der Import wird einmalig beim Start der Applikation (container), oder nach einem Update der Einstellungen durchgeführt."
+ }
+ ],
+ "function": "RUN",
+ "events": ["run"],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuándo ejecutar"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Ausführungszeitpunkt"
+ }
+ ],
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
+ "type": "text.select"
+ },
+ {
+ "default_value": "python3 /app/front/plugins/unifi_import/script.py username={username} password={password} host={host} sites={sites} port={port} verifyssl={verifyssl} version={version} fullimport={fullimport}",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run. Not recommended to change."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando para ejecutar. No se recomienda cambiar."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Befehl der ausgeführt wird. Anpassung nicht empfohlen"
+ }
+ ],
+ "function": "CMD",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Befehl"
+ }
+ ],
+ "options": [],
+ "type": "text"
+ },
+ {
+ "default_value": "",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The username used to login into your UNIFI controller. It is recommended to create a read-only user account."
+ },
+ {
+ "language_code": "es_es",
+ "string": "El nombre de usuario utilizado para iniciar sesión en su controlador UNIFI. Se recomienda crear una cuenta de usuario de sólo lectura."
+ }
+ ],
+ "function": "username",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Username"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Nombre de usuario"
+ }
+ ],
+ "options": [],
+ "type": "text"
+ },
+ {
+ "default_value": "",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The password used to login into your UNIFI controller."
+ },
+ {
+ "language_code": "es_es",
+ "string": "La contraseña utilizada para iniciar sesión en su controlador UNIFI."
+ }
+ ],
+ "function": "password",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Password"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Contraseña"
+ }
+ ],
+ "options": [],
+ "type": "password"
+ },
+ {
+ "default_value": "192.168.1.1",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The host (IP) where the UNIFI controller is runnig. Do NOT include the protocol (e.g. https://)"
+ },
+ {
+ "language_code": "es_es",
+ "string": "El host (IP) donde se ejecuta el controlador UNIFI. NO incluya el protocolo (por ejemplo, https://)"
+ }
+ ],
+ "function": "host",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Host"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Host"
+ }
+ ],
+ "options": [],
+ "type": "text"
+ },
+ {
+ "default_value": "8443",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The port number where the UNIFI controller is runnig. Usually it is 8443, for UDM(P) devices its 443."
+ },
+ {
+ "language_code": "es_es",
+ "string": "El número de puerto donde se ejecuta el controlador UNIFI. Normalmente es 8443."
+ }
+ ],
+ "function": "port",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Port number"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Número de puerto"
+ }
+ ],
+ "options": [],
+ "type": "text"
+ },
+ {
+ "default_value": "false",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "verify SSL certificate validity true|false."
+ },
+ {
+ "language_code": "es_es",
+ "string": "verificar la validez del certificado SSL true|false."
+ }
+ ],
+ "function": "verifyssl",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "verify SSL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "verificar SSL"
+ }
+ ],
+ "options": ["true", "false"],
+ "type": "text.select"
+ },
+ {
+ "function": "version",
+ "type": "text",
+ "default_value": "v4",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "API version"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Versión API"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The base version of the Unify controller API. Supported values as of time of writing are v4|v5|unifiOS|UDMP-unifiOS."
+ },
+ {
+ "language_code": "es_es",
+ "string": "La versión base de la API del controlador Unify. Los valores admitidos al momento de escribir este artículo son v4|v5|unifiOS|UDMP-unifiOS."
+ }
+ ]
+ },
+ {
+ "default_value": ["default"],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "The sites you want to connect to. Usually it is only one and the name is default. Check the URL in your UniFi controller UI if unsure."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Los sitios a los que desea conectarse. Generalmente es solo uno y el nombre es default. Verifique la URL en la interfaz de usuario de su controlador UniFi si no está seguro."
+ }
+ ],
+ "function": "sites",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "UNIFI sites"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Sitios UNIFI"
+ }
+ ],
+ "options": [],
+ "type": "list"
+ },
+ {
+ "default_value": "0 2 * * *",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the UNFIMP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
It's recommended to use the same schedule interval for all plugins responsible for discovering new devices. "
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo está habilitado si selecciona schedule en la configuración UNFIMP_RUN. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingresar 0 4 * * * ejecutará el escaneo después de las 4 a.m. en el TIMEZONE código> que configuró arriba. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ }
+ ],
+ "function": "RUN_SCHD",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ }
+ ],
+ "options": [],
+ "type": "text"
+ },
+ {
+ "default_value": 5,
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Maximale Laufzeit des Scripts. Nach Ablauf der Zeit wird das Script abgebrochen."
+ }
+ ],
+ "function": "RUN_TIMEOUT",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo límite de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "options": [],
+ "type": "integer"
+ },
+ {
+ "default_value": ["Watched_Value1", "Watched_Value4"],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is Hostname Watched_Value2 is Vendor Watched_Value3 is Type Watched_Value4 is Online
"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación si los valores seleccionados cambian. Utilice CTRL + clic para seleccionar/deseleccionar. Watched_Value1 es el nombre de host Watched_Value2 es el proveedor Watched_Value3 es el tipo Watched_Value4 es Online
"
+ }
+ ],
+ "function": "WATCH",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Watched"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Visto"
+ }
+ ],
+ "options": [
+ "Watched_Value1",
+ "Watched_Value2",
+ "Watched_Value3",
+ "Watched_Value4"
+ ],
+ "type": "text.multiselect"
+ },
+ {
+ "default_value": ["new", "watched-changed"],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). watched-changed significa que las columnas Watched_ValueN seleccionadas cambiaron."
+ }
+ ],
+ "function": "REPORT_ON",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Report on"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Informar sobre"
+ }
+ ],
+ "options": [
+ "new",
+ "watched-changed",
+ "watched-not-changed",
+ "missing-in-last-scan"
+ ],
+ "type": "text.multiselect"
+ },
+ {
+ "default_value": "disabled",
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable a full import of all known devices by the controller instead of only the online ones. During the scan, all found devices appear online. If you select once the full import is only performed once and the status is set to done afterwards."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Translation Needed - Enable a full import of all known devices by the controller instead of only the online ones. During the scan, all found devices appear online. If you select once the full import is only performed once and the status is set to done afterwards."
+ },
+ {
+ "language_code": "de_de",
+ "string": "Führe einen kompletten Import aller dem Controller bekannten Geräten durch. Während des Scans werden alle gefundenen Geräte einmalig als Online angezeigt. Bei der Auswahl von once wird der Scan einmalig durchgeführt und der Status anschliessend auf done gesetzt"
+ }
+ ],
+ "function": "fullimport",
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Perform full import"
+ },
+ {
+ "language_code": "es_es",
+ "string": "[ES] Perform full import"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Vollständigen Import durchführen"
+ }
+ ],
+ "options": ["disabled", "once", "always"],
+ "type": "text.select"
+ }
+ ]
}
diff --git a/front/plugins/vendor_update/config.json b/front/plugins/vendor_update/config.json
index cdd15f72..bd298640 100755
--- a/front/plugins/vendor_update/config.json
+++ b/front/plugins/vendor_update/config.json
@@ -5,11 +5,7 @@
"enabled": true,
"data_source": "script",
"show_ui": true,
- "localized": [
- "display_name",
- "description",
- "icon"
- ],
+ "localized": ["display_name", "description", "icon"],
"display_name": [
{
"language_code": "en_us",
@@ -44,21 +40,11 @@
"settings": [
{
"function": "RUN",
- "events": [
- "run"
- ],
+ "events": ["run"],
"type": "text.select",
"default_value": "schedule",
- "options": [
- "disabled",
- "once",
- "schedule",
- "always_after_scan"
- ],
- "localized": [
- "name",
- "description"
- ],
+ "options": ["disabled", "once", "schedule", "always_after_scan"],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -89,10 +75,7 @@
"type": "readonly",
"default_value": "python3 /app/front/plugins/vendor_update/script.py",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -127,10 +110,7 @@
"type": "text",
"default_value": "0 4 * * 3",
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -165,10 +145,7 @@
"type": "integer",
"default_value": 600,
"options": [],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -201,19 +178,14 @@
{
"function": "WATCH",
"type": "text.multiselect",
- "default_value": [
- "Watched_Value1"
- ],
+ "default_value": ["Watched_Value1"],
"options": [
"Watched_Value1",
"Watched_Value2",
"Watched_Value3",
"Watched_Value4"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -242,20 +214,14 @@
{
"function": "REPORT_ON",
"type": "text.multiselect",
- "default_value": [
- "new",
- "watched-changed"
- ],
+ "default_value": ["new", "watched-changed"],
"options": [
"new",
"watched-changed",
"watched-not-changed",
"missing-in-last-scan"
],
- "localized": [
- "name",
- "description"
- ],
+ "localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
@@ -294,9 +260,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -319,9 +283,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -345,9 +307,7 @@
"type": "device_mac",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -371,9 +331,7 @@
"type": "device_ip",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -396,9 +354,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -422,9 +378,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -451,9 +405,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -477,9 +429,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -499,9 +449,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -524,9 +472,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -545,9 +491,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -566,9 +510,7 @@
"type": "textbox_save",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -591,9 +533,7 @@
"type": "label",
"default_value": "",
"options": [],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -629,9 +569,7 @@
"replacement": ""
}
],
- "localized": [
- "name"
- ],
+ "localized": ["name"],
"name": [
{
"language_code": "en_us",
@@ -648,4 +586,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/front/plugins/website_monitor/config.json b/front/plugins/website_monitor/config.json
index 35117950..fe8b9266 100755
--- a/front/plugins/website_monitor/config.json
+++ b/front/plugins/website_monitor/config.json
@@ -1,525 +1,609 @@
{
- "code_name": "website_monitor",
- "unique_prefix": "WEBMON",
- "plugin_type": "other",
- "enabled": true,
- "data_source": "script",
- "show_ui": true,
- "localized": ["display_name", "description", "icon"],
- "display_name" : [{
- "language_code": "en_us",
- "string" : "Website monitor"
- },
- {
- "language_code": "es_es",
- "string" : "Monitor de sitio web"
- }],
- "icon":[{
- "language_code": "en_us",
- "string" : ""
- },
- {
- "language_code": "es_es",
- "string" : ""
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "This plugin is to monitor status changes of services or websites."
- },
- {
- "language_code": "es_es",
- "string" : "Este complemento es para monitorear los cambios de estado de los servicios o sitios web."
- }],
- "params" : [{
- "name" : "macs",
- "type" : "sql",
- "value" : "SELECT dev_MAC from DEVICES"
+ "code_name": "website_monitor",
+ "unique_prefix": "WEBMON",
+ "plugin_type": "other",
+ "enabled": true,
+ "data_source": "script",
+ "show_ui": true,
+ "localized": ["display_name", "description", "icon"],
+ "display_name": [
+ {
+ "language_code": "en_us",
+ "string": "Website monitor"
},
{
- "name" : "urls",
- "type" : "setting",
- "value" : "WEBMON_urls_to_check"
+ "language_code": "es_es",
+ "string": "Monitor de sitio web"
+ }
+ ],
+ "icon": [
+ {
+ "language_code": "en_us",
+ "string": ""
},
{
- "name" : "internet_ip",
- "type" : "setting",
- "value" : "WEBMON_SQL_internet_ip"
- }],
- "database_column_definitions":
- [
+ "language_code": "es_es",
+ "string": ""
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "This plugin is to monitor status changes of services or websites."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Este complemento es para monitorear los cambios de estado de los servicios o sitios web."
+ }
+ ],
+ "params": [
+ {
+ "name": "macs",
+ "type": "sql",
+ "value": "SELECT dev_MAC from DEVICES"
+ },
+ {
+ "name": "urls",
+ "type": "setting",
+ "value": "WEBMON_urls_to_check"
+ },
+ {
+ "name": "internet_ip",
+ "type": "setting",
+ "value": "WEBMON_SQL_internet_ip"
+ }
+ ],
+ "database_column_definitions": [
+ {
+ "column": "Index",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
{
- "column": "Index",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
+ "language_code": "en_us",
+ "string": "N/A"
},
{
- "column": "Plugin",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
- },
- {
- "column": "Object_PrimaryID",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "url",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Monitored URL"
- },
- {
- "language_code": "es_es",
- "string" : "URL monitoreada"
- }]
- },
- {
- "column": "Object_SecondaryID",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
- },
- {
- "column": "DateTimeCreated",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Created"
- },
- {
- "language_code": "es_es",
- "string" : "Creado"
- }]
- },
- {
- "column": "DateTimeChanged",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Changed"
- },
- {
- "language_code": "es_es",
- "string" : "Cambiado"
- }]
- },
- {
- "column": "Watched_Value1",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "threshold",
- "default_value":"",
- "options": [
- {
- "maximum": 199,
- "hexColor": "#792D86"
- },
- {
- "maximum": 299,
- "hexColor": "#5B862D"
- },
- {
- "maximum": 399,
- "hexColor": "#7D862D"
- },
- {
- "maximum": 499,
- "hexColor": "#BF6440"
- },
- {
- "maximum": 599,
- "hexColor": "#D33115"
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Status code"
- },
- {
- "language_code": "es_es",
- "string" : "Código de estado"
- }]
- },
- {
- "column": "Watched_Value2",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Latency"
- },
- {
- "language_code": "es_es",
- "string" : "Latencia"
- }]
- },
- {
- "column": "Watched_Value3",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
- },
- {
- "column": "Watched_Value4",
- "css_classes": "col-sm-2",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "N/A"
- },
- {
- "language_code": "es_es",
- "string" : "N/A"
- }]
- },
- {
- "column": "UserData",
- "css_classes": "col-sm-2",
- "show": true,
- "type": "textbox_save",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Comments"
- },
- {
- "language_code": "es_es",
- "string" : "Comentarios"
- }]
- },
- {
- "column": "Status",
- "css_classes": "col-sm-1",
- "show": true,
- "type": "replace",
- "default_value":"",
- "options": [
- {
- "equals": "watched-not-changed",
- "replacement": ""
- },
- {
- "equals": "watched-changed",
- "replacement": ""
- },
- {
- "equals": "new",
- "replacement": ""
- },
- {
- "equals": "missing-in-last-scan",
- "replacement": ""
- }
- ],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Status"
- },
- {
- "language_code": "es_es",
- "string" : "Estado"
- }]
- },
- {
- "column": "Extra",
- "css_classes": "col-sm-3",
- "show": false,
- "type": "label",
- "default_value":"",
- "options": [],
- "localized": ["name"],
- "name":[{
- "language_code": "en_us",
- "string" : "Extra"
- },
- {
- "language_code": "es_es",
- "string" : "Extra"
- }]
- }
- ],
- "settings":[
- {
- "function": "RUN",
- "events": ["run"],
- "type": "text.select",
- "default_value":"disabled",
- "options": ["disabled", "once", "schedule", "always_after_scan", "on_new_device"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code": "en_us",
- "string" : "When to run"
- },
- {
- "language_code": "es_es",
- "string" : "Cuando ejecuta"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Enable a regular scan of your services. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) for the time specified in WEBMON_RUN_TIMEOUT setting."
- },
- {
- "language_code": "es_es",
- "string" : "Habilite un escaneo regular de sus servicios. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el escaneo se ejecuta solo una vez al iniciar la aplicación (contenedor) durante el tiempo especificado en WEBMON_RUN_TIMEOUT configuración."
- }]
- },
- {
- "function": "CMD",
- "type": "text",
- "default_value":"python3 /app/front/plugins/website_monitor/script.py urls={urls}",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Command"
- },
- {
- "language_code": "es_es",
- "string" : "Comando"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Command to run"
- },
- {
- "language_code": "es_es",
- "string" : "Comando a ejecutar"
- }]
- },
- {
- "function": "RUN_SCHD",
- "type": "text",
- "default_value":"0 2 * * *",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Schedule"
- },
- {
- "language_code": "es_es",
- "string" : "Schedule"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Only enabled if you select schedule in the WEBMON_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
- },
- {
- "language_code": "es_es",
- "string": "Solo habilitado si selecciona schedule en la configuración WEBMON_RUN. Asegúrese de ingresar el schedule en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingrese 0 4 * * * ejecutará el escaneo después de las 4 am en el TIMEZONE que configuró arriba . Se ejecutará la PRÓXIMA vez que pase el tiempo."
- }]
- },
- {
- "function": "API_SQL",
- "type": "text",
- "default_value":"SELECT * FROM plugin_website_monitor",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "API endpoint (not implemented)"
- },
- {
- "language_code": "es_es",
- "string" : "Punto de conexión de la API (no implementado)"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "You can specify a custom SQL query which will generate a JSON file and then expose it via the plugin_website_monitor.json file endpoint."
- },
- {
- "language_code": "es_es",
- "string" : "Puede especificar una consulta SQL personalizada que generará un archivo JSON y luego lo expondrá a través de plugin_website_monitor.json punto final del archivo."
- }]
- },
- {
- "function": "RUN_TIMEOUT",
- "type": "integer",
- "default_value":5,
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Run timeout"
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo de espera de ejecución"
- },
- {
- "language_code": "de_de",
- "string" : "Wartezeit"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
- },
- {
- "language_code": "es_es",
- "string" : "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
- }]
- },
- {
- "function": "WATCH",
- "type": "text.multiselect",
- "default_value":["Watched_Value1"],
- "options": ["Watched_Value1","Watched_Value2","Watched_Value3","Watched_Value4"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code": "en_us",
- "string" : "Watched"
- },
- {
- "language_code": "es_es",
- "string" : "Visto"
- }],
- "description":[{
- "language_code": "en_us",
- "string" : "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is response status code (e.g.: 200, 404)Watched_Value2 is Latency (not recommended)Watched_Value3 unused Watched_Value4 unused
"
- },
- {
- "language_code": "es_es",
- "string" : "Envíe una notificación si los valores seleccionados cambian. Use CTRL + Click para seleccionar/deseleccionar. Watched_Value1 es un código de estado de respuesta (por ejemplo: 200, 404) Valor_observado2 es Latencia (no recomendado)Valor_observado3 no utilizado Valor_observado4 code> sin usar
"
- }]
- },
- {
- "function": "REPORT_ON",
- "type": "text.multiselect",
- "default_value":["new","watched-changed"],
- "options": ["new","watched-changed","watched-not-changed", "missing-in-last-scan"],
- "localized": ["name", "description"],
- "name" :[{
- "language_code": "en_us",
- "string" : "Report on"
- },
- {
- "language_code": "es_es",
- "string" : "Informar sobre"
- }] ,
- "description":[{
- "language_code": "en_us",
- "string" : "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
- },
- {
- "language_code": "es_es",
- "string" : "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). watched-changed significa que seleccionó Watched_ValueN Las columnas cambiaron."
- }]
- },
- {
- "function": "urls_to_check",
- "type": "list",
- "default_value":["https://google.com", "https://duck.com"],
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Arguments"
- },
- {
- "language_code": "es_es",
- "string" : "Argumentos"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Services to watch. Enter full URL, e.g. https://google.com. The values from this setting will be used to replace the {urls} wildcard in the WEBMON_CMD setting."
- },
- {
- "language_code": "es_es",
- "string" : "Servicios para ver. Ingrese la URL completa, por ejemplo, https://google.com. Los valores de esta configuración se usarán para reemplazar el comodín {urls} en la configuración < code>WEBMON_CMD."
- }]
- },
- {
- "function": "SQL_internet_ip",
- "type": "readonly",
- "default_value":"SELECT dev_LastIP FROM Devices WHERE dev_MAC = 'Internet'",
- "options": [],
- "localized": ["name", "description"],
- "name" : [{
- "language_code": "en_us",
- "string" : "Helper variable"
- },
- {
- "language_code": "es_es",
- "string" : "Variable de ayuda"
- }],
- "description": [{
- "language_code": "en_us",
- "string" : "Unused setting - for demonstration only. Getting the IP address of the Router / Internet."
- },
- {
- "language_code": "es_es",
- "string" : "Configuración no utilizada: solo para demostración. Obtener la dirección IP del enrutador / Internet."
- }]
+ "language_code": "es_es",
+ "string": "N/A"
}
-
- ]
+ ]
+ },
+ {
+ "column": "Plugin",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Object_PrimaryID",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "url",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Monitored URL"
+ },
+ {
+ "language_code": "es_es",
+ "string": "URL monitoreada"
+ }
+ ]
+ },
+ {
+ "column": "Object_SecondaryID",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeCreated",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Created"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Creado"
+ }
+ ]
+ },
+ {
+ "column": "DateTimeChanged",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Changed"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cambiado"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value1",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "threshold",
+ "default_value": "",
+ "options": [
+ {
+ "maximum": 199,
+ "hexColor": "#792D86"
+ },
+ {
+ "maximum": 299,
+ "hexColor": "#5B862D"
+ },
+ {
+ "maximum": 399,
+ "hexColor": "#7D862D"
+ },
+ {
+ "maximum": 499,
+ "hexColor": "#BF6440"
+ },
+ {
+ "maximum": 599,
+ "hexColor": "#D33115"
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status code"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Código de estado"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value2",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Latency"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Latencia"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value3",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "Watched_Value4",
+ "css_classes": "col-sm-2",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "N/A"
+ },
+ {
+ "language_code": "es_es",
+ "string": "N/A"
+ }
+ ]
+ },
+ {
+ "column": "UserData",
+ "css_classes": "col-sm-2",
+ "show": true,
+ "type": "textbox_save",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Comments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comentarios"
+ }
+ ]
+ },
+ {
+ "column": "Status",
+ "css_classes": "col-sm-1",
+ "show": true,
+ "type": "replace",
+ "default_value": "",
+ "options": [
+ {
+ "equals": "watched-not-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "watched-changed",
+ "replacement": ""
+ },
+ {
+ "equals": "new",
+ "replacement": ""
+ },
+ {
+ "equals": "missing-in-last-scan",
+ "replacement": ""
+ }
+ ],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Status"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Estado"
+ }
+ ]
+ },
+ {
+ "column": "Extra",
+ "css_classes": "col-sm-3",
+ "show": false,
+ "type": "label",
+ "default_value": "",
+ "options": [],
+ "localized": ["name"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Extra"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Extra"
+ }
+ ]
+ }
+ ],
+ "settings": [
+ {
+ "function": "RUN",
+ "events": ["run"],
+ "type": "text.select",
+ "default_value": "disabled",
+ "options": [
+ "disabled",
+ "once",
+ "schedule",
+ "always_after_scan",
+ "on_new_device"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "When to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Cuando ejecuta"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Enable a regular scan of your services. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) for the time specified in WEBMON_RUN_TIMEOUT setting."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Habilite un escaneo regular de sus servicios. Si selecciona schedule, se aplican las configuraciones de programación de abajo. Si selecciona once, el escaneo se ejecuta solo una vez al iniciar la aplicación (contenedor) durante el tiempo especificado en WEBMON_RUN_TIMEOUT configuración."
+ }
+ ]
+ },
+ {
+ "function": "CMD",
+ "type": "text",
+ "default_value": "python3 /app/front/plugins/website_monitor/script.py urls={urls}",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Command"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Command to run"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Comando a ejecutar"
+ }
+ ]
+ },
+ {
+ "function": "RUN_SCHD",
+ "type": "text",
+ "default_value": "0 2 * * *",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Schedule"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Schedule"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Only enabled if you select schedule in the WEBMON_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Solo habilitado si selecciona schedule en la configuración WEBMON_RUN. Asegúrese de ingresar el schedule en el formato similar a cron correcto (por ejemplo, valide en crontab.guru). Por ejemplo, ingrese 0 4 * * * ejecutará el escaneo después de las 4 am en el TIMEZONE que configuró arriba . Se ejecutará la PRÓXIMA vez que pase el tiempo."
+ }
+ ]
+ },
+ {
+ "function": "API_SQL",
+ "type": "text",
+ "default_value": "SELECT * FROM plugin_website_monitor",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "API endpoint (not implemented)"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Punto de conexión de la API (no implementado)"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "You can specify a custom SQL query which will generate a JSON file and then expose it via the plugin_website_monitor.json file endpoint."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Puede especificar una consulta SQL personalizada que generará un archivo JSON y luego lo expondrá a través de plugin_website_monitor.json punto final del archivo."
+ }
+ ]
+ },
+ {
+ "function": "RUN_TIMEOUT",
+ "type": "integer",
+ "default_value": 5,
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Run timeout"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo de espera de ejecución"
+ },
+ {
+ "language_code": "de_de",
+ "string": "Wartezeit"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Tiempo máximo en segundos para esperar a que finalice el script. Si se supera este tiempo, el script se cancela."
+ }
+ ]
+ },
+ {
+ "function": "WATCH",
+ "type": "text.multiselect",
+ "default_value": ["Watched_Value1"],
+ "options": [
+ "Watched_Value1",
+ "Watched_Value2",
+ "Watched_Value3",
+ "Watched_Value4"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Watched"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Visto"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification if selected values change. Use CTRL + Click to select/deselect. Watched_Value1 is response status code (e.g.: 200, 404)Watched_Value2 is Latency (not recommended)Watched_Value3 unused Watched_Value4 unused
"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación si los valores seleccionados cambian. Use CTRL + Click para seleccionar/deseleccionar. Watched_Value1 es un código de estado de respuesta (por ejemplo: 200, 404) Valor_observado2 es Latencia (no recomendado)Valor_observado3 no utilizado Valor_observado4 code> sin usar
"
+ }
+ ]
+ },
+ {
+ "function": "REPORT_ON",
+ "type": "text.multiselect",
+ "default_value": ["new", "watched-changed"],
+ "options": [
+ "new",
+ "watched-changed",
+ "watched-not-changed",
+ "missing-in-last-scan"
+ ],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Report on"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Informar sobre"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Envíe una notificación solo en estos estados. new significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). watched-changed significa que seleccionó Watched_ValueN Las columnas cambiaron."
+ }
+ ]
+ },
+ {
+ "function": "urls_to_check",
+ "type": "list",
+ "default_value": ["https://google.com", "https://duck.com"],
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Arguments"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Argumentos"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Services to watch. Enter full URL, e.g. https://google.com. The values from this setting will be used to replace the {urls} wildcard in the WEBMON_CMD setting."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Servicios para ver. Ingrese la URL completa, por ejemplo, https://google.com. Los valores de esta configuración se usarán para reemplazar el comodín {urls} en la configuración < code>WEBMON_CMD."
+ }
+ ]
+ },
+ {
+ "function": "SQL_internet_ip",
+ "type": "readonly",
+ "default_value": "SELECT dev_LastIP FROM Devices WHERE dev_MAC = 'Internet'",
+ "options": [],
+ "localized": ["name", "description"],
+ "name": [
+ {
+ "language_code": "en_us",
+ "string": "Helper variable"
+ },
+ {
+ "language_code": "es_es",
+ "string": "Variable de ayuda"
+ }
+ ],
+ "description": [
+ {
+ "language_code": "en_us",
+ "string": "Unused setting - for demonstration only. Getting the IP address of the Router / Internet."
+ },
+ {
+ "language_code": "es_es",
+ "string": "Configuración no utilizada: solo para demostración. Obtener la dirección IP del enrutador / Internet."
+ }
+ ]
+ }
+ ]
}
diff --git a/front/plugins/workflows/config.json b/front/plugins/workflows/config.json
index f39a43e3..0a795394 100755
--- a/front/plugins/workflows/config.json
+++ b/front/plugins/workflows/config.json
@@ -3,7 +3,7 @@
"unique_prefix": "WORKFLOWS",
"plugin_type": "system",
"enabled": true,
- "data_source": "script",
+ "data_source": "script",
"show_ui": false,
"localized": ["display_name", "description", "icon"],
@@ -23,12 +23,11 @@
{
"language_code": "en_us",
"string": "A plugin to adjust behavior of workflows."
- }
+ }
],
- "params" : [
- ],
+ "params": [],
- "settings": [
+ "settings": [
{
"function": "AppEvents_hist",
"type": "integer",
@@ -50,8 +49,5 @@
}
],
- "database_column_definitions":
- [
-
- ]
+ "database_column_definitions": []
}
diff --git a/front/settings.php b/front/settings.php
index 290a7bbd..0e3cd593 100755
--- a/front/settings.php
+++ b/front/settings.php
@@ -98,7 +98,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
-
+
@@ -148,33 +148,27 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
-
-
-
+
+
+
= lang("Gen_Filter");?>
-
+
-
+
-
-
-
-
-
+
+
-
+
-
-
-
@@ -265,7 +259,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
overviewSections_html += `
-
+
@@ -694,14 +688,22 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
settings: JSON.stringify(settingsArray) },
success: function(data, textStatus) {
- showMessage (getString("settings_saved"), 5000, "modal_grey");
-
- // Remove navigation prompt "Are you sure you want to leave..."
- window.onbeforeunload = null;
+ if(data == "OK")
+ {
+ showMessage (getString("settings_saved"), 5000, "modal_grey");
+ // Remove navigation prompt "Are you sure you want to leave..."
+ window.onbeforeunload = null;
- // Reloads the current page
- setTimeout("clearCache()", 5000);
-
+ // Reloads the current page
+ setTimeout("clearCache()", 5000);
+ } else{
+ // something went wrong
+ // writeNotification(data, 'interrupt')
+ writeNotification("Please screenshot the next popup (or check Monitoring > Notifications), dev console (F12) and submit it as a new issue here: https://github.com/jokob-sk/NetAlertX/issues", 'interrupt')
+ console.log(settingsArray);
+ console.log(JSON.stringify(settingsArray));
+ writeNotification(JSON.stringify(settingsArray), 'interrupt')
+ }
}
});
}
diff --git a/front/userNotifications.php b/front/userNotifications.php
index e0d79998..89b5e819 100755
--- a/front/userNotifications.php
+++ b/front/userNotifications.php
@@ -32,10 +32,10 @@ require 'php/templates/header.php';
Timestamp
- GUID
- Read
Level
Content
+ GUID
+ Read
Actions
@@ -45,13 +45,12 @@ require 'php/templates/header.php';
-
+
+
+
-
-
-
-
+
@@ -97,7 +96,44 @@ require 'php/templates/header.php';
}
return result;
}
+ },
+ {
+ "data": "level",
+ "render": function(data, type, row) {
+
+
+ switch (data) {
+ case "info":
+ color = 'green'
+ break;
+
+ case "alert":
+ color = 'yellow'
+ break;
+
+ case "interrupt":
+ color = 'red'
+ break;
+
+ default:
+ color = 'red'
+ break;
+ }
+
+ return ` ${data} `
+ }
},
+ { "data": "content",
+ "render": function(data, type, row) {
+ if (data.includes("Report:")) {
+ var guid = data.split(":")[1].trim();
+ return `Go to Report`;
+ } else {
+ return data;
+ }
+ }
+ },
+
{ "data": "guid",
"render": function(data, type, row) {
return `