Settings overview dashboard + #462 work

This commit is contained in:
Jokob-sk
2023-10-24 20:38:44 +11:00
parent 138a899e34
commit e434a686c6
17 changed files with 349 additions and 287 deletions

View File

@@ -17,29 +17,29 @@
| Required | CurrentScan | Unique Prefix | Data source | Type | Link + Docs |
|----------|-------------|---------------|--------------------|--------------|------------------------------------------------------------------|
| | | APPRISE | Script | 💬 publisher | 📚[_publisher_apprise](/front/plugins/_publisher_apprise/) |
| | Yes | ARPSCAN | Script | 🔍scanner | 📚[arp_scan](/front/plugins/arp_scan/) |
| | Yes | ARPSCAN | Script | 🔍dev scanner| 📚[arp_scan](/front/plugins/arp_scan/) |
| | | CSVBCKP | Script | ⚙ system | 📚[csv_backup](/front/plugins/csv_backup/) |
| Yes* | | DBCLNP | Script | ⚙ system | 📚[db_cleanup](/front/plugins/db_cleanup/) |
| | | DDNS | Script | ⚙ system | 📚[ddns_update](/front/plugins/ddns_update/) |
| | Yes | DHCPLSS | Script | 🔍scanner | 📚[dhcp_leases](/front/plugins/dhcp_leases/) |
| | | DHCPSRVS | Script | 🔍scanner | 📚[dhcp_servers](/front/plugins/dhcp_servers/) |
| | Yes | INTRNT | Script | 🔍scanner | 📚[internet_ip](/front/plugins/internet_ip/) |
| | | INTRSPD | Script | 🔍scanner | 📚[internet_speedtest](/front/plugins/internet_speedtest/) |
| | Yes | DHCPLSS | Script | 🔍dev scanner| 📚[dhcp_leases](/front/plugins/dhcp_leases/) |
| | | DHCPSRVS | Script | ♻ other | 📚[dhcp_servers](/front/plugins/dhcp_servers/) |
| | Yes | INTRNT | Script | 🔍dev scanner| 📚[internet_ip](/front/plugins/internet_ip/) |
| | | INTRSPD | Script | ♻ other | 📚[internet_speedtest](/front/plugins/internet_speedtest/) |
| Yes | | NEWDEV | Template | ⚙ system | 📚[newdev_template](/front/plugins/newdev_template/) |
| | | PHOLUS | Script | 🔍scanner | 📚[pholus_scan](/front/plugins/pholus_scan/) |
| | | PHOLUS | Script | ♻ other | 📚[pholus_scan](/front/plugins/pholus_scan/) |
| | | MQTT | Script | 💬 publisher | 📚[_publisher_mqtt](/front/plugins/_publisher_mqtt/) |
| | | NMAP | Script | 🔍scanner | 📚[nmap_scan](/front/plugins/nmap_scan/) |
| | | NMAP | Script | ♻ other | 📚[nmap_scan](/front/plugins/nmap_scan/) |
| | | NTFY | Script | 💬 publisher | 📚[_publisher_ntfy](/front/plugins/_publisher_ntfy/) |
| | Yes | PIHOLE | External SQLite DB | 🔍scanner | 📚[pihole_scan](/front/plugins/pihole_scan/) |
| | Yes | PIHOLE | External SQLite DB | 🔍dev scanner| 📚[pihole_scan](/front/plugins/pihole_scan/) |
| | | PUSHSAFER | Script | 💬 publisher | 📚[_publisher_pushsafer](/front/plugins/_publisher_pushsafer/) |
| | | SETPWD | Script | ⚙ system | 📚[set_password](/front/plugins/set_password/) |
| | | SMTP | Script | 💬 publisher | 📚[_publisher_email](/front/plugins/_publisher_email/) |
| | | SNMPDSC | Script | 🔍scanner | 📚[snmp_discovery](/front/plugins/snmp_discovery/) |
| | Yes** | UNDIS | Script | 🔍scanner | 📚[undiscoverables](/front/plugins/undiscoverables/) |
| | Yes | UNFIMP | Script | 🔍scanner | 📚[unifi_import](/front/plugins/unifi_import/) |
| | | SNMPDSC | Script | 🔍dev scanner| 📚[snmp_discovery](/front/plugins/snmp_discovery/) |
| | Yes** | UNDIS | Script | ♻ other | 📚[undiscoverables](/front/plugins/undiscoverables/) |
| | Yes | UNFIMP | Script | 🔍dev scanner| 📚[unifi_import](/front/plugins/unifi_import/) |
| | | VNDRPDT | Script | ⚙ system | 📚[vendor_update](/front/plugins/vendor_update/) |
| | | WEBHOOK | Script | 💬 publisher | 📚[_publisher_webhook](/front/plugins/_publisher_webhook/) |
| | | WEBMON | Script | 🔍scanner | 📚[website_monitor](/front/plugins/website_monitor/) |
| | | WEBMON | Script | ♻ other | 📚[website_monitor](/front/plugins/website_monitor/) |
| N/A | | N/A | SQL query | | N/A, but the External SQLite DB plugins work similar |

