diff --git a/front/deviceDetailsEdit.php b/front/deviceDetailsEdit.php index f353321a..a9bcf4d6 100755 --- a/front/deviceDetailsEdit.php +++ b/front/deviceDetailsEdit.php @@ -70,7 +70,7 @@ // columns to hide hiddenFields = ["NEWDEV_devScan", "NEWDEV_devPresentLastScan" ] // columns to disable - conditional depending if a new dummy device is created - disabledFields = mac == "new" ? ["NEWDEV_devLastNotification", "NEWDEV_devFirstConnection", "NEWDEV_devLastConnection"] : ["NEWDEV_devLastNotification", "NEWDEV_devFirstConnection", "NEWDEV_devLastConnection", "NEWDEV_devMac", "NEWDEV_devLastIP" ]; + disabledFields = mac == "new" ? ["NEWDEV_devLastNotification", "NEWDEV_devFirstConnection", "NEWDEV_devLastConnection"] : ["NEWDEV_devLastNotification", "NEWDEV_devFirstConnection", "NEWDEV_devLastConnection", "NEWDEV_devMac", "NEWDEV_devLastIP", "NEWDEV_devSyncHubNode" ]; // Grouping of fields into categories with associated documentation links const fieldGroups = { @@ -103,7 +103,7 @@ }, // Group for network details DevDetail_MainInfo_Network_Title: { - data: ["devParentMAC", "devParentPort", "devSSID", "devSite"], + data: ["devParentMAC", "devParentPort", "devSSID", "devSite", "devSyncHubNode"], docs: "https://github.com/jokob-sk/NetAlertX/blob/main/docs/NETWORK_TREE.md", iconClass: "fa fa-network-wired", inputGroupClasses: "field-group col-lg-4 col-sm-6 col-xs-12", diff --git a/front/plugins/icmp_scan/config.json b/front/plugins/icmp_scan/config.json index f4215c80..5e445591 100755 --- a/front/plugins/icmp_scan/config.json +++ b/front/plugins/icmp_scan/config.json @@ -5,6 +5,7 @@ "execution_order" : "Layer_4", "enabled": true, "data_source": "script", + "mapped_to_table": "CurrentScan", "show_ui": true, "data_filters": [ { diff --git a/front/plugins/newdev_template/config.json b/front/plugins/newdev_template/config.json index f7299053..d35efc87 100755 --- a/front/plugins/newdev_template/config.json +++ b/front/plugins/newdev_template/config.json @@ -1487,6 +1487,42 @@ } ] }, + { + "function": "devSyncHubNode", + "type": { + "dataType": "string", + "elements": [ + { + "elementType": "input", + "elementOptions": [ + { + "readonly": "true" + } + ], + "transformers": [] + } + ] + }, + "maxLength": 50, + "default_value": "", + "options": [], + "localized": [ + "name", + "description" + ], + "name": [ + { + "language_code": "en_us", + "string": "Sync Node" + } + ], + "description": [ + { + "language_code": "en_us", + "string": "The name of the Sync Node. Uneditable - Auto-populated via the Sync plugin if enabled." + } + ] + }, { "function": "devCustomProps", "type": { diff --git a/front/plugins/sync/README.md b/front/plugins/sync/README.md index 09e58c38..f0d73dbc 100755 --- a/front/plugins/sync/README.md +++ b/front/plugins/sync/README.md @@ -5,11 +5,15 @@ The synchronization plugin is designed to synchronize data across multiple insta 1. **💻 Devices**: Sends an encrypted `table_devices.json` file to synchronize the entire Devices database table. 2. **🔌 Plugin Data**: Sends encrypted `last_result.log` files for individual plugins. -> **Note:** `[n]` indicates a setting specified for the node instance, and `[n,h]` indicates a setting used on both the node and the hub instances. + +> [!TIP] +> This plugin is usually used if you need to monitor inaccessible networks (WAN, VLAN etc.). Read the [Remote networks documentation](/docs/REMOTE_NETWORKS.md) for more details about these scenarios. ### Synchronization Modes -The plugin operates in three different modes based on the configuration settings: +The plugin operates in three different modes based on the configuration settings. + +> **Note:** `[n]` indicates a setting specified for the node instance, and `[n,h]` indicates a setting used on both the node and the hub instances. 1. **Mode 1: PUSH (NODE)** - Sends data from the node to the hub. - This mode is activated if `SYNC_hub_url` is set and either `SYNC_devices` or `SYNC_plugins` is enabled.