View File

@@ -1,7 +1,7 @@
{
"code_name": "arp_scan",
"unique_prefix": "ARPSCAN",
"plugin_type": "scanner",
"plugin_type": "device_scanner",
"enabled": true,
"data_source": "script",
"mapped_to_table": "CurrentScan",

View File

@@ -1,7 +1,7 @@
{
"code_name": "dhcp_leases",
"unique_prefix": "DHCPLSS",
"plugin_type": "scanner",
"plugin_type": "device_scanner",
"enabled": true,
"data_source": "script",
"data_filters": [

View File

@@ -1,7 +1,7 @@
{
"code_name": "dhcp_servers",
"unique_prefix": "DHCPSRVS",
"plugin_type": "scanner",
"plugin_type": "other",
"enabled": true,
"data_source": "script",
"show_ui": true,

View File

@@ -1,7 +1,7 @@
{
"code_name": "internet_ip",
"unique_prefix": "INTRNT",
"plugin_type": "scanner",
"plugin_type": "device_scanner",
"enabled": true,
"mapped_to_table": "CurrentScan",
"data_filters": [

View File

@@ -1,7 +1,7 @@
{
"code_name": "internet_speedtest",
"unique_prefix": "INTRSPD",
"plugin_type": "scanner",
"plugin_type": "other",
"enabled": true,
"data_source": "script",
"show_ui": true,

View File

@@ -1,7 +1,7 @@
{
"code_name": "nmap_scan",
"unique_prefix": "NMAP",
"plugin_type": "scanner",
"plugin_type": "other",
"enabled": true,
"data_source": "script",
"data_filters": [

View File

@@ -1,7 +1,7 @@
{
"code_name": "pholus_scan",
"unique_prefix": "PHOLUS",
"plugin_type": "scanner",
"plugin_type": "other",
"enabled": true,
"data_source": "script",
"mapped_to_table": "Pholus_Scan",

View File

@@ -1,7 +1,7 @@
{
"code_name": "pihole_scan",
"unique_prefix": "PIHOLE",
"plugin_type": "scanner",
"plugin_type": "device_scanner",
"enabled": true,
"data_source": "sqlite-db-query",
"mapped_to_table": "CurrentScan",

View File

@@ -1,7 +1,7 @@
{
"code_name": "snmp_discovery",
"unique_prefix": "SNMPDSC",
"plugin_type": "scanner",
"plugin_type": "device_scanner",
"enabled": true,
"data_source": "script",
"data_filters": [

View File

@@ -1,7 +1,7 @@
{
"code_name": "undiscoverables",
"unique_prefix": "UNDIS",
"plugin_type": "scanner",
"plugin_type": "device_scanner",
"enabled": true,
"data_source": "script",
"mapped_to_table": "CurrentScan",

View File

@@ -2,7 +2,77 @@
"code_name": "unifi_import",
"show_ui": true,
"unique_prefix": "UNFIMP",
"plugin_type": "scanner",
"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": "<i class=\"fa-solid fa-upload\"></i>"
},
{
"language_code": "es_es",
"string": "<i class=\"fa-solid fa-upload\"></i>"
}
],
"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",
@@ -11,8 +81,7 @@
"compare_operator": "==",
"compare_use_quotes": true
}
],
"data_source": "script",
],
"database_column_definitions": [
{
"column": "Index",
@@ -403,76 +472,7 @@
"language_code": "de_de",
"string": "Dieses Plugin imporiert die Geräte von einem UNIFI Controller."
}
],
"display_name": [
{
"language_code": "en_us",
"string": "UniFi import"
},
{
"language_code": "es_es",
"string": "Importación UniFi"
}
],
"enabled": true,
"icon": [
{
"language_code": "en_us",
"string": "<i class=\"fa-solid fa-upload\"></i>"
},
{
"language_code": "es_es",
"string": "<i class=\"fa-solid fa-upload\"></i>"
}
],
"localized": [
"display_name",
"description",
"icon"
],
"mapped_to_table": "CurrentScan",
"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"
}
],
],
"settings": [
{
"default_value": "disabled",

View File

@@ -1,7 +1,7 @@
{
"code_name": "website_monitor",
"unique_prefix": "WEBMON",
"plugin_type": "scanner",
"plugin_type": "other",
"enabled": true,
"data_source": "script",
"show_ui": true,