mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-02 08:12:21 -07:00
Compare commits
91 Commits
feat-proxm
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c7ea21bd8 | ||
|
|
8b80a6d59c | ||
|
|
d17256cff6 | ||
|
|
3f80d2e57f | ||
|
|
82dafbb188 | ||
|
|
b18cf98266 | ||
|
|
77369c3ce8 | ||
|
|
49b72acd82 | ||
|
|
cd0a3f6de0 | ||
|
|
adc78e6a2d | ||
|
|
13e91731be | ||
|
|
7ef19b1c12 | ||
|
|
448e17ce45 | ||
|
|
4daead1f8f | ||
|
|
48454f6f2f | ||
|
|
9b71662eda | ||
|
|
7305fd78e3 | ||
|
|
ec3e4c8988 | ||
|
|
54a249f043 | ||
|
|
e30bdc526b | ||
|
|
21f6a53830 | ||
|
|
84eb4d2c92 | ||
|
|
770ec9c447 | ||
|
|
250e533655 | ||
|
|
2bcb77f293 | ||
|
|
30e363354b | ||
|
|
37730301f4 | ||
|
|
8e72386a39 | ||
|
|
7278ee8cfa | ||
|
|
fa22523a0b | ||
|
|
7569923481 | ||
|
|
4a81a4594c | ||
|
|
d7c7bd2cd2 | ||
|
|
d40d1795d2 | ||
|
|
b311113575 | ||
|
|
9df6643610 | ||
|
|
43984132c4 | ||
|
|
0a7ecb5b7c | ||
|
|
c7399215ec | ||
|
|
23e16ae4fa | ||
|
|
dc8b82e997 | ||
|
|
0bb6db155b | ||
|
|
7221b4ba96 | ||
|
|
c4904739b2 | ||
|
|
67cab9d606 | ||
|
|
f75c53fc5d | ||
|
|
bff87f4d61 | ||
|
|
6f7d2c3253 | ||
|
|
0766fb2de6 | ||
|
|
d19cb3d679 | ||
|
|
9b71c210b2 | ||
|
|
c9cb1f3fba | ||
|
|
78a8030c6a | ||
|
|
b5b0bcc766 | ||
|
|
13515603e4 | ||
|
|
518608cffc | ||
|
|
df3ca50c5c | ||
|
|
93fc126da2 | ||
|
|
a60ec9ed3a | ||
|
|
e1d206ca74 | ||
|
|
2771a6e9c2 | ||
|
|
aba1ddd3df | ||
|
|
165c9d3baa | ||
|
|
0b0c88f712 | ||
|
|
d49abd9d02 | ||
|
|
abf024d4d3 | ||
|
|
4eb5947ceb | ||
|
|
1d1a8045a0 | ||
|
|
f8c09d35a7 | ||
|
|
d8d090404e | ||
|
|
5a6de6d832 | ||
|
|
05b63cb730 | ||
|
|
2921614eac | ||
|
|
17d95d802f | ||
|
|
a0048980b8 | ||
|
|
89811cd133 | ||
|
|
b854206599 | ||
|
|
a532c98115 | ||
|
|
da23880eb1 | ||
|
|
c73ce839f2 | ||
|
|
5c0f29b97c | ||
|
|
f1496b483b | ||
|
|
ba26f34191 | ||
|
|
37f8a44cb3 | ||
|
|
76a259d9e5 | ||
|
|
8ab9d9f395 | ||
|
|
c1d53ff93f | ||
|
|
a329c5b541 | ||
|
|
0555105473 | ||
|
|
b0aa5d0e45 | ||
|
|
93df52f70c |
9
.github/skills/code-standards/SKILL.md
vendored
9
.github/skills/code-standards/SKILL.md
vendored
@@ -5,13 +5,14 @@ description: NetAlertX coding standards and conventions. Use this when writing c
|
|||||||
|
|
||||||
# Code Standards
|
# Code Standards
|
||||||
|
|
||||||
- ask me to review before going to each next step (mention n step out of x)
|
- ask me to review before going to each next step (mention n step out of x) (AI only)
|
||||||
- before starting, prepare implementation plan
|
- before starting, prepare implementation plan (AI only)
|
||||||
- ask me to review it and ask any clarifying questions first
|
- ask me to review it and ask any clarifying questions first
|
||||||
- add test creation as last step - follow repo architecture patterns - do not place in the root of /test
|
- add test creation as last step - follow repo architecture patterns - do not place in the root of /test
|
||||||
- code has to be maintainable, no duplicate code
|
- code has to be maintainable, no duplicate code
|
||||||
- follow DRY principle
|
- follow DRY principle - maintainability of code is more important than speed of implementation
|
||||||
- code files should be less than 500 LOC for better maintainability
|
- code files should be less than 500 LOC for better maintainability
|
||||||
|
- DB columns must not contain underscores, use camelCase instead (e.g., deviceInstanceId, not device_instance_id)
|
||||||
|
|
||||||
## File Length
|
## File Length
|
||||||
|
|
||||||
@@ -64,7 +65,7 @@ Use timeNowUTC(as_string=False) for datetime operations (scheduling, comparisons
|
|||||||
|
|
||||||
## String Sanitization
|
## String Sanitization
|
||||||
|
|
||||||
Use sanitizers from `server/helper.py` before storing user input.
|
Use sanitizers from `server/helper.py` before storing user input. MAC addresses are always lowercased and normalized. IP addresses should be validated.
|
||||||
|
|
||||||
## Devcontainer Constraints
|
## Devcontainer Constraints
|
||||||
|
|
||||||
|
|||||||
8
.github/workflows/mkdocs.yml
vendored
8
.github/workflows/mkdocs.yml
vendored
@@ -18,12 +18,14 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install MkDocs
|
- name: Install MkDocs
|
||||||
run: |
|
run: |
|
||||||
pip install mkdocs mkdocs-material
|
pip install \
|
||||||
pip install mkdocs-github-admonitions-plugin
|
mkdocs==1.6.0 \
|
||||||
|
mkdocs-material==9.5.21 \
|
||||||
|
mkdocs-github-admonitions-plugin==0.1.1
|
||||||
|
|
||||||
- name: Build MkDocs
|
- name: Build MkDocs
|
||||||
run: mkdocs build
|
run: mkdocs build
|
||||||
|
|||||||
16
.github/workflows/run-all-tests.yml
vendored
16
.github/workflows/run-all-tests.yml
vendored
@@ -3,6 +3,10 @@ name: 🧪 Manual Test Suite Selector
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
run_all:
|
||||||
|
description: '✅ Run ALL tests (overrides individual selectors)'
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
run_scan:
|
run_scan:
|
||||||
description: '📂 scan/ (Scan, Logic, Locks, IPs)'
|
description: '📂 scan/ (Scan, Logic, Locks, IPs)'
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -23,6 +27,10 @@ on:
|
|||||||
description: '📂 ui/ (Selenium & Dashboard)'
|
description: '📂 ui/ (Selenium & Dashboard)'
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
run_plugins:
|
||||||
|
description: '📂 plugins/ (Sync insert schema-aware logic)'
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
run_root_files:
|
run_root_files:
|
||||||
description: '📄 Root Test Files (WOL, Atomicity, etc.)'
|
description: '📄 Root Test Files (WOL, Atomicity, etc.)'
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -42,12 +50,20 @@ jobs:
|
|||||||
id: builder
|
id: builder
|
||||||
run: |
|
run: |
|
||||||
PATHS=""
|
PATHS=""
|
||||||
|
|
||||||
|
# run_all overrides everything
|
||||||
|
if [ "${{ github.event.inputs.run_all }}" == "true" ]; then
|
||||||
|
echo "final_paths=test/" >> $GITHUB_OUTPUT
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Folder Mapping with 'test/' prefix
|
# Folder Mapping with 'test/' prefix
|
||||||
if [ "${{ github.event.inputs.run_scan }}" == "true" ]; then PATHS="$PATHS test/scan/"; fi
|
if [ "${{ github.event.inputs.run_scan }}" == "true" ]; then PATHS="$PATHS test/scan/"; fi
|
||||||
if [ "${{ github.event.inputs.run_api }}" == "true" ]; then PATHS="$PATHS test/api_endpoints/ test/server/"; fi
|
if [ "${{ github.event.inputs.run_api }}" == "true" ]; then PATHS="$PATHS test/api_endpoints/ test/server/"; fi
|
||||||
if [ "${{ github.event.inputs.run_backend }}" == "true" ]; then PATHS="$PATHS test/backend/ test/db/"; fi
|
if [ "${{ github.event.inputs.run_backend }}" == "true" ]; then PATHS="$PATHS test/backend/ test/db/"; fi
|
||||||
if [ "${{ github.event.inputs.run_docker_env }}" == "true" ]; then PATHS="$PATHS test/docker_tests/"; fi
|
if [ "${{ github.event.inputs.run_docker_env }}" == "true" ]; then PATHS="$PATHS test/docker_tests/"; fi
|
||||||
if [ "${{ github.event.inputs.run_ui }}" == "true" ]; then PATHS="$PATHS test/ui/"; fi
|
if [ "${{ github.event.inputs.run_ui }}" == "true" ]; then PATHS="$PATHS test/ui/"; fi
|
||||||
|
if [ "${{ github.event.inputs.run_plugins }}" == "true" ]; then PATHS="$PATHS test/plugins/"; fi
|
||||||
|
|
||||||
# Root Files Mapping (files sitting directly in /test/)
|
# Root Files Mapping (files sitting directly in /test/)
|
||||||
if [ "${{ github.event.inputs.run_root_files }}" == "true" ]; then
|
if [ "${{ github.event.inputs.run_root_files }}" == "true" ]; then
|
||||||
|
|||||||
@@ -1,23 +1,38 @@
|
|||||||
# 🤝 Contributing to NetAlertX
|
# Contributing to NetAlertX
|
||||||
|
|
||||||
First off, **thank you** for taking the time to contribute! NetAlertX is built and improved with the help of passionate people like you.
|
First off, **thank you** for taking the time to contribute! NetAlertX is built and improved with the help of passionate people like you.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 📂 Issues, Bugs, and Feature Requests
|
## Issues, Bugs, and Feature Requests
|
||||||
|
|
||||||
Please use the [GitHub Issue Tracker](https://github.com/netalertx/NetAlertX/issues) for:
|
Please use the [GitHub Issue Tracker](https://github.com/netalertx/NetAlertX/issues) for:
|
||||||
- Bug reports 🐞
|
- Bug reports
|
||||||
- Feature requests 💡
|
- Feature requests
|
||||||
- Documentation feedback 📖
|
- Documentation feedback
|
||||||
|
|
||||||
Before opening a new issue:
|
Before opening a new issue:
|
||||||
- 🛑 [Check Common Issues & Debug Tips](https://docs.netalertx.com/DEBUG_TIPS#common-issues)
|
- [Check Common Issues & Debug Tips](https://docs.netalertx.com/DEBUG_TIPS#common-issues)
|
||||||
- 🔍 [Search Closed Issues](https://github.com/netalertx/NetAlertX/issues?q=is%3Aissue+is%3Aclosed)
|
- [Search Closed Issues](https://github.com/netalertx/NetAlertX/issues?q=is%3Aissue+is%3Aclosed)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🚀 Submitting Pull Requests (PRs)
|
## Use of AI
|
||||||
|
|
||||||
|
Use of AI-assisted tools is permitted, provided all generated code is reviewed, understood, and verified before submission.
|
||||||
|
|
||||||
|
- All AI-generated code must meet the project's **quality, security, and performance standards**.
|
||||||
|
- Contributors are responsible for **fully understanding** any code they submit, regardless of how it was produced.
|
||||||
|
- Prefer **clarity and maintainability over cleverness or brevity**. Readable code is always favored over dense or obfuscated implementations.
|
||||||
|
- Follow the **DRY (Don't Repeat Yourself) principle** where appropriate, without sacrificing readability.
|
||||||
|
- Do not submit code that you cannot confidently explain or debug.
|
||||||
|
|
||||||
|
All changes must pass the **full test suite** before opening a PR.
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Submitting Pull Requests (PRs)
|
||||||
|
|
||||||
We welcome PRs to improve the code, docs, or UI!
|
We welcome PRs to improve the code, docs, or UI!
|
||||||
|
|
||||||
@@ -28,10 +43,23 @@ Please:
|
|||||||
- Provide a clear title and description for your PR
|
- Provide a clear title and description for your PR
|
||||||
- If relevant, add or update tests and documentation
|
- If relevant, add or update tests and documentation
|
||||||
- For plugins, refer to the [Plugin Dev Guide](https://docs.netalertx.com/PLUGINS_DEV)
|
- For plugins, refer to the [Plugin Dev Guide](https://docs.netalertx.com/PLUGINS_DEV)
|
||||||
|
- Switch the PR to DRAFT mode if still being worked on
|
||||||
|
- Keep PRs **focused and minimal** — avoid unrelated changes in a single PR
|
||||||
|
- PRs that do not meet these guidelines may be closed without review
|
||||||
|
|
||||||
|
## Commit Messages
|
||||||
|
|
||||||
|
- Use clear, descriptive commit messages
|
||||||
|
- Explain *why* a change was made, not just *what* changed
|
||||||
|
- Reference related issues where applicable
|
||||||
|
|
||||||
|
## Code Quality
|
||||||
|
|
||||||
|
- Read and follow the [code standards](/.github/skills/code-standards/SKILL.md)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🌟 First-Time Contributors
|
## First-Time Contributors
|
||||||
|
|
||||||
New to open source? Check out these resources:
|
New to open source? Check out these resources:
|
||||||
- [How to Fork and Submit a PR](https://opensource.guide/how-to-contribute/)
|
- [How to Fork and Submit a PR](https://opensource.guide/how-to-contribute/)
|
||||||
@@ -39,15 +67,15 @@ New to open source? Check out these resources:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🔐 Code of Conduct
|
## Code of Conduct
|
||||||
|
|
||||||
By participating, you agree to follow our [Code of Conduct](./CODE_OF_CONDUCT.md), which ensures a respectful and welcoming community.
|
By participating, you agree to follow our [Code of Conduct](./CODE_OF_CONDUCT.md), which ensures a respectful and welcoming community.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 📬 Contact
|
## Contact
|
||||||
|
|
||||||
If you have more in-depth questions or want to discuss contributing in other ways, feel free to reach out at:
|
If you have more in-depth questions or want to discuss contributing in other ways, feel free to reach out at:
|
||||||
📧 [jokob@duck.com](mailto:jokob@duck.com?subject=NetAlertX%20Contribution)
|
[jokob.sk@gmail.com](mailto:jokob.sk@gmail.com?subject=NetAlertX%20Contribution)
|
||||||
|
|
||||||
We appreciate every contribution, big or small! 💙
|
We appreciate every contribution, big or small! 💙
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ services:
|
|||||||
- CHOWN # Required for root-entrypoint to chown /data + /tmp before dropping privileges
|
- CHOWN # Required for root-entrypoint to chown /data + /tmp before dropping privileges
|
||||||
- SETUID # Required for root-entrypoint to switch to non-root user
|
- SETUID # Required for root-entrypoint to switch to non-root user
|
||||||
- SETGID # Required for root-entrypoint to switch to non-root group
|
- SETGID # Required for root-entrypoint to switch to non-root group
|
||||||
|
sysctls: # ARP flux mitigation for host networking accuracy
|
||||||
|
net.ipv4.conf.all.arp_ignore: 1
|
||||||
|
net.ipv4.conf.all.arp_announce: 2
|
||||||
volumes:
|
volumes:
|
||||||
|
|
||||||
- type: volume # Persistent Docker-managed Named Volume for storage
|
- type: volume # Persistent Docker-managed Named Volume for storage
|
||||||
|
|||||||
@@ -58,12 +58,12 @@ The Events API provides access to **device event logs**, allowing creation, retr
|
|||||||
"success": true,
|
"success": true,
|
||||||
"events": [
|
"events": [
|
||||||
{
|
{
|
||||||
"eve_MAC": "00:11:22:33:44:55",
|
"eveMac": "00:11:22:33:44:55",
|
||||||
"eve_IP": "192.168.1.10",
|
"eveIp": "192.168.1.10",
|
||||||
"eve_DateTime": "2025-08-24T12:00:00Z",
|
"eveDateTime": "2025-08-24T12:00:00Z",
|
||||||
"eve_EventType": "Device Down",
|
"eveEventType": "Device Down",
|
||||||
"eve_AdditionalInfo": "",
|
"eveAdditionalInfo": "",
|
||||||
"eve_PendingAlertEmail": 1
|
"evePendingAlertEmail": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -102,11 +102,11 @@ The Events API provides access to **device event logs**, allowing creation, retr
|
|||||||
"count": 5,
|
"count": 5,
|
||||||
"events": [
|
"events": [
|
||||||
{
|
{
|
||||||
"eve_DateTime": "2025-12-07 12:00:00",
|
"eveDateTime": "2025-12-07 12:00:00",
|
||||||
"eve_EventType": "New Device",
|
"eveEventType": "New Device",
|
||||||
"eve_MAC": "AA:BB:CC:DD:EE:FF",
|
"eveMac": "AA:BB:CC:DD:EE:FF",
|
||||||
"eve_IP": "192.168.1.100",
|
"eveIp": "192.168.1.100",
|
||||||
"eve_AdditionalInfo": "Device detected"
|
"eveAdditionalInfo": "Device detected"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -127,9 +127,9 @@ The Events API provides access to **device event logs**, allowing creation, retr
|
|||||||
"count": 10,
|
"count": 10,
|
||||||
"events": [
|
"events": [
|
||||||
{
|
{
|
||||||
"eve_DateTime": "2025-12-07 12:00:00",
|
"eveDateTime": "2025-12-07 12:00:00",
|
||||||
"eve_EventType": "Device Down",
|
"eveEventType": "Device Down",
|
||||||
"eve_MAC": "AA:BB:CC:DD:EE:FF"
|
"eveMac": "AA:BB:CC:DD:EE:FF"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -159,9 +159,9 @@ The Events API provides access to **device event logs**, allowing creation, retr
|
|||||||
1. Total events in the period
|
1. Total events in the period
|
||||||
2. Total sessions
|
2. Total sessions
|
||||||
3. Missing sessions
|
3. Missing sessions
|
||||||
4. Voided events (`eve_EventType LIKE 'VOIDED%'`)
|
4. Voided events (`eveEventType LIKE 'VOIDED%'`)
|
||||||
5. New device events (`eve_EventType LIKE 'New Device'`)
|
5. New device events (`eveEventType LIKE 'New Device'`)
|
||||||
6. Device down events (`eve_EventType LIKE 'Device Down'`)
|
6. Device down events (`eveEventType LIKE 'Device Down'`)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ Event endpoints are available as **MCP Tools** for AI assistant integration:
|
|||||||
```
|
```
|
||||||
|
|
||||||
* Events are stored in the **Events table** with the following fields:
|
* Events are stored in the **Events table** with the following fields:
|
||||||
`eve_MAC`, `eve_IP`, `eve_DateTime`, `eve_EventType`, `eve_AdditionalInfo`, `eve_PendingAlertEmail`.
|
`eveMac`, `eveIp`, `eveDateTime`, `eveEventType`, `eveAdditionalInfo`, `evePendingAlertEmail`.
|
||||||
|
|
||||||
* Event creation automatically logs activity for debugging.
|
* Event creation automatically logs activity for debugging.
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ GraphQL queries are **read-optimized for speed**. Data may be slightly out of da
|
|||||||
|
|
||||||
* Devices
|
* Devices
|
||||||
* Settings
|
* Settings
|
||||||
|
* Events
|
||||||
|
* PluginsObjects
|
||||||
|
* PluginsHistory
|
||||||
|
* PluginsEvents
|
||||||
* Language Strings (LangStrings)
|
* Language Strings (LangStrings)
|
||||||
|
|
||||||
## Endpoints
|
## Endpoints
|
||||||
@@ -254,11 +258,160 @@ curl 'http://host:GRAPHQL_PORT/graphql' \
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Plugin Tables (Objects, Events, History)
|
||||||
|
|
||||||
|
Three queries expose the plugin database tables with server-side pagination, filtering, and search:
|
||||||
|
|
||||||
|
* `pluginsObjects` — current plugin object state
|
||||||
|
* `pluginsEvents` — unprocessed plugin events
|
||||||
|
* `pluginsHistory` — historical plugin event log
|
||||||
|
|
||||||
|
All three share the same `PluginQueryOptionsInput` and return the same `PluginEntry` shape.
|
||||||
|
|
||||||
|
### Sample Query
|
||||||
|
|
||||||
|
```graphql
|
||||||
|
query GetPluginObjects($options: PluginQueryOptionsInput) {
|
||||||
|
pluginsObjects(options: $options) {
|
||||||
|
dbCount
|
||||||
|
count
|
||||||
|
entries {
|
||||||
|
index plugin objectPrimaryId objectSecondaryId
|
||||||
|
dateTimeCreated dateTimeChanged
|
||||||
|
watchedValue1 watchedValue2 watchedValue3 watchedValue4
|
||||||
|
status extra userData foreignKey
|
||||||
|
syncHubNodeName helpVal1 helpVal2 helpVal3 helpVal4 objectGuid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Query Parameters (`PluginQueryOptionsInput`)
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| ------------ | ----------------- | ------------------------------------------------------ |
|
||||||
|
| `page` | Int | Page number (1-based). |
|
||||||
|
| `limit` | Int | Rows per page (max 1000). |
|
||||||
|
| `sort` | [SortOptionsInput] | Sorting options (`field`, `order`). |
|
||||||
|
| `search` | String | Free-text search across key columns. |
|
||||||
|
| `filters` | [FilterOptionsInput] | Column-value exact-match filters. |
|
||||||
|
| `plugin` | String | Plugin prefix to scope results (e.g. `"ARPSCAN"`). |
|
||||||
|
| `foreignKey` | String | Foreign key filter (e.g. device MAC). |
|
||||||
|
| `dateFrom` | String | Start of date range filter on `dateTimeCreated`. |
|
||||||
|
| `dateTo` | String | End of date range filter on `dateTimeCreated`. |
|
||||||
|
|
||||||
|
### Response Fields
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
| --------- | ------------- | ------------------------------------------------------------- |
|
||||||
|
| `dbCount` | Int | Total rows for the requested plugin (before search/filters). |
|
||||||
|
| `count` | Int | Total rows after all filters (before pagination). |
|
||||||
|
| `entries` | [PluginEntry] | Paginated list of plugin entries. |
|
||||||
|
|
||||||
|
### `curl` Example
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl 'http://host:GRAPHQL_PORT/graphql' \
|
||||||
|
-X POST \
|
||||||
|
-H 'Authorization: Bearer API_TOKEN' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
--data '{
|
||||||
|
"query": "query GetPluginObjects($options: PluginQueryOptionsInput) { pluginsObjects(options: $options) { dbCount count entries { index plugin objectPrimaryId status foreignKey } } }",
|
||||||
|
"variables": {
|
||||||
|
"options": {
|
||||||
|
"plugin": "ARPSCAN",
|
||||||
|
"page": 1,
|
||||||
|
"limit": 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Badge Prefetch (Batched Counts)
|
||||||
|
|
||||||
|
Use GraphQL aliases to fetch counts for all plugins in a single request:
|
||||||
|
|
||||||
|
```graphql
|
||||||
|
query BadgeCounts {
|
||||||
|
ARPSCAN: pluginsObjects(options: {plugin: "ARPSCAN", page: 1, limit: 1}) { dbCount }
|
||||||
|
INTRNT: pluginsObjects(options: {plugin: "INTRNT", page: 1, limit: 1}) { dbCount }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Events Query
|
||||||
|
|
||||||
|
Access the Events table with server-side pagination, filtering, and search.
|
||||||
|
|
||||||
|
### Sample Query
|
||||||
|
|
||||||
|
```graphql
|
||||||
|
query GetEvents($options: EventQueryOptionsInput) {
|
||||||
|
events(options: $options) {
|
||||||
|
dbCount
|
||||||
|
count
|
||||||
|
entries {
|
||||||
|
eveMac
|
||||||
|
eveIp
|
||||||
|
eveDateTime
|
||||||
|
eveEventType
|
||||||
|
eveAdditionalInfo
|
||||||
|
evePendingAlertEmail
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Query Parameters (`EventQueryOptionsInput`)
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| ----------- | ------------------ | ------------------------------------------------ |
|
||||||
|
| `page` | Int | Page number (1-based). |
|
||||||
|
| `limit` | Int | Rows per page (max 1000). |
|
||||||
|
| `sort` | [SortOptionsInput] | Sorting options (`field`, `order`). |
|
||||||
|
| `search` | String | Free-text search across key columns. |
|
||||||
|
| `filters` | [FilterOptionsInput] | Column-value exact-match filters. |
|
||||||
|
| `eveMac` | String | Filter by device MAC address. |
|
||||||
|
| `eventType` | String | Filter by event type (e.g. `"New Device"`). |
|
||||||
|
| `dateFrom` | String | Start of date range filter on `eveDateTime`. |
|
||||||
|
| `dateTo` | String | End of date range filter on `eveDateTime`. |
|
||||||
|
|
||||||
|
### Response Fields
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
| --------- | ------------ | ------------------------------------------------------------ |
|
||||||
|
| `dbCount` | Int | Total rows in the Events table (before any filters). |
|
||||||
|
| `count` | Int | Total rows after all filters (before pagination). |
|
||||||
|
| `entries` | [EventEntry] | Paginated list of event entries. |
|
||||||
|
|
||||||
|
### `curl` Example
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl 'http://host:GRAPHQL_PORT/graphql' \
|
||||||
|
-X POST \
|
||||||
|
-H 'Authorization: Bearer API_TOKEN' \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
--data '{
|
||||||
|
"query": "query GetEvents($options: EventQueryOptionsInput) { events(options: $options) { dbCount count entries { eveMac eveIp eveDateTime eveEventType } } }",
|
||||||
|
"variables": {
|
||||||
|
"options": {
|
||||||
|
"eveMac": "00:11:22:33:44:55",
|
||||||
|
"page": 1,
|
||||||
|
"limit": 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
* Device, settings, and LangStrings queries can be combined in **one request** since GraphQL supports batching.
|
* Device, settings, LangStrings, plugin, and event queries can be combined in **one request** since GraphQL supports batching.
|
||||||
* The `fallback_to_en` feature ensures UI always has a value even if a translation is missing.
|
* The `fallback_to_en` feature ensures UI always has a value even if a translation is missing.
|
||||||
* Data is **cached in memory** per JSON file; changes to language or plugin files will only refresh after the cache detects a file modification.
|
* Data is **cached in memory** per JSON file; changes to language or plugin files will only refresh after the cache detects a file modification.
|
||||||
* The `setOverriddenByEnv` flag helps identify setting values that are locked at container runtime.
|
* The `setOverriddenByEnv` flag helps identify setting values that are locked at container runtime.
|
||||||
|
* Plugin queries scope `dbCount` to the requested `plugin`/`foreignKey` so badge counts reflect per-plugin totals.
|
||||||
* The schema is **read-only** — updates must be performed through other APIs or configuration management. See the other [API](API.md) endpoints for details.
|
* The schema is **read-only** — updates must be performed through other APIs or configuration management. See the other [API](API.md) endpoints for details.
|
||||||
|
|
||||||
|
|||||||
@@ -106,12 +106,12 @@ curl -X DELETE "http://<server_ip>:<GRAPHQL_PORT>/sessions/delete" \
|
|||||||
"success": true,
|
"success": true,
|
||||||
"sessions": [
|
"sessions": [
|
||||||
{
|
{
|
||||||
"ses_MAC": "AA:BB:CC:DD:EE:FF",
|
"sesMac": "AA:BB:CC:DD:EE:FF",
|
||||||
"ses_Connection": "2025-08-01 10:00",
|
"sesDateTimeConnection": "2025-08-01 10:00",
|
||||||
"ses_Disconnection": "2025-08-01 12:00",
|
"sesDateTimeDisconnection": "2025-08-01 12:00",
|
||||||
"ses_Duration": "2h 0m",
|
"sesDuration": "2h 0m",
|
||||||
"ses_IP": "192.168.1.10",
|
"sesIp": "192.168.1.10",
|
||||||
"ses_Info": ""
|
"sesAdditionalInfo": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -194,12 +194,12 @@ curl -X GET "http://<server_ip>:<GRAPHQL_PORT>/sessions/calendar?start=2025-08-0
|
|||||||
"success": true,
|
"success": true,
|
||||||
"sessions": [
|
"sessions": [
|
||||||
{
|
{
|
||||||
"ses_MAC": "AA:BB:CC:DD:EE:FF",
|
"sesMac": "AA:BB:CC:DD:EE:FF",
|
||||||
"ses_Connection": "2025-08-01 10:00",
|
"sesDateTimeConnection": "2025-08-01 10:00",
|
||||||
"ses_Disconnection": "2025-08-01 12:00",
|
"sesDateTimeDisconnection": "2025-08-01 12:00",
|
||||||
"ses_Duration": "2h 0m",
|
"sesDuration": "2h 0m",
|
||||||
"ses_IP": "192.168.1.10",
|
"sesIp": "192.168.1.10",
|
||||||
"ses_Info": ""
|
"sesAdditionalInfo": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -224,15 +224,33 @@ curl -X GET "http://<server_ip>:<GRAPHQL_PORT>/sessions/AA:BB:CC:DD:EE:FF?period
|
|||||||
* `type` → Event type (`all`, `sessions`, `missing`, `voided`, `new`, `down`)
|
* `type` → Event type (`all`, `sessions`, `missing`, `voided`, `new`, `down`)
|
||||||
Default: `all`
|
Default: `all`
|
||||||
* `period` → Period to retrieve events (`7 days`, `1 month`, etc.)
|
* `period` → Period to retrieve events (`7 days`, `1 month`, etc.)
|
||||||
|
* `page` → Page number, 1-based (default: `1`)
|
||||||
|
* `limit` → Rows per page, max 1000 (default: `100`)
|
||||||
|
* `search` → Free-text search filter across all columns
|
||||||
|
* `sortCol` → Column index to sort by, 0-based (default: `0`)
|
||||||
|
* `sortDir` → Sort direction: `asc` or `desc` (default: `desc`)
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
```
|
```
|
||||||
/sessions/session-events?type=all&period=7 days
|
/sessions/session-events?type=all&period=7 days&page=1&limit=25&sortCol=3&sortDir=desc
|
||||||
```
|
```
|
||||||
|
|
||||||
**Response:**
|
**Response:**
|
||||||
Returns a list of events or sessions with formatted connection, disconnection, duration, and IP information.
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"data": [...],
|
||||||
|
"total": 150,
|
||||||
|
"recordsFiltered": 150
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
| ----------------- | ---- | ------------------------------------------------- |
|
||||||
|
| `data` | list | Paginated rows (each row is a list of values). |
|
||||||
|
| `total` | int | Total rows before search filter. |
|
||||||
|
| `recordsFiltered` | int | Total rows after search filter (before paging). |
|
||||||
|
|
||||||
#### `curl` Example
|
#### `curl` Example
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ Input data from the plugin might cause mapping issues in specific edge cases. Lo
|
|||||||
17:31:05 [Scheduler] run for PIHOLE: YES
|
17:31:05 [Scheduler] run for PIHOLE: YES
|
||||||
17:31:05 [Plugin utils] ---------------------------------------------
|
17:31:05 [Plugin utils] ---------------------------------------------
|
||||||
17:31:05 [Plugin utils] display_name: PiHole (Device sync)
|
17:31:05 [Plugin utils] display_name: PiHole (Device sync)
|
||||||
17:31:05 [Plugins] CMD: 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
|
17:31:05 [Plugins] CMD: SELECT n.hwaddr AS objectPrimaryId, {s-quote}null{s-quote} AS objectSecondaryId, datetime() AS DateTime, na.ip AS watchedValue1, n.lastQuery AS watchedValue2, na.name AS watchedValue3, n.macVendor AS watchedValue4, {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
|
||||||
17:31:05 [Plugins] setTyp: subnets
|
17:31:05 [Plugins] setTyp: subnets
|
||||||
17:31:05 [Plugin utils] Flattening the below array
|
17:31:05 [Plugin utils] Flattening the below array
|
||||||
17:31:05 ['192.168.1.0/24 --interface=eth1']
|
17:31:05 ['192.168.1.0/24 --interface=eth1']
|
||||||
@@ -52,7 +52,7 @@ Input data from the plugin might cause mapping issues in specific edge cases. Lo
|
|||||||
17:31:05 [Plugins] Convert to Base64: True
|
17:31:05 [Plugins] Convert to Base64: True
|
||||||
17:31:05 [Plugins] base64 value: b'MTkyLjE2OC4xLjAvMjQgLS1pbnRlcmZhY2U9ZXRoMQ=='
|
17:31:05 [Plugins] base64 value: b'MTkyLjE2OC4xLjAvMjQgLS1pbnRlcmZhY2U9ZXRoMQ=='
|
||||||
17:31:05 [Plugins] Timeout: 10
|
17:31:05 [Plugins] Timeout: 10
|
||||||
17:31:05 [Plugins] Executing: SELECT n.hwaddr AS Object_PrimaryID, 'null' 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, 'null' 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 'ip-%' AND n.hwaddr is not '00:00:00:00:00:00' AND na.ip is not null
|
17:31:05 [Plugins] Executing: SELECT n.hwaddr AS objectPrimaryId, 'null' AS objectSecondaryId, datetime() AS DateTime, na.ip AS watchedValue1, n.lastQuery AS watchedValue2, na.name AS watchedValue3, n.macVendor AS watchedValue4, 'null' 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 'ip-%' AND n.hwaddr is not '00:00:00:00:00:00' AND na.ip is not null
|
||||||
🔻
|
🔻
|
||||||
17:31:05 [Plugins] SUCCESS, received 2 entries
|
17:31:05 [Plugins] SUCCESS, received 2 entries
|
||||||
17:31:05 [Plugins] sqlParam entries: [(0, 'PIHOLE', '01:01:01:01:01:01', 'null', 'null', '2023-12-25 06:31:05', '172.30.0.1', 0, 'aaaa', 'vvvvvvvvv', 'not-processed', 'null', 'null', '01:01:01:01:01:01'), (0, 'PIHOLE', '02:42:ac:1e:00:02', 'null', 'null', '2023-12-25 06:31:05', '172.30.0.2', 0, 'dddd', 'vvvvv2222', 'not-processed', 'null', 'null', '02:42:ac:1e:00:02')]
|
17:31:05 [Plugins] sqlParam entries: [(0, 'PIHOLE', '01:01:01:01:01:01', 'null', 'null', '2023-12-25 06:31:05', '172.30.0.1', 0, 'aaaa', 'vvvvvvvvv', 'not-processed', 'null', 'null', '01:01:01:01:01:01'), (0, 'PIHOLE', '02:42:ac:1e:00:02', 'null', 'null', '2023-12-25 06:31:05', '172.30.0.2', 0, 'dddd', 'vvvvv2222', 'not-processed', 'null', 'null', '02:42:ac:1e:00:02')]
|
||||||
|
|||||||
@@ -30,6 +30,17 @@ services:
|
|||||||
- CHOWN # Required for root-entrypoint to chown /data + /tmp before dropping privileges
|
- CHOWN # Required for root-entrypoint to chown /data + /tmp before dropping privileges
|
||||||
- SETUID # Required for root-entrypoint to switch to non-root user
|
- SETUID # Required for root-entrypoint to switch to non-root user
|
||||||
- SETGID # Required for root-entrypoint to switch to non-root group
|
- SETGID # Required for root-entrypoint to switch to non-root group
|
||||||
|
# --- ARP FLUX MITIGATION ---
|
||||||
|
# Note: When using `network_mode: host`, these sysctls require the
|
||||||
|
# NET_ADMIN capability to be applied to the host namespace.
|
||||||
|
#
|
||||||
|
# If your environment restricts capabilities, or you prefer to configure
|
||||||
|
# them on the Host OS, REMOVE the sysctls block below and apply via:
|
||||||
|
# sudo sysctl -w net.ipv4.conf.all.arp_ignore=1 net.ipv4.conf.all.arp_announce=2
|
||||||
|
# ---------------------------
|
||||||
|
sysctls: # ARP flux mitigation (reduces duplicate/ambiguous ARP behavior on host networking)
|
||||||
|
net.ipv4.conf.all.arp_ignore: 1
|
||||||
|
net.ipv4.conf.all.arp_announce: 2
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume # Persistent Docker-managed named volume for config + database
|
- type: volume # Persistent Docker-managed named volume for config + database
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# Notifications 📧
|
# Notifications 📧
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Want to customize how devices appear in text notifications? See [Notification Text Templates](NOTIFICATION_TEMPLATES.md).
|
||||||
|
|
||||||
There are 4 ways how to influence notifications:
|
There are 4 ways how to influence notifications:
|
||||||
|
|
||||||
1. On the device itself
|
1. On the device itself
|
||||||
@@ -33,7 +36,7 @@ The following device properties influence notifications. You can:
|
|||||||
On almost all plugins there are 2 core settings, `<plugin>_WATCH` and `<plugin>_REPORT_ON`.
|
On almost all plugins there are 2 core settings, `<plugin>_WATCH` and `<plugin>_REPORT_ON`.
|
||||||
|
|
||||||
1. `<plugin>_WATCH` specifies the columns which the app should watch. If watched columns change the device state is considered changed. This changed status is then used to decide to send out notifications based on the `<plugin>_REPORT_ON` setting.
|
1. `<plugin>_WATCH` specifies the columns which the app should watch. If watched columns change the device state is considered changed. This changed status is then used to decide to send out notifications based on the `<plugin>_REPORT_ON` setting.
|
||||||
2. `<plugin>_REPORT_ON` let's you specify on which events the app should notify you. This is related to the `<plugin>_WATCH` setting. So if you select `watched-changed` and in `<plugin>_WATCH` you only select `Watched_Value1`, then a notification is triggered if `Watched_Value1` is changed from the previous value, but no notification is send if `Watched_Value2` changes.
|
2. `<plugin>_REPORT_ON` let's you specify on which events the app should notify you. This is related to the `<plugin>_WATCH` setting. So if you select `watched-changed` and in `<plugin>_WATCH` you only select `watchedValue1`, then a notification is triggered if `watchedValue1` is changed from the previous value, but no notification is send if `watchedValue2` changes.
|
||||||
|
|
||||||
Click the **Read more in the docs.** Link at the top of each plugin to get more details on how the given plugin works.
|
Click the **Read more in the docs.** Link at the top of each plugin to get more details on how the given plugin works.
|
||||||
|
|
||||||
|
|||||||
100
docs/NOTIFICATION_TEMPLATES.md
Normal file
100
docs/NOTIFICATION_TEMPLATES.md
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
# Notification Text Templates
|
||||||
|
|
||||||
|
> Customize how devices and events appear in **text** notifications (email previews, push notifications, Apprise messages).
|
||||||
|
|
||||||
|
By default, NetAlertX formats each device as a vertical list of `Header: Value` pairs. Text templates let you define a **single-line format per device** using `{FieldName}` placeholders — ideal for mobile notification previews and high-volume alerts.
|
||||||
|
|
||||||
|
HTML email tables are **not affected** by these templates.
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
1. Go to **Settings → Notification Processing**.
|
||||||
|
2. Set a template string for the section you want to customize, e.g.:
|
||||||
|
- **Text Template: New Devices** → `{devName} ({eveMac}) - {eveIp}`
|
||||||
|
3. Save. The next notification will use your format.
|
||||||
|
|
||||||
|
**Before (default):**
|
||||||
|
```
|
||||||
|
🆕 New devices
|
||||||
|
---------
|
||||||
|
devName: MyPhone
|
||||||
|
eveMac: aa:bb:cc:dd:ee:ff
|
||||||
|
devVendor: Apple
|
||||||
|
eveIp: 192.168.1.42
|
||||||
|
eveDateTime: 2025-01-15 10:30:00
|
||||||
|
eveEventType: New Device
|
||||||
|
devComments:
|
||||||
|
```
|
||||||
|
|
||||||
|
**After (with template `{devName} ({eveMac}) - {eveIp}`):**
|
||||||
|
```
|
||||||
|
🆕 New devices
|
||||||
|
---------
|
||||||
|
MyPhone (aa:bb:cc:dd:ee:ff) - 192.168.1.42
|
||||||
|
```
|
||||||
|
|
||||||
|
## Settings Reference
|
||||||
|
|
||||||
|
| Setting | Type | Default | Description |
|
||||||
|
|---------|------|---------|-------------|
|
||||||
|
| `NTFPRCS_TEXT_SECTION_HEADERS` | Boolean | `true` | Show/hide section titles (e.g. `🆕 New devices \n---------`). |
|
||||||
|
| `NTFPRCS_TEXT_TEMPLATE_new_devices` | String | *(empty)* | Template for new device rows. |
|
||||||
|
| `NTFPRCS_TEXT_TEMPLATE_down_devices` | String | *(empty)* | Template for down device rows. |
|
||||||
|
| `NTFPRCS_TEXT_TEMPLATE_down_reconnected` | String | *(empty)* | Template for reconnected device rows. |
|
||||||
|
| `NTFPRCS_TEXT_TEMPLATE_events` | String | *(empty)* | Template for event rows. |
|
||||||
|
| `NTFPRCS_TEXT_TEMPLATE_plugins` | String | *(empty)* | Template for plugin event rows. |
|
||||||
|
|
||||||
|
When a template is **empty**, the section uses the original vertical `Header: Value` format (full backward compatibility).
|
||||||
|
|
||||||
|
## Template Syntax
|
||||||
|
|
||||||
|
Use `{FieldName}` to insert a value from the notification data. Field names are **case-sensitive** and must match the column names exactly.
|
||||||
|
|
||||||
|
```
|
||||||
|
{devName} ({eveMac}) connected at {eveDateTime}
|
||||||
|
```
|
||||||
|
|
||||||
|
- No loops, conditionals, or nesting — just simple string replacement.
|
||||||
|
- If a `{FieldName}` does not exist in the data, it is left as-is in the output (safe failure). For example, `{NonExistent}` renders literally as `{NonExistent}`.
|
||||||
|
|
||||||
|
## Variable Availability by Section
|
||||||
|
|
||||||
|
All four device sections (`new_devices`, `down_devices`, `down_reconnected`, `events`) share the same unified field names.
|
||||||
|
|
||||||
|
### `new_devices`, `down_devices`, `down_reconnected`, and `events`
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|----------|-------------|
|
||||||
|
| `{devName}` | Device display name |
|
||||||
|
| `{eveMac}` | Device MAC address |
|
||||||
|
| `{devVendor}` | Device vendor/manufacturer |
|
||||||
|
| `{eveIp}` | Device IP address |
|
||||||
|
| `{eveDateTime}` | Event timestamp |
|
||||||
|
| `{eveEventType}` | Type of event (e.g. `New Device`, `Connected`, `Device Down`) |
|
||||||
|
| `{devComments}` | Device comments |
|
||||||
|
|
||||||
|
**Example (new_devices/events):** `{devName} ({eveMac}) - {eveIp} [{eveEventType}]`
|
||||||
|
|
||||||
|
**Example (down_devices):** `{devName} ({eveMac}) {devVendor} - went down at {eveDateTime}`
|
||||||
|
|
||||||
|
**Example (down_reconnected):** `{devName} ({eveMac}) reconnected at {eveDateTime}`
|
||||||
|
|
||||||
|
### `plugins`
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
|----------|-------------|
|
||||||
|
| `{plugin}` | Plugin code name |
|
||||||
|
| `{objectPrimaryId}` | Primary identifier of the object |
|
||||||
|
| `{objectSecondaryId}` | Secondary identifier |
|
||||||
|
| `{dateTimeChanged}` | Timestamp of change |
|
||||||
|
| `{watchedValue1}` | First watched value |
|
||||||
|
| `{watchedValue2}` | Second watched value |
|
||||||
|
| `{watchedValue3}` | Third watched value |
|
||||||
|
| `{watchedValue4}` | Fourth watched value |
|
||||||
|
| `{status}` | Plugin event status |
|
||||||
|
|
||||||
|
**Example:** `{plugin}: {objectPrimaryId} - {status}`
|
||||||
|
|
||||||
|
## Section Headers Toggle
|
||||||
|
|
||||||
|
Set **Text Section Headers** (`NTFPRCS_TEXT_SECTION_HEADERS`) to `false` to remove the section title separators from text notifications. This is useful when you want compact output without the `🆕 New devices \n---------` banners.
|
||||||
@@ -179,13 +179,13 @@ Quick reference:
|
|||||||
|
|
||||||
| Column | Name | Required | Example |
|
| Column | Name | Required | Example |
|
||||||
|--------|------|----------|---------|
|
|--------|------|----------|---------|
|
||||||
| 0 | Object_PrimaryID | **YES** | `"device_name"` or `"192.168.1.1"` |
|
| 0 | objectPrimaryId | **YES** | `"device_name"` or `"192.168.1.1"` |
|
||||||
| 1 | Object_SecondaryID | no | `"secondary_id"` or `null` |
|
| 1 | objectSecondaryId | no | `"secondary_id"` or `null` |
|
||||||
| 2 | DateTime | **YES** | `"2023-01-02 15:56:30"` |
|
| 2 | DateTime | **YES** | `"2023-01-02 15:56:30"` |
|
||||||
| 3 | Watched_Value1 | **YES** | `"online"` or `"200"` |
|
| 3 | watchedValue1 | **YES** | `"online"` or `"200"` |
|
||||||
| 4 | Watched_Value2 | no | `"ip_address"` or `null` |
|
| 4 | watchedValue2 | no | `"ip_address"` or `null` |
|
||||||
| 5 | Watched_Value3 | no | `null` |
|
| 5 | watchedValue3 | no | `null` |
|
||||||
| 6 | Watched_Value4 | no | `null` |
|
| 6 | watchedValue4 | no | `null` |
|
||||||
| 7 | Extra | no | `"additional data"` or `null` |
|
| 7 | Extra | no | `"additional data"` or `null` |
|
||||||
| 8 | ForeignKey | no | `"aa:bb:cc:dd:ee:ff"` or `null` |
|
| 8 | ForeignKey | no | `"aa:bb:cc:dd:ee:ff"` or `null` |
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ Control which rows display in the UI:
|
|||||||
{
|
{
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -267,7 +267,7 @@ To import plugin data into NetAlertX tables for device discovery or notification
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_mac",
|
"type": "device_mac",
|
||||||
@@ -345,7 +345,7 @@ See [PLUGINS_DEV_SETTINGS.md](PLUGINS_DEV_SETTINGS.md) for complete settings doc
|
|||||||
|
|
||||||
### Plugin Output Format
|
### Plugin Output Format
|
||||||
```
|
```
|
||||||
Object_PrimaryID|Object_SecondaryID|DateTime|Watched_Value1|Watched_Value2|Watched_Value3|Watched_Value4|Extra|ForeignKey
|
objectPrimaryId|objectSecondaryId|DateTime|watchedValue1|watchedValue2|watchedValue3|watchedValue4|Extra|ForeignKey
|
||||||
```
|
```
|
||||||
9 required columns, 4 optional helpers = 13 max
|
9 required columns, 4 optional helpers = 13 max
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ It also describes plugin output expectations and the main plugin categories.
|
|||||||
* `database_column_definitions`
|
* `database_column_definitions`
|
||||||
* `mapped_to_table`
|
* `mapped_to_table`
|
||||||
|
|
||||||
**Example:** `Object_PrimaryID → devMAC`
|
**Example:** `objectPrimaryId → devMAC`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -88,9 +88,9 @@ Output values are pipe-delimited in a fixed order.
|
|||||||
|
|
||||||
#### Identifiers
|
#### Identifiers
|
||||||
|
|
||||||
* `Object_PrimaryID` and `Object_SecondaryID` uniquely identify records (for example, `MAC|IP`).
|
* `objectPrimaryId` and `objectSecondaryId` uniquely identify records (for example, `MAC|IP`).
|
||||||
|
|
||||||
#### Watched Values (`Watched_Value1–4`)
|
#### Watched Values (`watchedValue1–4`)
|
||||||
|
|
||||||
* Used by the core to detect changes between runs.
|
* Used by the core to detect changes between runs.
|
||||||
* Changes in these fields can trigger notifications.
|
* Changes in these fields can trigger notifications.
|
||||||
@@ -114,7 +114,7 @@ Output values are pipe-delimited in a fixed order.
|
|||||||
### 7. Persistence
|
### 7. Persistence
|
||||||
|
|
||||||
* Parsed data is **upserted** into the database.
|
* Parsed data is **upserted** into the database.
|
||||||
* Conflicts are resolved using the combined key: `Object_PrimaryID + Object_SecondaryID`.
|
* Conflicts are resolved using the combined key: `objectPrimaryId + objectSecondaryId`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ Query the NetAlertX SQLite database and display results.
|
|||||||
{
|
{
|
||||||
"function": "CMD",
|
"function": "CMD",
|
||||||
"type": {"dataType": "string", "elements": [{"elementType": "input", "elementOptions": [], "transformers": []}]},
|
"type": {"dataType": "string", "elements": [{"elementType": "input", "elementOptions": [], "transformers": []}]},
|
||||||
"default_value": "SELECT dv.devName as Object_PrimaryID, cast(dv.devLastIP as VARCHAR(100)) || ':' || cast(SUBSTR(ns.Port, 0, INSTR(ns.Port, '/')) as VARCHAR(100)) as Object_SecondaryID, datetime() as DateTime, ns.Service as Watched_Value1, ns.State as Watched_Value2, null as Watched_Value3, null as Watched_Value4, ns.Extra as Extra, dv.devMac as ForeignKey FROM (SELECT * FROM Nmap_Scan) ns LEFT JOIN (SELECT devName, devMac, devLastIP FROM Devices) dv ON ns.MAC = dv.devMac",
|
"default_value": "SELECT dv.devName as objectPrimaryId, cast(dv.devLastIP as VARCHAR(100)) || ':' || cast(SUBSTR(ns.Port, 0, INSTR(ns.Port, '/')) as VARCHAR(100)) as objectSecondaryId, datetime() as DateTime, ns.Service as watchedValue1, ns.State as watchedValue2, null as watchedValue3, null as watchedValue4, ns.Extra as Extra, dv.devMac as ForeignKey FROM (SELECT * FROM Nmap_Scan) ns LEFT JOIN (SELECT devName, devMac, devLastIP FROM Devices) dv ON ns.MAC = dv.devMac",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
"name": [{"language_code": "en_us", "string": "SQL to run"}],
|
"name": [{"language_code": "en_us", "string": "SQL to run"}],
|
||||||
"description": [{"language_code": "en_us", "string": "This SQL query populates the plugin table"}]
|
"description": [{"language_code": "en_us", "string": "This SQL query populates the plugin table"}]
|
||||||
@@ -118,13 +118,13 @@ Query the NetAlertX SQLite database and display results.
|
|||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT
|
SELECT
|
||||||
e.EventValue as Object_PrimaryID,
|
e.EventValue as objectPrimaryId,
|
||||||
d.devName as Object_SecondaryID,
|
d.devName as objectSecondaryId,
|
||||||
e.EventDateTime as DateTime,
|
e.EventDateTime as DateTime,
|
||||||
e.EventType as Watched_Value1,
|
e.EventType as watchedValue1,
|
||||||
d.devLastIP as Watched_Value2,
|
d.devLastIP as watchedValue2,
|
||||||
null as Watched_Value3,
|
null as watchedValue3,
|
||||||
null as Watched_Value4,
|
null as watchedValue4,
|
||||||
e.EventDetails as Extra,
|
e.EventDetails as Extra,
|
||||||
d.devMac as ForeignKey
|
d.devMac as ForeignKey
|
||||||
FROM
|
FROM
|
||||||
@@ -181,7 +181,7 @@ Then set data source and query:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"function": "CMD",
|
"function": "CMD",
|
||||||
"default_value": "SELECT hwaddr as Object_PrimaryID, cast('http://' || (SELECT ip FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1) as VARCHAR(100)) || ':' || cast(SUBSTR((SELECT name FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1), 0, INSTR((SELECT name FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1), '/')) as VARCHAR(100)) as Object_SecondaryID, datetime() as DateTime, macVendor as Watched_Value1, lastQuery as Watched_Value2, (SELECT name FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1) as Watched_Value3, null as Watched_Value4, '' as Extra, hwaddr as ForeignKey FROM EXTERNAL_PIHOLE.network WHERE hwaddr NOT LIKE 'ip-%' AND hwaddr <> '00:00:00:00:00:00'",
|
"default_value": "SELECT hwaddr as objectPrimaryId, cast('http://' || (SELECT ip FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1) as VARCHAR(100)) || ':' || cast(SUBSTR((SELECT name FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1), 0, INSTR((SELECT name FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1), '/')) as VARCHAR(100)) as objectSecondaryId, datetime() as DateTime, macVendor as watchedValue1, lastQuery as watchedValue2, (SELECT name FROM EXTERNAL_PIHOLE.network_addresses WHERE network_id = id ORDER BY lastseen DESC LIMIT 1) as watchedValue3, null as watchedValue4, '' as Extra, hwaddr as ForeignKey FROM EXTERNAL_PIHOLE.network WHERE hwaddr NOT LIKE 'ip-%' AND hwaddr <> '00:00:00:00:00:00'",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
"name": [{"language_code": "en_us", "string": "SQL to run"}]
|
"name": [{"language_code": "en_us", "string": "SQL to run"}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,19 +18,19 @@ Plugins communicate with NetAlertX by writing results to a **pipe-delimited log
|
|||||||
## Column Specification
|
## Column Specification
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> The order of columns is **FIXED** and cannot be changed. All 9 mandatory columns must be provided. If you use any optional column (`HelpVal1`), you must supply all optional columns (`HelpVal1` through `HelpVal4`).
|
> The order of columns is **FIXED** and cannot be changed. All 9 mandatory columns must be provided. If you use any optional column (`helpVal1`), you must supply all optional columns (`helpVal1` through `helpVal4`).
|
||||||
|
|
||||||
### Mandatory Columns (0–8)
|
### Mandatory Columns (0–8)
|
||||||
|
|
||||||
| Order | Column Name | Type | Required | Description |
|
| Order | Column Name | Type | Required | Description |
|
||||||
|-------|-------------|------|----------|-------------|
|
|-------|-------------|------|----------|-------------|
|
||||||
| 0 | `Object_PrimaryID` | string | **YES** | The primary identifier for grouping. Examples: device MAC, hostname, service name, or any unique ID |
|
| 0 | `objectPrimaryId` | string | **YES** | The primary identifier for grouping. Examples: device MAC, hostname, service name, or any unique ID |
|
||||||
| 1 | `Object_SecondaryID` | string | no | Secondary identifier for relationships (e.g., IP address, port, sub-ID). Use `null` if not needed |
|
| 1 | `objectSecondaryId` | string | no | Secondary identifier for relationships (e.g., IP address, port, sub-ID). Use `null` if not needed |
|
||||||
| 2 | `DateTime` | string | **YES** | Timestamp when the event/data was collected. Format: `YYYY-MM-DD HH:MM:SS` |
|
| 2 | `DateTime` | string | **YES** | Timestamp when the event/data was collected. Format: `YYYY-MM-DD HH:MM:SS` |
|
||||||
| 3 | `Watched_Value1` | string | **YES** | Primary watched value. Changes trigger notifications. Examples: IP address, status, version |
|
| 3 | `watchedValue1` | string | **YES** | Primary watched value. Changes trigger notifications. Examples: IP address, status, version |
|
||||||
| 4 | `Watched_Value2` | string | no | Secondary watched value. Use `null` if not needed |
|
| 4 | `watchedValue2` | string | no | Secondary watched value. Use `null` if not needed |
|
||||||
| 5 | `Watched_Value3` | string | no | Tertiary watched value. Use `null` if not needed |
|
| 5 | `watchedValue3` | string | no | Tertiary watched value. Use `null` if not needed |
|
||||||
| 6 | `Watched_Value4` | string | no | Quaternary watched value. Use `null` if not needed |
|
| 6 | `watchedValue4` | string | no | Quaternary watched value. Use `null` if not needed |
|
||||||
| 7 | `Extra` | string | no | Any additional metadata to display in UI and notifications. Use `null` if not needed |
|
| 7 | `Extra` | string | no | Any additional metadata to display in UI and notifications. Use `null` if not needed |
|
||||||
| 8 | `ForeignKey` | string | no | Foreign key linking to parent object (usually MAC address for device relationship). Use `null` if not needed |
|
| 8 | `ForeignKey` | string | no | Foreign key linking to parent object (usually MAC address for device relationship). Use `null` if not needed |
|
||||||
|
|
||||||
@@ -38,10 +38,10 @@ Plugins communicate with NetAlertX by writing results to a **pipe-delimited log
|
|||||||
|
|
||||||
| Order | Column Name | Type | Required | Description |
|
| Order | Column Name | Type | Required | Description |
|
||||||
|-------|-------------|------|----------|-------------|
|
|-------|-------------|------|----------|-------------|
|
||||||
| 9 | `HelpVal1` | string | *conditional* | Helper value 1. If used, all help values must be supplied |
|
| 9 | `helpVal1` | string | *conditional* | Helper value 1. If used, all help values must be supplied |
|
||||||
| 10 | `HelpVal2` | string | *conditional* | Helper value 2. If used, all help values must be supplied |
|
| 10 | `helpVal2` | string | *conditional* | Helper value 2. If used, all help values must be supplied |
|
||||||
| 11 | `HelpVal3` | string | *conditional* | Helper value 3. If used, all help values must be supplied |
|
| 11 | `helpVal3` | string | *conditional* | Helper value 3. If used, all help values must be supplied |
|
||||||
| 12 | `HelpVal4` | string | *conditional* | Helper value 4. If used, all help values must be supplied |
|
| 12 | `helpVal4` | string | *conditional* | Helper value 4. If used, all help values must be supplied |
|
||||||
|
|
||||||
## Usage Guide
|
## Usage Guide
|
||||||
|
|
||||||
@@ -58,15 +58,15 @@ Watched values are fields that the NetAlertX core monitors for **changes between
|
|||||||
|
|
||||||
**How to use them:**
|
**How to use them:**
|
||||||
|
|
||||||
- `Watched_Value1`: Always required; primary indicator of status/state
|
- `watchedValue1`: Always required; primary indicator of status/state
|
||||||
- `Watched_Value2–4`: Optional; use for secondary/tertiary state information
|
- `watchedValue2–4`: Optional; use for secondary/tertiary state information
|
||||||
- Leave unused ones as `null`
|
- Leave unused ones as `null`
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
- Device scanner: `Watched_Value1 = "online"` or `"offline"`
|
- Device scanner: `watchedValue1 = "online"` or `"offline"`
|
||||||
- Port scanner: `Watched_Value1 = "80"` (port number), `Watched_Value2 = "open"` (state)
|
- Port scanner: `watchedValue1 = "80"` (port number), `watchedValue2 = "open"` (state)
|
||||||
- Service monitor: `Watched_Value1 = "200"` (HTTP status), `Watched_Value2 = "0.45"` (response time)
|
- Service monitor: `watchedValue1 = "200"` (HTTP status), `watchedValue2 = "0.45"` (response time)
|
||||||
|
|
||||||
### Foreign Key
|
### Foreign Key
|
||||||
|
|
||||||
@@ -110,14 +110,14 @@ https://google.com|null|2023-01-02 15:56:30|200|0.7898||null|null
|
|||||||
Missing pipe
|
Missing pipe
|
||||||
```
|
```
|
||||||
|
|
||||||
❌ **Missing mandatory Watched_Value1** (column 3):
|
❌ **Missing mandatory watchedValue1** (column 3):
|
||||||
```csv
|
```csv
|
||||||
https://duckduckgo.com|192.168.1.1|2023-01-02 15:56:30|null|0.9898|null|null|Best|null
|
https://duckduckgo.com|192.168.1.1|2023-01-02 15:56:30|null|0.9898|null|null|Best|null
|
||||||
↑
|
↑
|
||||||
Must not be null
|
Must not be null
|
||||||
```
|
```
|
||||||
|
|
||||||
❌ **Incomplete optional columns** (has HelpVal1 but missing HelpVal2–4):
|
❌ **Incomplete optional columns** (has helpVal1 but missing helpVal2–4):
|
||||||
```csv
|
```csv
|
||||||
device|null|2023-01-02 15:56:30|status|null|null|null|null|null|helper1
|
device|null|2023-01-02 15:56:30|status|null|null|null|null|null|helper1
|
||||||
↑
|
↑
|
||||||
@@ -146,19 +146,19 @@ plugin_objects = Plugin_Objects("YOURPREFIX")
|
|||||||
|
|
||||||
# Add objects
|
# Add objects
|
||||||
plugin_objects.add_object(
|
plugin_objects.add_object(
|
||||||
Object_PrimaryID="device_id",
|
objectPrimaryId="device_id",
|
||||||
Object_SecondaryID="192.168.1.1",
|
objectSecondaryId="192.168.1.1",
|
||||||
DateTime="2023-01-02 15:56:30",
|
DateTime="2023-01-02 15:56:30",
|
||||||
Watched_Value1="online",
|
watchedValue1="online",
|
||||||
Watched_Value2=None,
|
watchedValue2=None,
|
||||||
Watched_Value3=None,
|
watchedValue3=None,
|
||||||
Watched_Value4=None,
|
watchedValue4=None,
|
||||||
Extra="Additional data",
|
Extra="Additional data",
|
||||||
ForeignKey="aa:bb:cc:dd:ee:ff",
|
ForeignKey="aa:bb:cc:dd:ee:ff",
|
||||||
HelpVal1=None,
|
helpVal1=None,
|
||||||
HelpVal2=None,
|
helpVal2=None,
|
||||||
HelpVal3=None,
|
helpVal3=None,
|
||||||
HelpVal4=None
|
helpVal4=None
|
||||||
)
|
)
|
||||||
|
|
||||||
# Write results (handles formatting, sanitization, and file creation)
|
# Write results (handles formatting, sanitization, and file creation)
|
||||||
@@ -177,7 +177,7 @@ The library automatically:
|
|||||||
|
|
||||||
The core runs **de-duplication once per hour** on the `Plugins_Objects` table:
|
The core runs **de-duplication once per hour** on the `Plugins_Objects` table:
|
||||||
|
|
||||||
- **Duplicate Detection Key:** Combination of `Object_PrimaryID`, `Object_SecondaryID`, `Plugin` (auto-filled from `unique_prefix`), and `UserData`
|
- **Duplicate Detection Key:** Combination of `objectPrimaryId`, `objectSecondaryId`, `Plugin` (auto-filled from `unique_prefix`), and `UserData`
|
||||||
- **Resolution:** Oldest duplicate entries are removed, newest are kept
|
- **Resolution:** Oldest duplicate entries are removed, newest are kept
|
||||||
- **Use Case:** Prevents duplicate notifications when the same object is detected multiple times
|
- **Use Case:** Prevents duplicate notifications when the same object is detected multiple times
|
||||||
|
|
||||||
@@ -213,9 +213,9 @@ Before writing your plugin's `script.py`, ensure:
|
|||||||
|
|
||||||
- [ ] **9 or 13 columns** in each output line (8 or 12 pipe separators)
|
- [ ] **9 or 13 columns** in each output line (8 or 12 pipe separators)
|
||||||
- [ ] **Mandatory columns filled:**
|
- [ ] **Mandatory columns filled:**
|
||||||
- Column 0: `Object_PrimaryID` (not null)
|
- Column 0: `objectPrimaryId` (not null)
|
||||||
- Column 2: `DateTime` in `YYYY-MM-DD HH:MM:SS` format
|
- Column 2: `DateTime` in `YYYY-MM-DD HH:MM:SS` format
|
||||||
- Column 3: `Watched_Value1` (not null)
|
- Column 3: `watchedValue1` (not null)
|
||||||
- [ ] **Null values as literal string** `null` (not empty string or special chars)
|
- [ ] **Null values as literal string** `null` (not empty string or special chars)
|
||||||
- [ ] **No extra pipes or misaligned columns**
|
- [ ] **No extra pipes or misaligned columns**
|
||||||
- [ ] **If using optional helpers** (columns 9–12), all 4 must be present
|
- [ ] **If using optional helpers** (columns 9–12), all 4 must be present
|
||||||
|
|||||||
@@ -68,13 +68,13 @@ try:
|
|||||||
|
|
||||||
# Add an object to results
|
# Add an object to results
|
||||||
plugin_objects.add_object(
|
plugin_objects.add_object(
|
||||||
Object_PrimaryID="example_id",
|
objectPrimaryId="example_id",
|
||||||
Object_SecondaryID=None,
|
objectSecondaryId=None,
|
||||||
DateTime="2023-01-02 15:56:30",
|
DateTime="2023-01-02 15:56:30",
|
||||||
Watched_Value1="value1",
|
watchedValue1="value1",
|
||||||
Watched_Value2=None,
|
watchedValue2=None,
|
||||||
Watched_Value3=None,
|
watchedValue3=None,
|
||||||
Watched_Value4=None,
|
watchedValue4=None,
|
||||||
Extra="additional_data",
|
Extra="additional_data",
|
||||||
ForeignKey=None
|
ForeignKey=None
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Each column definition specifies:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "devMac",
|
"mapped_to_column": "devMac",
|
||||||
"mapped_to_column_data": null,
|
"mapped_to_column_data": null,
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
@@ -39,7 +39,7 @@ Each column definition specifies:
|
|||||||
|
|
||||||
| Property | Type | Required | Description |
|
| Property | Type | Required | Description |
|
||||||
|----------|------|----------|-------------|
|
|----------|------|----------|-------------|
|
||||||
| `column` | string | **YES** | Source column name from data contract (e.g., `Object_PrimaryID`, `Watched_Value1`) |
|
| `column` | string | **YES** | Source column name from data contract (e.g., `objectPrimaryId`, `watchedValue1`) |
|
||||||
| `mapped_to_column` | string | no | Target database column if mapping to a table like `CurrentScan` |
|
| `mapped_to_column` | string | no | Target database column if mapping to a table like `CurrentScan` |
|
||||||
| `mapped_to_column_data` | object | no | Static value to map instead of using column data |
|
| `mapped_to_column_data` | object | no | Static value to map instead of using column data |
|
||||||
| `css_classes` | string | no | Bootstrap CSS classes for width/spacing (e.g., `"col-sm-2"`, `"col-sm-6"`) |
|
| `css_classes` | string | no | Bootstrap CSS classes for width/spacing (e.g., `"col-sm-2"`, `"col-sm-6"`) |
|
||||||
@@ -64,7 +64,7 @@ Plain text display (read-only).
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
@@ -99,7 +99,7 @@ Resolves an IP address to a MAC address and creates a device link.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_ip",
|
"type": "device_ip",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
@@ -117,7 +117,7 @@ Creates a device link with the target device's name as the link label.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
@@ -135,7 +135,7 @@ Renders as a clickable HTTP/HTTPS link.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
@@ -153,7 +153,7 @@ Creates two links (HTTP and HTTPS) as lock icons for the given IP/hostname.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "url_http_https",
|
"type": "url_http_https",
|
||||||
"localized": ["name"],
|
"localized": ["name"],
|
||||||
@@ -207,7 +207,7 @@ Color-codes values based on ranges. Useful for status codes, latency, capacity p
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "threshold",
|
"type": "threshold",
|
||||||
"options": [
|
"options": [
|
||||||
@@ -252,7 +252,7 @@ Replaces specific values with display strings or HTML.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
"options": [
|
"options": [
|
||||||
@@ -286,7 +286,7 @@ Applies a regular expression to extract/transform values.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "regex",
|
"type": "regex",
|
||||||
"options": [
|
"options": [
|
||||||
@@ -310,7 +310,7 @@ Evaluates JavaScript code with access to the column value (use `${value}` or `{v
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
@@ -322,7 +322,7 @@ Evaluates JavaScript code with access to the column value (use `${value}` or `{v
|
|||||||
**Example with custom formatting:**
|
**Example with custom formatting:**
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"options": [
|
"options": [
|
||||||
@@ -347,7 +347,7 @@ You can chain multiple transformations with dot notation:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "regex.url_http_https",
|
"type": "regex.url_http_https",
|
||||||
"options": [
|
"options": [
|
||||||
@@ -376,7 +376,7 @@ Use SQL query results to populate dropdown options:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": ["{value}"],
|
"options": ["{value}"],
|
||||||
@@ -405,7 +405,7 @@ Use plugin settings to populate options:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": ["{value}"],
|
"options": ["{value}"],
|
||||||
@@ -439,7 +439,7 @@ To import plugin data into the device scan pipeline (for notifications, heuristi
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_mac",
|
"type": "device_mac",
|
||||||
@@ -447,7 +447,7 @@ To import plugin data into the device scan pipeline (for notifications, heuristi
|
|||||||
"name": [{"language_code": "en_us", "string": "MAC Address"}]
|
"name": [{"language_code": "en_us", "string": "MAC Address"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_ip",
|
"type": "device_ip",
|
||||||
@@ -501,7 +501,7 @@ Control which rows are displayed based on filter conditions. Filters are applied
|
|||||||
{
|
{
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -545,7 +545,7 @@ When viewing a device detail page, the `txtMacFilter` field is populated with th
|
|||||||
{
|
{
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -555,7 +555,7 @@ When viewing a device detail page, the `txtMacFilter` field is populated with th
|
|||||||
"name": [{"language_code": "en_us", "string": "MAC Address"}]
|
"name": [{"language_code": "en_us", "string": "MAC Address"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -574,7 +574,7 @@ When viewing a device detail page, the `txtMacFilter` field is populated with th
|
|||||||
"name": [{"language_code": "en_us", "string": "Last Seen"}]
|
"name": [{"language_code": "en_us", "string": "Last Seen"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "threshold",
|
"type": "threshold",
|
||||||
@@ -589,7 +589,7 @@ When viewing a device detail page, the `txtMacFilter` field is populated with th
|
|||||||
"name": [{"language_code": "en_us", "string": "HTTP Status"}]
|
"name": [{"language_code": "en_us", "string": "HTTP Status"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
71
docs/docker-troubleshooting/arp-flux-sysctls.md
Normal file
71
docs/docker-troubleshooting/arp-flux-sysctls.md
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# ARP Flux Sysctls Not Set
|
||||||
|
|
||||||
|
## Issue Description
|
||||||
|
|
||||||
|
NetAlertX detected that ARP flux protection sysctls are not set as expected:
|
||||||
|
|
||||||
|
- `net.ipv4.conf.all.arp_ignore=1`
|
||||||
|
- `net.ipv4.conf.all.arp_announce=2`
|
||||||
|
|
||||||
|
## Security Ramifications
|
||||||
|
|
||||||
|
This is not a direct container breakout risk, but detection quality can degrade:
|
||||||
|
|
||||||
|
- Incorrect IP/MAC associations
|
||||||
|
- Device state flapping
|
||||||
|
- Unreliable topology or presence data
|
||||||
|
|
||||||
|
## Why You're Seeing This Issue
|
||||||
|
|
||||||
|
The running environment does not provide the expected kernel sysctl values. This is common in Docker setups where sysctls were not explicitly configured.
|
||||||
|
|
||||||
|
## How to Correct the Issue
|
||||||
|
|
||||||
|
### Option A: Via Docker (Standard Bridge Networking or `network_mode: host` with `NET_ADMIN`)
|
||||||
|
|
||||||
|
If you are using standard bridged networking, or `network_mode: host` and the container is granted the `NET_ADMIN` capability (as is the default recommendation), set these sysctls at container runtime.
|
||||||
|
|
||||||
|
- In `docker-compose.yml` (preferred):
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
netalertx:
|
||||||
|
sysctls:
|
||||||
|
net.ipv4.conf.all.arp_ignore: 1
|
||||||
|
net.ipv4.conf.all.arp_announce: 2
|
||||||
|
```
|
||||||
|
|
||||||
|
- For `docker run`:
|
||||||
|
```bash
|
||||||
|
docker run \
|
||||||
|
--sysctl net.ipv4.conf.all.arp_ignore=1 \
|
||||||
|
--sysctl net.ipv4.conf.all.arp_announce=2 \
|
||||||
|
ghcr.io/netalertx/netalertx:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Note:** Setting `net.ipv4.conf.all.arp_ignore` and `net.ipv4.conf.all.arp_announce` may fail with "operation not permitted" unless the container is run with elevated privileges. To resolve this, you can:
|
||||||
|
> - Use `--privileged` with `docker run`.
|
||||||
|
> - Use the more restrictive `--cap-add=NET_ADMIN` (or `cap_add: [NET_ADMIN]` in `docker-compose` service definitions) to allow the sysctls to be applied at runtime.
|
||||||
|
|
||||||
|
### Option B: Via Host OS (Fallback for `network_mode: host`)
|
||||||
|
|
||||||
|
If you are running the container with `network_mode: host` and cannot grant the `NET_ADMIN` capability, or if your container runtime environment explicitly blocks sysctl overrides, applying these settings via the container configuration will fail. Attempting to do so without sufficient privileges typically results in an OCI runtime error: `sysctl "net.ipv4.conf.all.arp_announce" not allowed in host network namespace`.
|
||||||
|
|
||||||
|
In this scenario, you must apply the settings directly on your host operating system:
|
||||||
|
|
||||||
|
1. **Remove** the `sysctls` section from your `docker-compose.yml`.
|
||||||
|
2. **Apply** on the host immediately:
|
||||||
|
```bash
|
||||||
|
sudo sysctl -w net.ipv4.conf.all.arp_ignore=1
|
||||||
|
sudo sysctl -w net.ipv4.conf.all.arp_announce=2
|
||||||
|
```
|
||||||
|
3. **Make persistent** by adding the following lines to `/etc/sysctl.conf` on the host:
|
||||||
|
```text
|
||||||
|
net.ipv4.conf.all.arp_ignore=1
|
||||||
|
net.ipv4.conf.all.arp_announce=2
|
||||||
|
```
|
||||||
|
|
||||||
|
## Additional Resources
|
||||||
|
|
||||||
|
For broader Docker Compose guidance, see:
|
||||||
|
|
||||||
|
- [DOCKER_COMPOSE.md](https://docs.netalertx.com/DOCKER_COMPOSE)
|
||||||
@@ -61,16 +61,16 @@ $(document).ready(function () {
|
|||||||
appEvents(options: $options) {
|
appEvents(options: $options) {
|
||||||
count
|
count
|
||||||
appEvents {
|
appEvents {
|
||||||
DateTimeCreated
|
dateTimeCreated
|
||||||
AppEventProcessed
|
appEventProcessed
|
||||||
AppEventType
|
appEventType
|
||||||
ObjectType
|
objectType
|
||||||
ObjectPrimaryID
|
objectPrimaryId
|
||||||
ObjectSecondaryID
|
objectSecondaryId
|
||||||
ObjectStatus
|
objectStatus
|
||||||
ObjectPlugin
|
objectPlugin
|
||||||
ObjectGUID
|
objectGuid
|
||||||
GUID
|
guid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -128,16 +128,16 @@ $(document).ready(function () {
|
|||||||
},
|
},
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{ data: 'DateTimeCreated', title: getString('AppEvents_DateTimeCreated') },
|
{ data: 'dateTimeCreated', title: getString('AppEvents_DateTimeCreated') },
|
||||||
{ data: 'AppEventProcessed', title: getString('AppEvents_AppEventProcessed') },
|
{ data: 'appEventProcessed', title: getString('AppEvents_AppEventProcessed') },
|
||||||
{ data: 'AppEventType', title: getString('AppEvents_Type') },
|
{ data: 'appEventType', title: getString('AppEvents_Type') },
|
||||||
{ data: 'ObjectType', title: getString('AppEvents_ObjectType') },
|
{ data: 'objectType', title: getString('AppEvents_ObjectType') },
|
||||||
{ data: 'ObjectPrimaryID', title: getString('AppEvents_ObjectPrimaryID') },
|
{ data: 'objectPrimaryId', title: getString('AppEvents_ObjectPrimaryID') },
|
||||||
{ data: 'ObjectSecondaryID', title: getString('AppEvents_ObjectSecondaryID') },
|
{ data: 'objectSecondaryId', title: getString('AppEvents_ObjectSecondaryID') },
|
||||||
{ data: 'ObjectStatus', title: getString('AppEvents_ObjectStatus') },
|
{ data: 'objectStatus', title: getString('AppEvents_ObjectStatus') },
|
||||||
{ data: 'ObjectPlugin', title: getString('AppEvents_Plugin') },
|
{ data: 'objectPlugin', title: getString('AppEvents_Plugin') },
|
||||||
{ data: 'ObjectGUID', title: 'Object GUID' },
|
{ data: 'objectGuid', title: 'Object GUID' },
|
||||||
{ data: 'GUID', title: 'Event GUID' }
|
{ data: 'guid', title: 'Event GUID' }
|
||||||
],
|
],
|
||||||
|
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ function updateChevrons(currentMac) {
|
|||||||
|
|
||||||
showSpinner();
|
showSpinner();
|
||||||
|
|
||||||
cacheDevices().then(() => {
|
cacheDevices(true).then(() => {
|
||||||
hideSpinner();
|
hideSpinner();
|
||||||
|
|
||||||
// Retry after re-caching
|
// Retry after re-caching
|
||||||
@@ -507,7 +507,7 @@ function updateDevicePageName(mac) {
|
|||||||
if (mac != 'new' && (name === null|| owner === null)) {
|
if (mac != 'new' && (name === null|| owner === null)) {
|
||||||
console.warn("Device not found in cache, retrying after re-cache:", mac);
|
console.warn("Device not found in cache, retrying after re-cache:", mac);
|
||||||
showSpinner();
|
showSpinner();
|
||||||
cacheDevices().then(() => {
|
cacheDevices(true).then(() => {
|
||||||
hideSpinner();
|
hideSpinner();
|
||||||
// Retry after successful cache
|
// Retry after successful cache
|
||||||
updateDevicePageName(mac);
|
updateDevicePageName(mac);
|
||||||
|
|||||||
@@ -32,49 +32,62 @@
|
|||||||
|
|
||||||
function loadEventsData() {
|
function loadEventsData() {
|
||||||
const hideConnections = $('#chkHideConnectionEvents')[0].checked;
|
const hideConnections = $('#chkHideConnectionEvents')[0].checked;
|
||||||
const hideConnectionsStr = hideConnections ? 'true' : 'false';
|
|
||||||
|
|
||||||
let period = $("#period").val();
|
let period = $("#period").val();
|
||||||
let { start, end } = getPeriodStartEnd(period);
|
let { start, end } = getPeriodStartEnd(period);
|
||||||
|
|
||||||
const rawSql = `
|
const apiToken = getSetting("API_TOKEN");
|
||||||
SELECT eve_DateTime, eve_EventType, eve_IP, eve_AdditionalInfo
|
const apiBase = getApiBase();
|
||||||
FROM Events
|
const graphqlUrl = `${apiBase}/graphql`;
|
||||||
WHERE eve_MAC = "${mac}"
|
|
||||||
AND eve_DateTime BETWEEN "${start}" AND "${end}"
|
const query = `
|
||||||
AND (
|
query Events($options: EventQueryOptionsInput) {
|
||||||
(eve_EventType NOT IN ("Connected", "Disconnected", "VOIDED - Connected", "VOIDED - Disconnected"))
|
events(options: $options) {
|
||||||
OR "${hideConnectionsStr}" = "false"
|
count
|
||||||
)
|
entries {
|
||||||
|
eveDateTime
|
||||||
|
eveEventType
|
||||||
|
eveIp
|
||||||
|
eveAdditionalInfo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const apiToken = getSetting("API_TOKEN");
|
|
||||||
|
|
||||||
const apiBaseUrl = getApiBase();
|
|
||||||
const url = `${apiBaseUrl}/dbquery/read`;
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: graphqlUrl,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
"Authorization": `Bearer ${apiToken}`
|
"Authorization": `Bearer ${apiToken}`
|
||||||
},
|
},
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
rawSql: btoa(rawSql)
|
query,
|
||||||
|
variables: {
|
||||||
|
options: {
|
||||||
|
eveMac: mac,
|
||||||
|
dateFrom: start,
|
||||||
|
dateTo: end,
|
||||||
|
limit: 500,
|
||||||
|
sort: [{ field: "eveDateTime", order: "desc" }]
|
||||||
|
}
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
// assuming read_query returns rows directly
|
const CONNECTION_TYPES = ["Connected", "Disconnected", "VOIDED - Connected", "VOIDED - Disconnected"];
|
||||||
const rows = data["results"].map(row => {
|
|
||||||
const rawDate = row.eve_DateTime;
|
const rows = data.data.events.entries
|
||||||
|
.filter(row => !hideConnections || !CONNECTION_TYPES.includes(row.eveEventType))
|
||||||
|
.map(row => {
|
||||||
|
const rawDate = row.eveDateTime;
|
||||||
const formattedDate = rawDate ? localizeTimestamp(rawDate) : '-';
|
const formattedDate = rawDate ? localizeTimestamp(rawDate) : '-';
|
||||||
|
|
||||||
return [
|
return [
|
||||||
formattedDate,
|
formattedDate,
|
||||||
row.eve_DateTime,
|
row.eveDateTime,
|
||||||
row.eve_EventType,
|
row.eveEventType,
|
||||||
row.eve_IP,
|
row.eveIp,
|
||||||
row.eve_AdditionalInfo
|
row.eveAdditionalInfo
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -121,12 +121,12 @@ function loadSessionsData() {
|
|||||||
if (data.success && data.sessions.length) {
|
if (data.success && data.sessions.length) {
|
||||||
data.sessions.forEach(session => {
|
data.sessions.forEach(session => {
|
||||||
table.row.add([
|
table.row.add([
|
||||||
session.ses_DateTimeOrder,
|
session.sesDateTimeOrder,
|
||||||
session.ses_Connection,
|
session.sesConnection,
|
||||||
session.ses_Disconnection,
|
session.sesDisconnection,
|
||||||
session.ses_Duration,
|
session.sesDuration,
|
||||||
session.ses_IP,
|
session.sesIp,
|
||||||
session.ses_Info
|
session.sesInfo
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,12 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="box" id="clients">
|
<div class="box" id="clients">
|
||||||
<div class="box-header ">
|
<div class="box-header ">
|
||||||
<h3 class="box-title col-md-12"><?= lang('Device_Shortcut_OnlineChart');?> </h3>
|
<h3 class="box-title"><?= lang('Device_Shortcut_OnlineChart');?> </h3>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
|
<i class="fa fa-minus"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="chart">
|
<div class="chart">
|
||||||
@@ -72,10 +77,15 @@
|
|||||||
<!-- Device Filters ------------------------------------------------------- -->
|
<!-- Device Filters ------------------------------------------------------- -->
|
||||||
<div class="box box-aqua hidden" id="columnFiltersWrap">
|
<div class="box box-aqua hidden" id="columnFiltersWrap">
|
||||||
<div class="box-header ">
|
<div class="box-header ">
|
||||||
<h3 class="box-title col-md-12"><?= lang('Devices_Filters');?> </h3>
|
<h3 class="box-title"><?= lang('Devices_Filters');?> </h3>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
|
<i class="fa fa-minus"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Placeholder ------------------------------------------------------- -->
|
<!-- Placeholder ------------------------------------------------------- -->
|
||||||
<div id="columnFilters" ></div>
|
<div class="box-body" id="columnFilters"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- datatable ------------------------------------------------------------- -->
|
<!-- datatable ------------------------------------------------------------- -->
|
||||||
@@ -148,6 +158,20 @@
|
|||||||
// DEVICE_COLUMN_FIELDS, COL, NUMERIC_DEFAULTS, GRAPHQL_EXTRA_FIELDS, COLUMN_NAME_MAP
|
// DEVICE_COLUMN_FIELDS, COL, NUMERIC_DEFAULTS, GRAPHQL_EXTRA_FIELDS, COLUMN_NAME_MAP
|
||||||
// are all defined in js/device-columns.js — edit that file to add new columns.
|
// are all defined in js/device-columns.js — edit that file to add new columns.
|
||||||
|
|
||||||
|
// Collapse DevicePresence and Filters sections by default on small/mobile screens
|
||||||
|
(function collapseOnMobile() {
|
||||||
|
if (window.innerWidth < 768) {
|
||||||
|
['#clients', '#columnFiltersWrap'].forEach(function(sel) {
|
||||||
|
var $box = $(sel);
|
||||||
|
if ($box.length) {
|
||||||
|
$box.addClass('collapsed-box');
|
||||||
|
$box.find('.box-body, .box-footer').hide();
|
||||||
|
$box.find('[data-widget="collapse"] i').removeClass('fa-minus').addClass('fa-plus');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
// Read parameters & Initialize components
|
// Read parameters & Initialize components
|
||||||
callAfterAppInitialized(main)
|
callAfterAppInitialized(main)
|
||||||
showSpinner();
|
showSpinner();
|
||||||
@@ -472,12 +496,9 @@ function renderFilters(customData) {
|
|||||||
// Collect filters
|
// Collect filters
|
||||||
const columnFilters = collectFilters();
|
const columnFilters = collectFilters();
|
||||||
|
|
||||||
// Update DataTable with the new filters or search value (if applicable)
|
// Apply column filters then draw once (previously drew twice — bug fixed).
|
||||||
$('#tableDevices').DataTable().draw();
|
|
||||||
|
|
||||||
// Optionally, apply column filters (if using filters for individual columns)
|
|
||||||
const table = $('#tableDevices').DataTable();
|
const table = $('#tableDevices').DataTable();
|
||||||
table.columnFilters = columnFilters; // Apply your column filters logic
|
table.columnFilters = columnFilters;
|
||||||
table.draw();
|
table.draw();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -603,6 +624,10 @@ function hasEnabledDeviceScanners() {
|
|||||||
// Update the title-bar ETA subtitle and the DataTables empty-state message.
|
// Update the title-bar ETA subtitle and the DataTables empty-state message.
|
||||||
// Called on every nax:scanEtaUpdate; the inner ticker keeps the title bar live between events.
|
// Called on every nax:scanEtaUpdate; the inner ticker keeps the title bar live between events.
|
||||||
function updateScanEtaDisplay(nextScanTime, currentState) {
|
function updateScanEtaDisplay(nextScanTime, currentState) {
|
||||||
|
// Detect scan-finished transition BEFORE updating _currentStateAnchor.
|
||||||
|
// justFinishedScanning is true only when the backend transitions scanning → idle.
|
||||||
|
var justFinishedScanning = (currentState === 'Process: Idle') && isScanningState(_currentStateAnchor);
|
||||||
|
|
||||||
// Prefer the backend-computed values; keep previous anchors if not yet received.
|
// Prefer the backend-computed values; keep previous anchors if not yet received.
|
||||||
_nextScanTimeAnchor = nextScanTime || _nextScanTimeAnchor;
|
_nextScanTimeAnchor = nextScanTime || _nextScanTimeAnchor;
|
||||||
_currentStateAnchor = currentState || _currentStateAnchor;
|
_currentStateAnchor = currentState || _currentStateAnchor;
|
||||||
@@ -636,12 +661,26 @@ function updateScanEtaDisplay(nextScanTime, currentState) {
|
|||||||
eta.style.display = '';
|
eta.style.display = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update DataTables empty message once per SSE event — avoids AJAX spam on server-side tables.
|
// Update DataTables empty message once per SSE event.
|
||||||
|
// NOTE: Do NOT call dt.draw() here — on page load the SSE queue replays all
|
||||||
|
// accumulated events at once, causing a draw() (= GraphQL AJAX call) per event.
|
||||||
|
// Instead, update the visible empty-state DOM cell directly.
|
||||||
var label = getEtaLabel();
|
var label = getEtaLabel();
|
||||||
if ($.fn.DataTable.isDataTable('#tableDevices')) {
|
if ($.fn.DataTable.isDataTable('#tableDevices')) {
|
||||||
var dt = $('#tableDevices').DataTable();
|
var dt = $('#tableDevices').DataTable();
|
||||||
dt.settings()[0].oLanguage.sEmptyTable = buildEmptyDeviceTableMessage(label);
|
var newEmptyMsg = buildEmptyDeviceTableMessage(label);
|
||||||
if (dt.page.info().recordsTotal === 0) { dt.draw(false); }
|
dt.settings()[0].oLanguage.sEmptyTable = newEmptyMsg;
|
||||||
|
if (dt.page.info().recordsTotal === 0) {
|
||||||
|
// Patch the visible cell text without triggering a server-side AJAX reload.
|
||||||
|
$('#tableDevices tbody .dataTables_empty').html(newEmptyMsg);
|
||||||
|
}
|
||||||
|
|
||||||
|
// When scanning just finished and the table is still empty, reload data so
|
||||||
|
// newly discovered devices appear automatically. Skip reload if there are
|
||||||
|
// already rows — no need to disturb the user's current view.
|
||||||
|
if (justFinishedScanning && dt.page.info().recordsTotal === 0) {
|
||||||
|
dt.ajax.reload(null, false); // false = keep current page position
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tickTitleBar();
|
tickTitleBar();
|
||||||
@@ -728,6 +767,7 @@ function initializeDatatable (status) {
|
|||||||
${_gqlFields}
|
${_gqlFields}
|
||||||
}
|
}
|
||||||
count
|
count
|
||||||
|
dbCount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -768,8 +808,9 @@ function initializeDatatable (status) {
|
|||||||
console.log("Raw response:", res);
|
console.log("Raw response:", res);
|
||||||
const json = res["data"];
|
const json = res["data"];
|
||||||
|
|
||||||
// Set the total number of records for pagination at the *root level* so DataTables sees them
|
// recordsTotal = raw DB count (before filters/search) so DataTables uses emptyTable
|
||||||
res.recordsTotal = json.devices.count || 0;
|
// only when the DB is genuinely empty, and zeroRecords when a filter returns nothing.
|
||||||
|
res.recordsTotal = json.devices.dbCount || 0;
|
||||||
res.recordsFiltered = json.devices.count || 0;
|
res.recordsFiltered = json.devices.count || 0;
|
||||||
|
|
||||||
// console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);
|
// console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);
|
||||||
@@ -1011,6 +1052,7 @@ function initializeDatatable (status) {
|
|||||||
'processing' : true,
|
'processing' : true,
|
||||||
'language' : {
|
'language' : {
|
||||||
emptyTable: buildEmptyDeviceTableMessage(getString('Device_NextScan_Imminent')),
|
emptyTable: buildEmptyDeviceTableMessage(getString('Device_NextScan_Imminent')),
|
||||||
|
zeroRecords: "<?= lang('Device_NoMatch_Title');?>",
|
||||||
"lengthMenu": "<?= lang('Device_Tablelenght');?>",
|
"lengthMenu": "<?= lang('Device_Tablelenght');?>",
|
||||||
"search": "<?= lang('Device_Searchbox');?>: ",
|
"search": "<?= lang('Device_Searchbox');?>: ",
|
||||||
"paginate": {
|
"paginate": {
|
||||||
|
|||||||
@@ -105,12 +105,17 @@ function main() {
|
|||||||
$('#period').val(period);
|
$('#period').val(period);
|
||||||
initializeDatatable();
|
initializeDatatable();
|
||||||
getEventsTotals();
|
getEventsTotals();
|
||||||
getEvents(eventsType);
|
getEvents(eventsType); // triggers first serverSide draw
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------- Initialize DataTable ---------------- */
|
/* ---------------- Initialize DataTable ---------------- */
|
||||||
function initializeDatatable() {
|
function initializeDatatable() {
|
||||||
const table = $('#tableEvents').DataTable({
|
const apiBase = getApiBase();
|
||||||
|
const apiToken = getSetting("API_TOKEN");
|
||||||
|
|
||||||
|
$('#tableEvents').DataTable({
|
||||||
|
processing: true,
|
||||||
|
serverSide: true,
|
||||||
paging: true,
|
paging: true,
|
||||||
lengthChange: true,
|
lengthChange: true,
|
||||||
lengthMenu: getLengthMenu(getSetting("UI_DEFAULT_PAGE_SIZE")),
|
lengthMenu: getLengthMenu(getSetting("UI_DEFAULT_PAGE_SIZE")),
|
||||||
@@ -118,8 +123,46 @@ function initializeDatatable() {
|
|||||||
ordering: true,
|
ordering: true,
|
||||||
info: true,
|
info: true,
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
order: [[0, "desc"], [3, "desc"], [5, "desc"]],
|
order: [[0, "desc"]],
|
||||||
pageLength: tableRows,
|
pageLength: tableRows,
|
||||||
|
|
||||||
|
ajax: function (dtRequest, callback) {
|
||||||
|
const page = Math.floor(dtRequest.start / dtRequest.length) + 1;
|
||||||
|
const limit = dtRequest.length;
|
||||||
|
const search = dtRequest.search?.value || '';
|
||||||
|
const sortCol = dtRequest.order?.length ? dtRequest.order[0].column : 0;
|
||||||
|
const sortDir = dtRequest.order?.length ? dtRequest.order[0].dir : 'desc';
|
||||||
|
|
||||||
|
const url = `${apiBase}/sessions/session-events`
|
||||||
|
+ `?type=${encodeURIComponent(eventsType)}`
|
||||||
|
+ `&period=${encodeURIComponent(period)}`
|
||||||
|
+ `&page=${page}`
|
||||||
|
+ `&limit=${limit}`
|
||||||
|
+ `&sortCol=${sortCol}`
|
||||||
|
+ `&sortDir=${sortDir}`
|
||||||
|
+ (search ? `&search=${encodeURIComponent(search)}` : '');
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url,
|
||||||
|
method: "GET",
|
||||||
|
dataType: "json",
|
||||||
|
headers: { "Authorization": `Bearer ${apiToken}` },
|
||||||
|
success: function (response) {
|
||||||
|
callback({
|
||||||
|
data: response.data || [],
|
||||||
|
recordsTotal: response.total || 0,
|
||||||
|
recordsFiltered: response.recordsFiltered || 0
|
||||||
|
});
|
||||||
|
hideSpinner();
|
||||||
|
},
|
||||||
|
error: function (xhr, status, error) {
|
||||||
|
console.error("Error fetching session events:", status, error, xhr.responseText);
|
||||||
|
callback({ data: [], recordsTotal: 0, recordsFiltered: 0 });
|
||||||
|
hideSpinner();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{ targets: [0,5,6,7,8,10,11,12,13], visible: false },
|
{ targets: [0,5,6,7,8,10,11,12,13], visible: false },
|
||||||
{ targets: [7], orderData: [8] },
|
{ targets: [7], orderData: [8] },
|
||||||
@@ -131,7 +174,7 @@ function initializeDatatable() {
|
|||||||
{ targets: [3], createdCell: (td, cellData) => $(td).html(localizeTimestamp(cellData)) },
|
{ targets: [3], createdCell: (td, cellData) => $(td).html(localizeTimestamp(cellData)) },
|
||||||
{ targets: [4,5,6,7], createdCell: (td, cellData) => $(td).html(translateHTMLcodes(cellData)) }
|
{ targets: [4,5,6,7], createdCell: (td, cellData) => $(td).html(translateHTMLcodes(cellData)) }
|
||||||
],
|
],
|
||||||
processing: true, // Shows "processing" overlay
|
|
||||||
language: {
|
language: {
|
||||||
processing: '<table><td width="130px" align="middle"><?= lang("Events_Loading"); ?></td><td><i class="fa-solid fa-spinner fa-spin-pulse"></i></td></table>',
|
processing: '<table><td width="130px" align="middle"><?= lang("Events_Loading"); ?></td><td><i class="fa-solid fa-spinner fa-spin-pulse"></i></td></table>',
|
||||||
emptyTable: 'No data',
|
emptyTable: 'No data',
|
||||||
@@ -179,7 +222,7 @@ function getEventsTotals() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------- Fetch events and reload DataTable ---------------- */
|
/* ---------------- Switch event type and reload DataTable ---------------- */
|
||||||
function getEvents(type) {
|
function getEvents(type) {
|
||||||
eventsType = type;
|
eventsType = type;
|
||||||
const table = $('#tableEvents').DataTable();
|
const table = $('#tableEvents').DataTable();
|
||||||
@@ -198,34 +241,14 @@ function getEvents(type) {
|
|||||||
$('#tableEventsTitle').attr('class', 'box-title text-' + config.color).html(getString(config.title));
|
$('#tableEventsTitle').attr('class', 'box-title text-' + config.color).html(getString(config.title));
|
||||||
$('#tableEventsBox').attr('class', 'box box-' + config.color);
|
$('#tableEventsBox').attr('class', 'box box-' + config.color);
|
||||||
|
|
||||||
// Toggle columns visibility
|
// Toggle column visibility
|
||||||
table.column(3).visible(!config.sesionCols);
|
table.column(3).visible(!config.sesionCols);
|
||||||
table.column(4).visible(!config.sesionCols);
|
table.column(4).visible(!config.sesionCols);
|
||||||
table.column(5).visible(config.sesionCols);
|
table.column(5).visible(config.sesionCols);
|
||||||
table.column(6).visible(config.sesionCols);
|
table.column(6).visible(config.sesionCols);
|
||||||
table.column(7).visible(config.sesionCols);
|
table.column(7).visible(config.sesionCols);
|
||||||
|
|
||||||
// Build API URL
|
showSpinner();
|
||||||
const apiBase = getApiBase();
|
table.ajax.reload(null, true); // reset to page 1
|
||||||
const apiToken = getSetting("API_TOKEN");
|
|
||||||
const url = `${apiBase}/sessions/session-events?type=${encodeURIComponent(type)}&period=${encodeURIComponent(period)}`;
|
|
||||||
|
|
||||||
table.clear().draw(); // Clear old rows
|
|
||||||
|
|
||||||
showSpinner()
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
url,
|
|
||||||
method: "GET",
|
|
||||||
dataType: "json",
|
|
||||||
headers: { "Authorization": `Bearer ${apiToken}` },
|
|
||||||
beforeSend: showSpinner, // Show spinner during fetch
|
|
||||||
complete: hideSpinner, // Hide spinner after fetch
|
|
||||||
success: response => {
|
|
||||||
const data = Array.isArray(response) ? response : response.data || [];
|
|
||||||
table.rows.add(data).draw();
|
|
||||||
},
|
|
||||||
error: (xhr, status, error) => console.error("Error fetching session events:", status, error, xhr.responseText)
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
var completedCalls = []
|
var completedCalls = []
|
||||||
var completedCalls_final = ['cacheApiConfig', 'cacheSettings', 'cacheStrings', 'cacheDevices'];
|
var completedCalls_final = ['cacheApiConfig', 'cacheSettings', 'cacheStrings_v2', 'cacheDevices'];
|
||||||
var lang_completedCalls = 0;
|
var lang_completedCalls = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ function getSetting (key) {
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
function cacheStrings() {
|
function cacheStrings() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if(getCache(CACHE_KEYS.initFlag('cacheStrings')) === "true")
|
if(getCache(CACHE_KEYS.initFlag('cacheStrings_v2')) === "true")
|
||||||
{
|
{
|
||||||
// Core strings are cached, but plugin strings may have failed silently on
|
// Core strings are cached, but plugin strings may have failed silently on
|
||||||
// the first load (non-fatal fetch). Always re-fetch them so that plugin
|
// the first load (non-fatal fetch). Always re-fetch them so that plugin
|
||||||
@@ -304,7 +304,7 @@ function cacheStrings() {
|
|||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (!Array.isArray(data)) { data = []; }
|
if (!Array.isArray(data)) { data = []; }
|
||||||
data.forEach((langString) => {
|
data.forEach((langString) => {
|
||||||
setCache(CACHE_KEYS.langString(langString.String_Key, langString.Language_Code), langString.String_Value);
|
setCache(CACHE_KEYS.langString(langString.stringKey, langString.languageCode), langString.stringValue);
|
||||||
});
|
});
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
@@ -347,11 +347,11 @@ function cacheStrings() {
|
|||||||
if (!Array.isArray(data)) { data = []; }
|
if (!Array.isArray(data)) { data = []; }
|
||||||
// Store plugin translations
|
// Store plugin translations
|
||||||
data.forEach((langString) => {
|
data.forEach((langString) => {
|
||||||
setCache(CACHE_KEYS.langString(langString.String_Key, langString.Language_Code), langString.String_Value);
|
setCache(CACHE_KEYS.langString(langString.stringKey, langString.languageCode), langString.stringValue);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle successful completion of language processing
|
// Handle successful completion of language processing
|
||||||
handleSuccess('cacheStrings');
|
handleSuccess('cacheStrings_v2');
|
||||||
resolveLang();
|
resolveLang();
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@@ -370,7 +370,7 @@ function cacheStrings() {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// Handle failure in any of the language processing
|
// Handle failure in any of the language processing
|
||||||
handleFailure('cacheStrings');
|
handleFailure('cacheStrings_v2');
|
||||||
reject(error);
|
reject(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -451,11 +451,23 @@ function getDevDataByMac(macAddress, dbColumn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Cache the devices as one JSON
|
/**
|
||||||
function cacheDevices()
|
* Fetches the full device list from table_devices.json and stores it in
|
||||||
|
* localStorage under CACHE_KEYS.DEVICES_ALL.
|
||||||
|
*
|
||||||
|
* On subsequent calls the fetch is skipped if the initFlag is already set,
|
||||||
|
* unless forceRefresh is true. Pass forceRefresh = true whenever the caller
|
||||||
|
* knows the cached list may be stale (e.g. a device was not found by MAC and
|
||||||
|
* the page needs to recover without a full clearCache()).
|
||||||
|
*
|
||||||
|
* @param {boolean} [forceRefresh=false] - When true, bypasses the initFlag
|
||||||
|
* guard and always fetches fresh data from the server.
|
||||||
|
* @returns {Promise<void>} Resolves when the cache has been populated.
|
||||||
|
*/
|
||||||
|
function cacheDevices(forceRefresh = false)
|
||||||
{
|
{
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if(getCache(CACHE_KEYS.initFlag('cacheDevices')) === "true")
|
if(!forceRefresh && getCache(CACHE_KEYS.initFlag('cacheDevices')) === "true")
|
||||||
{
|
{
|
||||||
// One-time migration: normalize legacy { data: [...] } wrapper to a plain array.
|
// One-time migration: normalize legacy { data: [...] } wrapper to a plain array.
|
||||||
// Old cache entries from prior versions stored the raw API envelope; re-write
|
// Old cache entries from prior versions stored the raw API envelope; re-write
|
||||||
|
|||||||
@@ -9059,6 +9059,11 @@ function ajaxConvert( s, response, jqXHR, isSuccess ) {
|
|||||||
// Convert response if prev dataType is non-auto and differs from current
|
// Convert response if prev dataType is non-auto and differs from current
|
||||||
} else if ( prev !== "*" && prev !== current ) {
|
} else if ( prev !== "*" && prev !== current ) {
|
||||||
|
|
||||||
|
// Mitigate possible XSS vulnerability (gh-2432)
|
||||||
|
if ( s.crossDomain && current === "script" ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Seek a direct converter
|
// Seek a direct converter
|
||||||
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
|
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// check if authenticated
|
// check if authenticated
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/security.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/security.php';
|
||||||
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/server/db.php';
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/language/lang.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/language/lang.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -28,13 +28,13 @@ function initOnlineHistoryGraph() {
|
|||||||
|
|
||||||
res.data.forEach(function(entry) {
|
res.data.forEach(function(entry) {
|
||||||
|
|
||||||
var formattedTime = localizeTimestamp(entry.Scan_Date).slice(11, 17);
|
var formattedTime = localizeTimestamp(entry.scanDate).slice(11, 17);
|
||||||
|
|
||||||
timeStamps.push(formattedTime);
|
timeStamps.push(formattedTime);
|
||||||
onlineCounts.push(entry.Online_Devices);
|
onlineCounts.push(entry.onlineDevices);
|
||||||
downCounts.push(entry.Down_Devices);
|
downCounts.push(entry.downDevices);
|
||||||
offlineCounts.push(entry.Offline_Devices);
|
offlineCounts.push(entry.offlineDevices);
|
||||||
archivedCounts.push(entry.Archived_Devices);
|
archivedCounts.push(entry.archivedDevices);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Call your presenceOverTime function after data is ready
|
// Call your presenceOverTime function after data is ready
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "Problemes guardant el dispositiu",
|
"Device_Save_Failed": "Problemes guardant el dispositiu",
|
||||||
"Device_Save_Unauthorized": "Token invàlid - No autoritzat",
|
"Device_Save_Unauthorized": "Token invàlid - No autoritzat",
|
||||||
"Device_Saved_Success": "S'ha guardat el dispositiu",
|
"Device_Saved_Success": "S'ha guardat el dispositiu",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -212,6 +212,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "Gerät erfolgreich gespeichert",
|
"Device_Saved_Success": "Gerät erfolgreich gespeichert",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "If devices don't appear after the scan, check your SCAN_SUBNETS setting and <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">documentation</a>.",
|
"Device_NoData_Help": "If devices don't appear after the scan, check your SCAN_SUBNETS setting and <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">documentation</a>.",
|
||||||
"Device_NoData_Scanning": "Waiting for the first scan - this may take several minutes after the initial setup.",
|
"Device_NoData_Scanning": "Waiting for the first scan - this may take several minutes after the initial setup.",
|
||||||
"Device_NoData_Title": "No devices found yet",
|
"Device_NoData_Title": "No devices found yet",
|
||||||
|
"Device_NoMatch_Title": "No devices match the current filter",
|
||||||
"Device_Save_Failed": "Failed to save device",
|
"Device_Save_Failed": "Failed to save device",
|
||||||
"Device_Save_Unauthorized": "Unauthorized - invalid API token",
|
"Device_Save_Unauthorized": "Unauthorized - invalid API token",
|
||||||
"Device_Saved_Success": "Device saved successfully",
|
"Device_Saved_Success": "Device saved successfully",
|
||||||
|
|||||||
@@ -210,6 +210,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "Fallo al guardar el dispositivo",
|
"Device_Save_Failed": "Fallo al guardar el dispositivo",
|
||||||
"Device_Save_Unauthorized": "No autorizado - Token de API inválido",
|
"Device_Save_Unauthorized": "No autorizado - Token de API inválido",
|
||||||
"Device_Saved_Success": "Dispositivo guardado exitósamente",
|
"Device_Saved_Success": "Dispositivo guardado exitósamente",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
"DevDetail_SessionTable_Duration": "Durée",
|
"DevDetail_SessionTable_Duration": "Durée",
|
||||||
"DevDetail_SessionTable_IP": "IP",
|
"DevDetail_SessionTable_IP": "IP",
|
||||||
"DevDetail_SessionTable_Order": "Ordre",
|
"DevDetail_SessionTable_Order": "Ordre",
|
||||||
"DevDetail_Shortcut_CurrentStatus": "État actuel",
|
"DevDetail_Shortcut_CurrentStatus": "État",
|
||||||
"DevDetail_Shortcut_DownAlerts": "Alertes de panne",
|
"DevDetail_Shortcut_DownAlerts": "Alertes de panne",
|
||||||
"DevDetail_Shortcut_Presence": "Présence",
|
"DevDetail_Shortcut_Presence": "Présence",
|
||||||
"DevDetail_Shortcut_Sessions": "Sessions",
|
"DevDetail_Shortcut_Sessions": "Sessions",
|
||||||
@@ -203,16 +203,17 @@
|
|||||||
"Device_MultiEdit_MassActions": "Actions en masse :",
|
"Device_MultiEdit_MassActions": "Actions en masse :",
|
||||||
"Device_MultiEdit_No_Devices": "Aucun appareil sélectionné.",
|
"Device_MultiEdit_No_Devices": "Aucun appareil sélectionné.",
|
||||||
"Device_MultiEdit_Tooltip": "Attention. Ceci va appliquer la valeur de gauche à tous les appareils sélectionnés au-dessus.",
|
"Device_MultiEdit_Tooltip": "Attention. Ceci va appliquer la valeur de gauche à tous les appareils sélectionnés au-dessus.",
|
||||||
"Device_NextScan_Imminent": "",
|
"Device_NextScan_Imminent": "Imminent...",
|
||||||
"Device_NextScan_In": "",
|
"Device_NextScan_In": "Prochain scan dans ",
|
||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "Si les appareils n'apparaissent pas après le scan, vérifiez vos paramètres SCAN_SUBNETS et la <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">documentation</a>.",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "En attente du premier scan - cela peut prendre quelques minutes après le premier paramétrage.",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "Aucun appareil trouvé pour le moment",
|
||||||
|
"Device_NoMatch_Title": "Aucun appareil ne correspond au filtre actuel",
|
||||||
"Device_Save_Failed": "Erreur à l'enregistrement de l'appareil",
|
"Device_Save_Failed": "Erreur à l'enregistrement de l'appareil",
|
||||||
"Device_Save_Unauthorized": "Non autorisé - Jeton d'API invalide",
|
"Device_Save_Unauthorized": "Non autorisé - Jeton d'API invalide",
|
||||||
"Device_Saved_Success": "Appareil enregistré avec succès",
|
"Device_Saved_Success": "Appareil enregistré avec succès",
|
||||||
"Device_Saved_Unexpected": "La mise à jour de l'appareil a renvoyé une réponse inattendue",
|
"Device_Saved_Unexpected": "La mise à jour de l'appareil a renvoyé une réponse inattendue",
|
||||||
"Device_Scanning": "",
|
"Device_Scanning": "Scan en cours...",
|
||||||
"Device_Searchbox": "Rechercher",
|
"Device_Searchbox": "Rechercher",
|
||||||
"Device_Shortcut_AllDevices": "Mes appareils",
|
"Device_Shortcut_AllDevices": "Mes appareils",
|
||||||
"Device_Shortcut_AllNodes": "Tous les nœuds",
|
"Device_Shortcut_AllNodes": "Tous les nœuds",
|
||||||
@@ -231,7 +232,7 @@
|
|||||||
"Device_TableHead_FQDN": "Nom de domaine FQDN",
|
"Device_TableHead_FQDN": "Nom de domaine FQDN",
|
||||||
"Device_TableHead_Favorite": "Favori",
|
"Device_TableHead_Favorite": "Favori",
|
||||||
"Device_TableHead_FirstSession": "Première session",
|
"Device_TableHead_FirstSession": "Première session",
|
||||||
"Device_TableHead_Flapping": "",
|
"Device_TableHead_Flapping": "Flapping",
|
||||||
"Device_TableHead_GUID": "GUID",
|
"Device_TableHead_GUID": "GUID",
|
||||||
"Device_TableHead_Group": "Groupe",
|
"Device_TableHead_Group": "Groupe",
|
||||||
"Device_TableHead_IPv4": "IPv4",
|
"Device_TableHead_IPv4": "IPv4",
|
||||||
@@ -322,7 +323,7 @@
|
|||||||
"Gen_AddDevice": "Ajouter un appareil",
|
"Gen_AddDevice": "Ajouter un appareil",
|
||||||
"Gen_Add_All": "Ajouter tous",
|
"Gen_Add_All": "Ajouter tous",
|
||||||
"Gen_All_Devices": "Tous les appareils",
|
"Gen_All_Devices": "Tous les appareils",
|
||||||
"Gen_Archived": "",
|
"Gen_Archived": "Archivés",
|
||||||
"Gen_AreYouSure": "Êtes-vous sûr ?",
|
"Gen_AreYouSure": "Êtes-vous sûr ?",
|
||||||
"Gen_Backup": "Lancer la sauvegarde",
|
"Gen_Backup": "Lancer la sauvegarde",
|
||||||
"Gen_Cancel": "Annuler",
|
"Gen_Cancel": "Annuler",
|
||||||
@@ -333,16 +334,16 @@
|
|||||||
"Gen_Delete": "Supprimer",
|
"Gen_Delete": "Supprimer",
|
||||||
"Gen_DeleteAll": "Supprimer tous",
|
"Gen_DeleteAll": "Supprimer tous",
|
||||||
"Gen_Description": "Description",
|
"Gen_Description": "Description",
|
||||||
"Gen_Down": "",
|
"Gen_Down": "En panne",
|
||||||
"Gen_Error": "Erreur",
|
"Gen_Error": "Erreur",
|
||||||
"Gen_Filter": "Filtrer",
|
"Gen_Filter": "Filtrer",
|
||||||
"Gen_Flapping": "",
|
"Gen_Flapping": "Flapping",
|
||||||
"Gen_Generate": "Générer",
|
"Gen_Generate": "Générer",
|
||||||
"Gen_InvalidMac": "Adresse MAC invalide.",
|
"Gen_InvalidMac": "Adresse MAC invalide.",
|
||||||
"Gen_Invalid_Value": "Une valeur invalide a été renseignée",
|
"Gen_Invalid_Value": "Une valeur invalide a été renseignée",
|
||||||
"Gen_LockedDB": "Erreur - La base de données est peut-être verrouillée - Vérifier avec les outils de dév via F12 -> Console ou essayer plus tard.",
|
"Gen_LockedDB": "Erreur - La base de données est peut-être verrouillée - Vérifier avec les outils de dév via F12 -> Console ou essayer plus tard.",
|
||||||
"Gen_NetworkMask": "Masque réseau",
|
"Gen_NetworkMask": "Masque réseau",
|
||||||
"Gen_New": "",
|
"Gen_New": "Nouveau",
|
||||||
"Gen_Offline": "Hors ligne",
|
"Gen_Offline": "Hors ligne",
|
||||||
"Gen_Okay": "OK",
|
"Gen_Okay": "OK",
|
||||||
"Gen_Online": "En ligne",
|
"Gen_Online": "En ligne",
|
||||||
@@ -360,7 +361,7 @@
|
|||||||
"Gen_SelectIcon": "<i class=\"fa-solid fa-chevron-down fa-fade\"></i>",
|
"Gen_SelectIcon": "<i class=\"fa-solid fa-chevron-down fa-fade\"></i>",
|
||||||
"Gen_SelectToPreview": "Sélectionnez pour prévisualiser",
|
"Gen_SelectToPreview": "Sélectionnez pour prévisualiser",
|
||||||
"Gen_Selected_Devices": "Appareils sélectionnés :",
|
"Gen_Selected_Devices": "Appareils sélectionnés :",
|
||||||
"Gen_Sleeping": "",
|
"Gen_Sleeping": "En sommeil",
|
||||||
"Gen_Subnet": "Sous-réseau",
|
"Gen_Subnet": "Sous-réseau",
|
||||||
"Gen_Switch": "Basculer",
|
"Gen_Switch": "Basculer",
|
||||||
"Gen_Upd": "Mise à jour réussie",
|
"Gen_Upd": "Mise à jour réussie",
|
||||||
@@ -590,8 +591,8 @@
|
|||||||
"PIALERT_WEB_PROTECTION_name": "Activer la connexion par login",
|
"PIALERT_WEB_PROTECTION_name": "Activer la connexion par login",
|
||||||
"PLUGINS_KEEP_HIST_description": "Combien d'entrées de résultats de scan doivent être conservés dans l'historique des plugins (par plugin, pas par appareil).",
|
"PLUGINS_KEEP_HIST_description": "Combien d'entrées de résultats de scan doivent être conservés dans l'historique des plugins (par plugin, pas par appareil).",
|
||||||
"PLUGINS_KEEP_HIST_name": "Historique des plugins",
|
"PLUGINS_KEEP_HIST_name": "Historique des plugins",
|
||||||
"PRAGMA_JOURNAL_SIZE_LIMIT_description": "",
|
"PRAGMA_JOURNAL_SIZE_LIMIT_description": "Taille maximale du SQLite WAL (Write-Ahead Log) en Mo avant le déclenchement automatique des points de contrôle. Des valeurs basses (10-20 Mo) réduisent l'utilisation du disque/stockage mais augmentent l'utilisation du CPU durant ces scans. Des valeurs élevées (50-100 Mo) réduisent les pics CPU durant les opérations mais peuvent utiliser plus de RAM et d'espace disque. Par défaut, <code>50 Mo</code> est un compromis entre ces 2. Utilise pour les systèmes à ressources limitées comme des NAS avec des cartes SD. Redémarrer le serveur pour que le changement soit effective après avoir sauvegardé ce paramètre.",
|
||||||
"PRAGMA_JOURNAL_SIZE_LIMIT_name": "",
|
"PRAGMA_JOURNAL_SIZE_LIMIT_name": "Limite de taille du WAL (Mo)",
|
||||||
"Plugins_DeleteAll": "Tout supprimer (ne prend pas en compte les filtres)",
|
"Plugins_DeleteAll": "Tout supprimer (ne prend pas en compte les filtres)",
|
||||||
"Plugins_Filters_Mac": "Filtrer par MAC",
|
"Plugins_Filters_Mac": "Filtrer par MAC",
|
||||||
"Plugins_History": "Historique des événements",
|
"Plugins_History": "Historique des événements",
|
||||||
|
|||||||
808
front/php/templates/language/id_id.json
Normal file
808
front/php/templates/language/id_id.json
Normal file
@@ -0,0 +1,808 @@
|
|||||||
|
{
|
||||||
|
"API_CUSTOM_SQL_description": "",
|
||||||
|
"API_CUSTOM_SQL_name": "",
|
||||||
|
"API_TOKEN_description": "",
|
||||||
|
"API_TOKEN_name": "",
|
||||||
|
"API_display_name": "",
|
||||||
|
"API_icon": "",
|
||||||
|
"About_Design": "",
|
||||||
|
"About_Exit": "",
|
||||||
|
"About_Title": "",
|
||||||
|
"AppEvents_AppEventProcessed": "",
|
||||||
|
"AppEvents_DateTimeCreated": "",
|
||||||
|
"AppEvents_Extra": "",
|
||||||
|
"AppEvents_GUID": "",
|
||||||
|
"AppEvents_Helper1": "",
|
||||||
|
"AppEvents_Helper2": "",
|
||||||
|
"AppEvents_Helper3": "",
|
||||||
|
"AppEvents_ObjectForeignKey": "",
|
||||||
|
"AppEvents_ObjectIndex": "",
|
||||||
|
"AppEvents_ObjectIsArchived": "",
|
||||||
|
"AppEvents_ObjectIsNew": "",
|
||||||
|
"AppEvents_ObjectPlugin": "",
|
||||||
|
"AppEvents_ObjectPrimaryID": "",
|
||||||
|
"AppEvents_ObjectSecondaryID": "",
|
||||||
|
"AppEvents_ObjectStatus": "",
|
||||||
|
"AppEvents_ObjectStatusColumn": "",
|
||||||
|
"AppEvents_ObjectType": "",
|
||||||
|
"AppEvents_Plugin": "",
|
||||||
|
"AppEvents_Type": "",
|
||||||
|
"BACKEND_API_URL_description": "",
|
||||||
|
"BACKEND_API_URL_name": "",
|
||||||
|
"BackDevDetail_Actions_Ask_Run": "",
|
||||||
|
"BackDevDetail_Actions_Not_Registered": "",
|
||||||
|
"BackDevDetail_Actions_Title_Run": "",
|
||||||
|
"BackDevDetail_Copy_Ask": "",
|
||||||
|
"BackDevDetail_Copy_Title": "",
|
||||||
|
"BackDevDetail_Tools_WOL_error": "",
|
||||||
|
"BackDevDetail_Tools_WOL_okay": "",
|
||||||
|
"BackDevices_Arpscan_disabled": "",
|
||||||
|
"BackDevices_Arpscan_enabled": "",
|
||||||
|
"BackDevices_Backup_CopError": "",
|
||||||
|
"BackDevices_Backup_Failed": "",
|
||||||
|
"BackDevices_Backup_okay": "",
|
||||||
|
"BackDevices_DBTools_DelDevError_a": "",
|
||||||
|
"BackDevices_DBTools_DelDevError_b": "",
|
||||||
|
"BackDevices_DBTools_DelDev_a": "",
|
||||||
|
"BackDevices_DBTools_DelDev_b": "",
|
||||||
|
"BackDevices_DBTools_DelEvents": "",
|
||||||
|
"BackDevices_DBTools_DelEventsError": "",
|
||||||
|
"BackDevices_DBTools_ImportCSV": "",
|
||||||
|
"BackDevices_DBTools_ImportCSVError": "",
|
||||||
|
"BackDevices_DBTools_ImportCSVMissing": "",
|
||||||
|
"BackDevices_DBTools_Purge": "",
|
||||||
|
"BackDevices_DBTools_UpdDev": "",
|
||||||
|
"BackDevices_DBTools_UpdDevError": "",
|
||||||
|
"BackDevices_DBTools_Upgrade": "",
|
||||||
|
"BackDevices_DBTools_UpgradeError": "",
|
||||||
|
"BackDevices_Device_UpdDevError": "",
|
||||||
|
"BackDevices_Restore_CopError": "",
|
||||||
|
"BackDevices_Restore_Failed": "",
|
||||||
|
"BackDevices_Restore_okay": "",
|
||||||
|
"BackDevices_darkmode_disabled": "",
|
||||||
|
"BackDevices_darkmode_enabled": "",
|
||||||
|
"CLEAR_NEW_FLAG_description": "",
|
||||||
|
"CLEAR_NEW_FLAG_name": "",
|
||||||
|
"CustProps_cant_remove": "",
|
||||||
|
"DAYS_TO_KEEP_EVENTS_description": "",
|
||||||
|
"DAYS_TO_KEEP_EVENTS_name": "",
|
||||||
|
"DISCOVER_PLUGINS_description": "",
|
||||||
|
"DISCOVER_PLUGINS_name": "",
|
||||||
|
"DevDetail_Children_Title": "",
|
||||||
|
"DevDetail_Copy_Device_Title": "",
|
||||||
|
"DevDetail_Copy_Device_Tooltip": "",
|
||||||
|
"DevDetail_CustomProperties_Title": "",
|
||||||
|
"DevDetail_CustomProps_reset_info": "",
|
||||||
|
"DevDetail_DisplayFields_Title": "",
|
||||||
|
"DevDetail_EveandAl_AlertAllEvents": "",
|
||||||
|
"DevDetail_EveandAl_AlertDown": "",
|
||||||
|
"DevDetail_EveandAl_Archived": "",
|
||||||
|
"DevDetail_EveandAl_NewDevice": "",
|
||||||
|
"DevDetail_EveandAl_NewDevice_Tooltip": "",
|
||||||
|
"DevDetail_EveandAl_RandomMAC": "",
|
||||||
|
"DevDetail_EveandAl_ScanCycle": "",
|
||||||
|
"DevDetail_EveandAl_ScanCycle_a": "",
|
||||||
|
"DevDetail_EveandAl_ScanCycle_z": "",
|
||||||
|
"DevDetail_EveandAl_Skip": "",
|
||||||
|
"DevDetail_EveandAl_Title": "",
|
||||||
|
"DevDetail_Events_CheckBox": "",
|
||||||
|
"DevDetail_GoToNetworkNode": "",
|
||||||
|
"DevDetail_Icon": "",
|
||||||
|
"DevDetail_Icon_Descr": "",
|
||||||
|
"DevDetail_Loading": "",
|
||||||
|
"DevDetail_MainInfo_Comments": "",
|
||||||
|
"DevDetail_MainInfo_Favorite": "",
|
||||||
|
"DevDetail_MainInfo_Group": "",
|
||||||
|
"DevDetail_MainInfo_Location": "",
|
||||||
|
"DevDetail_MainInfo_Name": "",
|
||||||
|
"DevDetail_MainInfo_Network": "",
|
||||||
|
"DevDetail_MainInfo_Network_Port": "",
|
||||||
|
"DevDetail_MainInfo_Network_Site": "",
|
||||||
|
"DevDetail_MainInfo_Network_Title": "",
|
||||||
|
"DevDetail_MainInfo_Owner": "",
|
||||||
|
"DevDetail_MainInfo_SSID": "",
|
||||||
|
"DevDetail_MainInfo_Title": "",
|
||||||
|
"DevDetail_MainInfo_Type": "",
|
||||||
|
"DevDetail_MainInfo_Vendor": "",
|
||||||
|
"DevDetail_MainInfo_mac": "",
|
||||||
|
"DevDetail_NavToChildNode": "",
|
||||||
|
"DevDetail_Network_Node_hover": "",
|
||||||
|
"DevDetail_Network_Port_hover": "",
|
||||||
|
"DevDetail_Nmap_Scans": "",
|
||||||
|
"DevDetail_Nmap_Scans_desc": "",
|
||||||
|
"DevDetail_Nmap_buttonDefault": "",
|
||||||
|
"DevDetail_Nmap_buttonDefault_text": "",
|
||||||
|
"DevDetail_Nmap_buttonDetail": "",
|
||||||
|
"DevDetail_Nmap_buttonDetail_text": "",
|
||||||
|
"DevDetail_Nmap_buttonFast": "",
|
||||||
|
"DevDetail_Nmap_buttonFast_text": "",
|
||||||
|
"DevDetail_Nmap_buttonSkipDiscovery": "",
|
||||||
|
"DevDetail_Nmap_buttonSkipDiscovery_text": "",
|
||||||
|
"DevDetail_Nmap_resultsLink": "",
|
||||||
|
"DevDetail_Owner_hover": "",
|
||||||
|
"DevDetail_Periodselect_All": "",
|
||||||
|
"DevDetail_Periodselect_LastMonth": "",
|
||||||
|
"DevDetail_Periodselect_LastWeek": "",
|
||||||
|
"DevDetail_Periodselect_LastYear": "",
|
||||||
|
"DevDetail_Periodselect_today": "",
|
||||||
|
"DevDetail_Run_Actions_Title": "",
|
||||||
|
"DevDetail_Run_Actions_Tooltip": "",
|
||||||
|
"DevDetail_SessionInfo_FirstSession": "",
|
||||||
|
"DevDetail_SessionInfo_LastIP": "",
|
||||||
|
"DevDetail_SessionInfo_LastSession": "",
|
||||||
|
"DevDetail_SessionInfo_StaticIP": "",
|
||||||
|
"DevDetail_SessionInfo_Status": "",
|
||||||
|
"DevDetail_SessionInfo_Title": "",
|
||||||
|
"DevDetail_SessionTable_Additionalinfo": "",
|
||||||
|
"DevDetail_SessionTable_Connection": "",
|
||||||
|
"DevDetail_SessionTable_Disconnection": "",
|
||||||
|
"DevDetail_SessionTable_Duration": "",
|
||||||
|
"DevDetail_SessionTable_IP": "",
|
||||||
|
"DevDetail_SessionTable_Order": "",
|
||||||
|
"DevDetail_Shortcut_CurrentStatus": "",
|
||||||
|
"DevDetail_Shortcut_DownAlerts": "",
|
||||||
|
"DevDetail_Shortcut_Presence": "",
|
||||||
|
"DevDetail_Shortcut_Sessions": "",
|
||||||
|
"DevDetail_Tab_Details": "",
|
||||||
|
"DevDetail_Tab_Events": "",
|
||||||
|
"DevDetail_Tab_EventsTableDate": "",
|
||||||
|
"DevDetail_Tab_EventsTableEvent": "",
|
||||||
|
"DevDetail_Tab_EventsTableIP": "",
|
||||||
|
"DevDetail_Tab_EventsTableInfo": "",
|
||||||
|
"DevDetail_Tab_Nmap": "",
|
||||||
|
"DevDetail_Tab_NmapEmpty": "",
|
||||||
|
"DevDetail_Tab_NmapTableExtra": "",
|
||||||
|
"DevDetail_Tab_NmapTableHeader": "",
|
||||||
|
"DevDetail_Tab_NmapTableIndex": "",
|
||||||
|
"DevDetail_Tab_NmapTablePort": "",
|
||||||
|
"DevDetail_Tab_NmapTableService": "",
|
||||||
|
"DevDetail_Tab_NmapTableState": "",
|
||||||
|
"DevDetail_Tab_NmapTableText": "",
|
||||||
|
"DevDetail_Tab_NmapTableTime": "",
|
||||||
|
"DevDetail_Tab_Plugins": "",
|
||||||
|
"DevDetail_Tab_Presence": "",
|
||||||
|
"DevDetail_Tab_Sessions": "",
|
||||||
|
"DevDetail_Tab_Tools": "",
|
||||||
|
"DevDetail_Tab_Tools_Internet_Info_Description": "",
|
||||||
|
"DevDetail_Tab_Tools_Internet_Info_Error": "",
|
||||||
|
"DevDetail_Tab_Tools_Internet_Info_Start": "",
|
||||||
|
"DevDetail_Tab_Tools_Internet_Info_Title": "",
|
||||||
|
"DevDetail_Tab_Tools_Nslookup_Description": "",
|
||||||
|
"DevDetail_Tab_Tools_Nslookup_Error": "",
|
||||||
|
"DevDetail_Tab_Tools_Nslookup_Start": "",
|
||||||
|
"DevDetail_Tab_Tools_Nslookup_Title": "",
|
||||||
|
"DevDetail_Tab_Tools_Speedtest_Description": "",
|
||||||
|
"DevDetail_Tab_Tools_Speedtest_Start": "",
|
||||||
|
"DevDetail_Tab_Tools_Speedtest_Title": "",
|
||||||
|
"DevDetail_Tab_Tools_Traceroute_Description": "",
|
||||||
|
"DevDetail_Tab_Tools_Traceroute_Error": "",
|
||||||
|
"DevDetail_Tab_Tools_Traceroute_Start": "",
|
||||||
|
"DevDetail_Tab_Tools_Traceroute_Title": "",
|
||||||
|
"DevDetail_Tools_WOL": "",
|
||||||
|
"DevDetail_Tools_WOL_noti": "",
|
||||||
|
"DevDetail_Tools_WOL_noti_text": "",
|
||||||
|
"DevDetail_Type_hover": "",
|
||||||
|
"DevDetail_Vendor_hover": "",
|
||||||
|
"DevDetail_WOL_Title": "",
|
||||||
|
"DevDetail_button_AddIcon": "",
|
||||||
|
"DevDetail_button_AddIcon_Help": "",
|
||||||
|
"DevDetail_button_AddIcon_Tooltip": "",
|
||||||
|
"DevDetail_button_Delete": "",
|
||||||
|
"DevDetail_button_DeleteEvents": "",
|
||||||
|
"DevDetail_button_DeleteEvents_Warning": "",
|
||||||
|
"DevDetail_button_Delete_ask": "",
|
||||||
|
"DevDetail_button_OverwriteIcons": "",
|
||||||
|
"DevDetail_button_OverwriteIcons_Tooltip": "",
|
||||||
|
"DevDetail_button_OverwriteIcons_Warning": "",
|
||||||
|
"DevDetail_button_Reset": "",
|
||||||
|
"DevDetail_button_Save": "",
|
||||||
|
"DeviceEdit_ValidMacIp": "",
|
||||||
|
"Device_MultiEdit": "",
|
||||||
|
"Device_MultiEdit_Backup": "",
|
||||||
|
"Device_MultiEdit_Fields": "",
|
||||||
|
"Device_MultiEdit_MassActions": "",
|
||||||
|
"Device_MultiEdit_No_Devices": "",
|
||||||
|
"Device_MultiEdit_Tooltip": "",
|
||||||
|
"Device_NextScan_Imminent": "",
|
||||||
|
"Device_NextScan_In": "",
|
||||||
|
"Device_NoData_Help": "",
|
||||||
|
"Device_NoData_Scanning": "",
|
||||||
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
|
"Device_Save_Failed": "",
|
||||||
|
"Device_Save_Unauthorized": "",
|
||||||
|
"Device_Saved_Success": "",
|
||||||
|
"Device_Saved_Unexpected": "",
|
||||||
|
"Device_Scanning": "",
|
||||||
|
"Device_Searchbox": "",
|
||||||
|
"Device_Shortcut_AllDevices": "",
|
||||||
|
"Device_Shortcut_AllNodes": "",
|
||||||
|
"Device_Shortcut_Archived": "",
|
||||||
|
"Device_Shortcut_Connected": "",
|
||||||
|
"Device_Shortcut_Devices": "",
|
||||||
|
"Device_Shortcut_DownAlerts": "",
|
||||||
|
"Device_Shortcut_DownOnly": "",
|
||||||
|
"Device_Shortcut_Favorites": "",
|
||||||
|
"Device_Shortcut_NewDevices": "",
|
||||||
|
"Device_Shortcut_OnlineChart": "",
|
||||||
|
"Device_Shortcut_Unstable": "",
|
||||||
|
"Device_TableHead_AlertDown": "",
|
||||||
|
"Device_TableHead_Connected_Devices": "",
|
||||||
|
"Device_TableHead_CustomProps": "",
|
||||||
|
"Device_TableHead_FQDN": "",
|
||||||
|
"Device_TableHead_Favorite": "",
|
||||||
|
"Device_TableHead_FirstSession": "",
|
||||||
|
"Device_TableHead_Flapping": "",
|
||||||
|
"Device_TableHead_GUID": "",
|
||||||
|
"Device_TableHead_Group": "",
|
||||||
|
"Device_TableHead_IPv4": "",
|
||||||
|
"Device_TableHead_IPv6": "",
|
||||||
|
"Device_TableHead_Icon": "",
|
||||||
|
"Device_TableHead_LastIP": "",
|
||||||
|
"Device_TableHead_LastIPOrder": "",
|
||||||
|
"Device_TableHead_LastSession": "",
|
||||||
|
"Device_TableHead_Location": "",
|
||||||
|
"Device_TableHead_MAC": "",
|
||||||
|
"Device_TableHead_MAC_full": "",
|
||||||
|
"Device_TableHead_Name": "",
|
||||||
|
"Device_TableHead_NetworkSite": "",
|
||||||
|
"Device_TableHead_Owner": "",
|
||||||
|
"Device_TableHead_ParentRelType": "",
|
||||||
|
"Device_TableHead_Parent_MAC": "",
|
||||||
|
"Device_TableHead_Port": "",
|
||||||
|
"Device_TableHead_PresentLastScan": "",
|
||||||
|
"Device_TableHead_ReqNicsOnline": "",
|
||||||
|
"Device_TableHead_RowID": "",
|
||||||
|
"Device_TableHead_Rowid": "",
|
||||||
|
"Device_TableHead_SSID": "",
|
||||||
|
"Device_TableHead_SourcePlugin": "",
|
||||||
|
"Device_TableHead_Status": "",
|
||||||
|
"Device_TableHead_SyncHubNodeName": "",
|
||||||
|
"Device_TableHead_Type": "",
|
||||||
|
"Device_TableHead_Vendor": "",
|
||||||
|
"Device_TableHead_Vlan": "",
|
||||||
|
"Device_Table_Not_Network_Device": "",
|
||||||
|
"Device_Table_info": "",
|
||||||
|
"Device_Table_nav_next": "",
|
||||||
|
"Device_Table_nav_prev": "",
|
||||||
|
"Device_Tablelenght": "",
|
||||||
|
"Device_Tablelenght_all": "",
|
||||||
|
"Device_Title": "",
|
||||||
|
"Devices_Filters": "",
|
||||||
|
"ENABLE_PLUGINS_description": "",
|
||||||
|
"ENABLE_PLUGINS_name": "",
|
||||||
|
"ENCRYPTION_KEY_description": "",
|
||||||
|
"ENCRYPTION_KEY_name": "",
|
||||||
|
"Email_display_name": "",
|
||||||
|
"Email_icon": "",
|
||||||
|
"Events_Loading": "",
|
||||||
|
"Events_Periodselect_All": "",
|
||||||
|
"Events_Periodselect_LastMonth": "",
|
||||||
|
"Events_Periodselect_LastWeek": "",
|
||||||
|
"Events_Periodselect_LastYear": "",
|
||||||
|
"Events_Periodselect_today": "",
|
||||||
|
"Events_Searchbox": "",
|
||||||
|
"Events_Shortcut_AllEvents": "",
|
||||||
|
"Events_Shortcut_DownAlerts": "",
|
||||||
|
"Events_Shortcut_Events": "",
|
||||||
|
"Events_Shortcut_MissSessions": "",
|
||||||
|
"Events_Shortcut_NewDevices": "",
|
||||||
|
"Events_Shortcut_Sessions": "",
|
||||||
|
"Events_Shortcut_VoidSessions": "",
|
||||||
|
"Events_TableHead_AdditionalInfo": "",
|
||||||
|
"Events_TableHead_Connection": "",
|
||||||
|
"Events_TableHead_Date": "",
|
||||||
|
"Events_TableHead_Device": "",
|
||||||
|
"Events_TableHead_Disconnection": "",
|
||||||
|
"Events_TableHead_Duration": "",
|
||||||
|
"Events_TableHead_DurationOrder": "",
|
||||||
|
"Events_TableHead_EventType": "",
|
||||||
|
"Events_TableHead_IP": "",
|
||||||
|
"Events_TableHead_IPOrder": "",
|
||||||
|
"Events_TableHead_Order": "",
|
||||||
|
"Events_TableHead_Owner": "",
|
||||||
|
"Events_TableHead_PendingAlert": "",
|
||||||
|
"Events_Table_info": "",
|
||||||
|
"Events_Table_nav_next": "",
|
||||||
|
"Events_Table_nav_prev": "",
|
||||||
|
"Events_Tablelenght": "",
|
||||||
|
"Events_Tablelenght_all": "",
|
||||||
|
"Events_Title": "",
|
||||||
|
"FakeMAC_hover": "",
|
||||||
|
"FieldLock_Error": "",
|
||||||
|
"FieldLock_Lock_Tooltip": "",
|
||||||
|
"FieldLock_Locked": "",
|
||||||
|
"FieldLock_SaveBeforeLocking": "",
|
||||||
|
"FieldLock_Source_Label": "",
|
||||||
|
"FieldLock_Unlock_Tooltip": "",
|
||||||
|
"FieldLock_Unlocked": "",
|
||||||
|
"GRAPHQL_PORT_description": "",
|
||||||
|
"GRAPHQL_PORT_name": "",
|
||||||
|
"Gen_Action": "",
|
||||||
|
"Gen_Add": "",
|
||||||
|
"Gen_AddDevice": "",
|
||||||
|
"Gen_Add_All": "",
|
||||||
|
"Gen_All_Devices": "",
|
||||||
|
"Gen_Archived": "",
|
||||||
|
"Gen_AreYouSure": "",
|
||||||
|
"Gen_Backup": "",
|
||||||
|
"Gen_Cancel": "",
|
||||||
|
"Gen_Change": "",
|
||||||
|
"Gen_Copy": "",
|
||||||
|
"Gen_CopyToClipboard": "",
|
||||||
|
"Gen_DataUpdatedUITakesTime": "",
|
||||||
|
"Gen_Delete": "",
|
||||||
|
"Gen_DeleteAll": "",
|
||||||
|
"Gen_Description": "",
|
||||||
|
"Gen_Down": "",
|
||||||
|
"Gen_Error": "",
|
||||||
|
"Gen_Filter": "",
|
||||||
|
"Gen_Flapping": "",
|
||||||
|
"Gen_Generate": "",
|
||||||
|
"Gen_InvalidMac": "",
|
||||||
|
"Gen_Invalid_Value": "",
|
||||||
|
"Gen_LockedDB": "",
|
||||||
|
"Gen_NetworkMask": "",
|
||||||
|
"Gen_New": "",
|
||||||
|
"Gen_Offline": "",
|
||||||
|
"Gen_Okay": "",
|
||||||
|
"Gen_Online": "",
|
||||||
|
"Gen_Purge": "",
|
||||||
|
"Gen_ReadDocs": "",
|
||||||
|
"Gen_Remove_All": "",
|
||||||
|
"Gen_Remove_Last": "",
|
||||||
|
"Gen_Reset": "",
|
||||||
|
"Gen_Restore": "",
|
||||||
|
"Gen_Run": "",
|
||||||
|
"Gen_Save": "",
|
||||||
|
"Gen_Saved": "",
|
||||||
|
"Gen_Search": "",
|
||||||
|
"Gen_Select": "",
|
||||||
|
"Gen_SelectIcon": "",
|
||||||
|
"Gen_SelectToPreview": "",
|
||||||
|
"Gen_Selected_Devices": "",
|
||||||
|
"Gen_Sleeping": "",
|
||||||
|
"Gen_Subnet": "",
|
||||||
|
"Gen_Switch": "",
|
||||||
|
"Gen_Upd": "",
|
||||||
|
"Gen_Upd_Fail": "",
|
||||||
|
"Gen_Update": "",
|
||||||
|
"Gen_Update_Value": "",
|
||||||
|
"Gen_ValidIcon": "",
|
||||||
|
"Gen_Warning": "",
|
||||||
|
"Gen_Work_In_Progress": "",
|
||||||
|
"Gen_create_new_device": "",
|
||||||
|
"Gen_create_new_device_info": "",
|
||||||
|
"General_display_name": "",
|
||||||
|
"General_icon": "",
|
||||||
|
"HRS_TO_KEEP_NEWDEV_description": "",
|
||||||
|
"HRS_TO_KEEP_NEWDEV_name": "",
|
||||||
|
"HRS_TO_KEEP_OFFDEV_description": "",
|
||||||
|
"HRS_TO_KEEP_OFFDEV_name": "",
|
||||||
|
"LOADED_PLUGINS_description": "",
|
||||||
|
"LOADED_PLUGINS_name": "",
|
||||||
|
"LOG_LEVEL_description": "",
|
||||||
|
"LOG_LEVEL_name": "",
|
||||||
|
"Loading": "",
|
||||||
|
"Login_Box": "",
|
||||||
|
"Login_Default_PWD": "",
|
||||||
|
"Login_Info": "",
|
||||||
|
"Login_Psw-box": "",
|
||||||
|
"Login_Psw_alert": "",
|
||||||
|
"Login_Psw_folder": "",
|
||||||
|
"Login_Psw_new": "",
|
||||||
|
"Login_Psw_run": "",
|
||||||
|
"Login_Remember": "",
|
||||||
|
"Login_Remember_small": "",
|
||||||
|
"Login_Submit": "",
|
||||||
|
"Login_Toggle_Alert_headline": "",
|
||||||
|
"Login_Toggle_Info": "",
|
||||||
|
"Login_Toggle_Info_headline": "",
|
||||||
|
"Maint_PurgeLog": "",
|
||||||
|
"Maint_RestartServer": "",
|
||||||
|
"Maint_Restart_Server_noti_text": "",
|
||||||
|
"Maintenance_InitCheck": "",
|
||||||
|
"Maintenance_InitCheck_Checking": "",
|
||||||
|
"Maintenance_InitCheck_QuickSetupGuide": "",
|
||||||
|
"Maintenance_InitCheck_Success": "",
|
||||||
|
"Maintenance_ReCheck": "",
|
||||||
|
"Maintenance_Running_Version": "",
|
||||||
|
"Maintenance_Status": "",
|
||||||
|
"Maintenance_Title": "",
|
||||||
|
"Maintenance_Tool_DownloadConfig": "",
|
||||||
|
"Maintenance_Tool_DownloadConfig_text": "",
|
||||||
|
"Maintenance_Tool_DownloadWorkflows": "",
|
||||||
|
"Maintenance_Tool_DownloadWorkflows_text": "",
|
||||||
|
"Maintenance_Tool_ExportCSV": "",
|
||||||
|
"Maintenance_Tool_ExportCSV_noti": "",
|
||||||
|
"Maintenance_Tool_ExportCSV_noti_text": "",
|
||||||
|
"Maintenance_Tool_ExportCSV_text": "",
|
||||||
|
"Maintenance_Tool_ImportCSV": "",
|
||||||
|
"Maintenance_Tool_ImportCSV_noti": "",
|
||||||
|
"Maintenance_Tool_ImportCSV_noti_text": "",
|
||||||
|
"Maintenance_Tool_ImportCSV_text": "",
|
||||||
|
"Maintenance_Tool_ImportConfig_noti": "",
|
||||||
|
"Maintenance_Tool_ImportPastedCSV": "",
|
||||||
|
"Maintenance_Tool_ImportPastedCSV_noti_text": "",
|
||||||
|
"Maintenance_Tool_ImportPastedCSV_text": "",
|
||||||
|
"Maintenance_Tool_ImportPastedConfig": "",
|
||||||
|
"Maintenance_Tool_ImportPastedConfig_noti_text": "",
|
||||||
|
"Maintenance_Tool_ImportPastedConfig_text": "",
|
||||||
|
"Maintenance_Tool_UnlockFields": "",
|
||||||
|
"Maintenance_Tool_UnlockFields_noti": "",
|
||||||
|
"Maintenance_Tool_UnlockFields_noti_text": "",
|
||||||
|
"Maintenance_Tool_UnlockFields_text": "",
|
||||||
|
"Maintenance_Tool_arpscansw": "",
|
||||||
|
"Maintenance_Tool_arpscansw_noti": "",
|
||||||
|
"Maintenance_Tool_arpscansw_noti_text": "",
|
||||||
|
"Maintenance_Tool_arpscansw_text": "",
|
||||||
|
"Maintenance_Tool_backup": "",
|
||||||
|
"Maintenance_Tool_backup_noti": "",
|
||||||
|
"Maintenance_Tool_backup_noti_text": "",
|
||||||
|
"Maintenance_Tool_backup_text": "",
|
||||||
|
"Maintenance_Tool_check_visible": "",
|
||||||
|
"Maintenance_Tool_clearSourceFields_selected": "",
|
||||||
|
"Maintenance_Tool_clearSourceFields_selected_noti": "",
|
||||||
|
"Maintenance_Tool_clearSourceFields_selected_text": "",
|
||||||
|
"Maintenance_Tool_darkmode": "",
|
||||||
|
"Maintenance_Tool_darkmode_noti": "",
|
||||||
|
"Maintenance_Tool_darkmode_noti_text": "",
|
||||||
|
"Maintenance_Tool_darkmode_text": "",
|
||||||
|
"Maintenance_Tool_del_ActHistory": "",
|
||||||
|
"Maintenance_Tool_del_ActHistory_noti": "",
|
||||||
|
"Maintenance_Tool_del_ActHistory_noti_text": "",
|
||||||
|
"Maintenance_Tool_del_ActHistory_text": "",
|
||||||
|
"Maintenance_Tool_del_alldev": "",
|
||||||
|
"Maintenance_Tool_del_alldev_noti": "",
|
||||||
|
"Maintenance_Tool_del_alldev_noti_text": "",
|
||||||
|
"Maintenance_Tool_del_alldev_text": "",
|
||||||
|
"Maintenance_Tool_del_allevents": "",
|
||||||
|
"Maintenance_Tool_del_allevents30": "",
|
||||||
|
"Maintenance_Tool_del_allevents30_noti": "",
|
||||||
|
"Maintenance_Tool_del_allevents30_noti_text": "",
|
||||||
|
"Maintenance_Tool_del_allevents30_text": "",
|
||||||
|
"Maintenance_Tool_del_allevents_noti": "",
|
||||||
|
"Maintenance_Tool_del_allevents_noti_text": "",
|
||||||
|
"Maintenance_Tool_del_allevents_text": "",
|
||||||
|
"Maintenance_Tool_del_empty_macs": "",
|
||||||
|
"Maintenance_Tool_del_empty_macs_noti": "",
|
||||||
|
"Maintenance_Tool_del_empty_macs_noti_text": "",
|
||||||
|
"Maintenance_Tool_del_empty_macs_text": "",
|
||||||
|
"Maintenance_Tool_del_selecteddev": "",
|
||||||
|
"Maintenance_Tool_del_selecteddev_text": "",
|
||||||
|
"Maintenance_Tool_del_unknowndev": "",
|
||||||
|
"Maintenance_Tool_del_unknowndev_noti": "",
|
||||||
|
"Maintenance_Tool_del_unknowndev_noti_text": "",
|
||||||
|
"Maintenance_Tool_del_unknowndev_text": "",
|
||||||
|
"Maintenance_Tool_del_unlockFields_selecteddev_text": "",
|
||||||
|
"Maintenance_Tool_displayed_columns_text": "",
|
||||||
|
"Maintenance_Tool_drag_me": "",
|
||||||
|
"Maintenance_Tool_order_columns_text": "",
|
||||||
|
"Maintenance_Tool_purgebackup": "",
|
||||||
|
"Maintenance_Tool_purgebackup_noti": "",
|
||||||
|
"Maintenance_Tool_purgebackup_noti_text": "",
|
||||||
|
"Maintenance_Tool_purgebackup_text": "",
|
||||||
|
"Maintenance_Tool_restore": "",
|
||||||
|
"Maintenance_Tool_restore_noti": "",
|
||||||
|
"Maintenance_Tool_restore_noti_text": "",
|
||||||
|
"Maintenance_Tool_restore_text": "",
|
||||||
|
"Maintenance_Tool_unlockFields_selecteddev": "",
|
||||||
|
"Maintenance_Tool_unlockFields_selecteddev_noti": "",
|
||||||
|
"Maintenance_Tool_upgrade_database_noti": "",
|
||||||
|
"Maintenance_Tool_upgrade_database_noti_text": "",
|
||||||
|
"Maintenance_Tool_upgrade_database_text": "",
|
||||||
|
"Maintenance_Tools_Tab_BackupRestore": "",
|
||||||
|
"Maintenance_Tools_Tab_Logging": "",
|
||||||
|
"Maintenance_Tools_Tab_Settings": "",
|
||||||
|
"Maintenance_Tools_Tab_Tools": "",
|
||||||
|
"Maintenance_Tools_Tab_UISettings": "",
|
||||||
|
"Maintenance_arp_status": "",
|
||||||
|
"Maintenance_arp_status_off": "",
|
||||||
|
"Maintenance_arp_status_on": "",
|
||||||
|
"Maintenance_built_on": "",
|
||||||
|
"Maintenance_current_version": "",
|
||||||
|
"Maintenance_database_backup": "",
|
||||||
|
"Maintenance_database_backup_found": "",
|
||||||
|
"Maintenance_database_backup_total": "",
|
||||||
|
"Maintenance_database_lastmod": "",
|
||||||
|
"Maintenance_database_path": "",
|
||||||
|
"Maintenance_database_rows": "",
|
||||||
|
"Maintenance_database_size": "",
|
||||||
|
"Maintenance_lang_selector_apply": "",
|
||||||
|
"Maintenance_lang_selector_empty": "",
|
||||||
|
"Maintenance_lang_selector_lable": "",
|
||||||
|
"Maintenance_lang_selector_text": "",
|
||||||
|
"Maintenance_new_version": "",
|
||||||
|
"Maintenance_themeselector_apply": "",
|
||||||
|
"Maintenance_themeselector_empty": "",
|
||||||
|
"Maintenance_themeselector_lable": "",
|
||||||
|
"Maintenance_themeselector_text": "",
|
||||||
|
"Maintenance_version": "",
|
||||||
|
"NETWORK_DEVICE_TYPES_description": "",
|
||||||
|
"NETWORK_DEVICE_TYPES_name": "",
|
||||||
|
"Navigation_About": "",
|
||||||
|
"Navigation_AppEvents": "",
|
||||||
|
"Navigation_Devices": "",
|
||||||
|
"Navigation_Donations": "",
|
||||||
|
"Navigation_Events": "",
|
||||||
|
"Navigation_Integrations": "",
|
||||||
|
"Navigation_Maintenance": "",
|
||||||
|
"Navigation_Monitoring": "",
|
||||||
|
"Navigation_Network": "",
|
||||||
|
"Navigation_Notifications": "",
|
||||||
|
"Navigation_Plugins": "",
|
||||||
|
"Navigation_Presence": "",
|
||||||
|
"Navigation_Report": "",
|
||||||
|
"Navigation_Settings": "",
|
||||||
|
"Navigation_SystemInfo": "",
|
||||||
|
"Navigation_Workflows": "",
|
||||||
|
"Network_Assign": "",
|
||||||
|
"Network_Cant_Assign": "",
|
||||||
|
"Network_Cant_Assign_No_Node_Selected": "",
|
||||||
|
"Network_Configuration_Error": "",
|
||||||
|
"Network_Connected": "",
|
||||||
|
"Network_Devices": "",
|
||||||
|
"Network_ManageAdd": "",
|
||||||
|
"Network_ManageAdd_Name": "",
|
||||||
|
"Network_ManageAdd_Name_text": "",
|
||||||
|
"Network_ManageAdd_Port": "",
|
||||||
|
"Network_ManageAdd_Port_text": "",
|
||||||
|
"Network_ManageAdd_Submit": "",
|
||||||
|
"Network_ManageAdd_Type": "",
|
||||||
|
"Network_ManageAdd_Type_text": "",
|
||||||
|
"Network_ManageAssign": "",
|
||||||
|
"Network_ManageDel": "",
|
||||||
|
"Network_ManageDel_Name": "",
|
||||||
|
"Network_ManageDel_Name_text": "",
|
||||||
|
"Network_ManageDel_Submit": "",
|
||||||
|
"Network_ManageDevices": "",
|
||||||
|
"Network_ManageEdit": "",
|
||||||
|
"Network_ManageEdit_ID": "",
|
||||||
|
"Network_ManageEdit_ID_text": "",
|
||||||
|
"Network_ManageEdit_Name": "",
|
||||||
|
"Network_ManageEdit_Name_text": "",
|
||||||
|
"Network_ManageEdit_Port": "",
|
||||||
|
"Network_ManageEdit_Port_text": "",
|
||||||
|
"Network_ManageEdit_Submit": "",
|
||||||
|
"Network_ManageEdit_Type": "",
|
||||||
|
"Network_ManageEdit_Type_text": "",
|
||||||
|
"Network_ManageLeaf": "",
|
||||||
|
"Network_ManageUnassign": "",
|
||||||
|
"Network_NoAssignedDevices": "",
|
||||||
|
"Network_NoDevices": "",
|
||||||
|
"Network_Node": "",
|
||||||
|
"Network_Node_Name": "",
|
||||||
|
"Network_Parent": "",
|
||||||
|
"Network_Root": "",
|
||||||
|
"Network_Root_Not_Configured": "",
|
||||||
|
"Network_Root_Unconfigurable": "",
|
||||||
|
"Network_ShowArchived": "",
|
||||||
|
"Network_ShowOffline": "",
|
||||||
|
"Network_Table_Hostname": "",
|
||||||
|
"Network_Table_IP": "",
|
||||||
|
"Network_Table_State": "",
|
||||||
|
"Network_Title": "",
|
||||||
|
"Network_UnassignedDevices": "",
|
||||||
|
"Notifications_All": "",
|
||||||
|
"Notifications_Mark_All_Read": "",
|
||||||
|
"PIALERT_WEB_PASSWORD_description": "",
|
||||||
|
"PIALERT_WEB_PASSWORD_name": "",
|
||||||
|
"PIALERT_WEB_PROTECTION_description": "",
|
||||||
|
"PIALERT_WEB_PROTECTION_name": "",
|
||||||
|
"PLUGINS_KEEP_HIST_description": "",
|
||||||
|
"PLUGINS_KEEP_HIST_name": "",
|
||||||
|
"PRAGMA_JOURNAL_SIZE_LIMIT_description": "",
|
||||||
|
"PRAGMA_JOURNAL_SIZE_LIMIT_name": "",
|
||||||
|
"Plugins_DeleteAll": "",
|
||||||
|
"Plugins_Filters_Mac": "",
|
||||||
|
"Plugins_History": "",
|
||||||
|
"Plugins_Obj_DeleteListed": "",
|
||||||
|
"Plugins_Objects": "",
|
||||||
|
"Plugins_Out_of": "",
|
||||||
|
"Plugins_Unprocessed_Events": "",
|
||||||
|
"Plugins_no_control": "",
|
||||||
|
"Presence_CalHead_day": "",
|
||||||
|
"Presence_CalHead_lang": "",
|
||||||
|
"Presence_CalHead_month": "",
|
||||||
|
"Presence_CalHead_quarter": "",
|
||||||
|
"Presence_CalHead_week": "",
|
||||||
|
"Presence_CalHead_year": "",
|
||||||
|
"Presence_CallHead_Devices": "",
|
||||||
|
"Presence_Key_OnlineNow": "",
|
||||||
|
"Presence_Key_OnlineNow_desc": "",
|
||||||
|
"Presence_Key_OnlinePast": "",
|
||||||
|
"Presence_Key_OnlinePastMiss": "",
|
||||||
|
"Presence_Key_OnlinePastMiss_desc": "",
|
||||||
|
"Presence_Key_OnlinePast_desc": "",
|
||||||
|
"Presence_Loading": "",
|
||||||
|
"Presence_Shortcut_AllDevices": "",
|
||||||
|
"Presence_Shortcut_Archived": "",
|
||||||
|
"Presence_Shortcut_Connected": "",
|
||||||
|
"Presence_Shortcut_Devices": "",
|
||||||
|
"Presence_Shortcut_DownAlerts": "",
|
||||||
|
"Presence_Shortcut_Favorites": "",
|
||||||
|
"Presence_Shortcut_NewDevices": "",
|
||||||
|
"Presence_Title": "",
|
||||||
|
"REFRESH_FQDN_description": "",
|
||||||
|
"REFRESH_FQDN_name": "",
|
||||||
|
"REPORT_DASHBOARD_URL_description": "",
|
||||||
|
"REPORT_DASHBOARD_URL_name": "",
|
||||||
|
"REPORT_ERROR": "",
|
||||||
|
"REPORT_MAIL_description": "",
|
||||||
|
"REPORT_MAIL_name": "",
|
||||||
|
"REPORT_TITLE": "",
|
||||||
|
"RandomMAC_hover": "",
|
||||||
|
"Reports_Sent_Log": "",
|
||||||
|
"SCAN_SUBNETS_description": "",
|
||||||
|
"SCAN_SUBNETS_name": "",
|
||||||
|
"SYSTEM_TITLE": "",
|
||||||
|
"Setting_Override": "",
|
||||||
|
"Setting_Override_Description": "",
|
||||||
|
"Settings_Metadata_Toggle": "",
|
||||||
|
"Settings_Show_Description": "",
|
||||||
|
"Settings_device_Scanners_desync": "",
|
||||||
|
"Settings_device_Scanners_desync_popup": "",
|
||||||
|
"Speedtest_Results": "",
|
||||||
|
"Systeminfo_AvailableIps": "",
|
||||||
|
"Systeminfo_CPU": "",
|
||||||
|
"Systeminfo_CPU_Cores": "",
|
||||||
|
"Systeminfo_CPU_Name": "",
|
||||||
|
"Systeminfo_CPU_Speed": "",
|
||||||
|
"Systeminfo_CPU_Temp": "",
|
||||||
|
"Systeminfo_CPU_Vendor": "",
|
||||||
|
"Systeminfo_Client_Resolution": "",
|
||||||
|
"Systeminfo_Client_User_Agent": "",
|
||||||
|
"Systeminfo_General": "",
|
||||||
|
"Systeminfo_General_Date": "",
|
||||||
|
"Systeminfo_General_Date2": "",
|
||||||
|
"Systeminfo_General_Full_Date": "",
|
||||||
|
"Systeminfo_General_TimeZone": "",
|
||||||
|
"Systeminfo_Memory": "",
|
||||||
|
"Systeminfo_Memory_Total_Memory": "",
|
||||||
|
"Systeminfo_Memory_Usage": "",
|
||||||
|
"Systeminfo_Memory_Usage_Percent": "",
|
||||||
|
"Systeminfo_Motherboard": "",
|
||||||
|
"Systeminfo_Motherboard_BIOS": "",
|
||||||
|
"Systeminfo_Motherboard_BIOS_Date": "",
|
||||||
|
"Systeminfo_Motherboard_BIOS_Vendor": "",
|
||||||
|
"Systeminfo_Motherboard_Manufactured": "",
|
||||||
|
"Systeminfo_Motherboard_Name": "",
|
||||||
|
"Systeminfo_Motherboard_Revision": "",
|
||||||
|
"Systeminfo_Network": "",
|
||||||
|
"Systeminfo_Network_Accept_Encoding": "",
|
||||||
|
"Systeminfo_Network_Accept_Language": "",
|
||||||
|
"Systeminfo_Network_Connection_Port": "",
|
||||||
|
"Systeminfo_Network_HTTP_Host": "",
|
||||||
|
"Systeminfo_Network_HTTP_Referer": "",
|
||||||
|
"Systeminfo_Network_HTTP_Referer_String": "",
|
||||||
|
"Systeminfo_Network_Hardware": "",
|
||||||
|
"Systeminfo_Network_Hardware_Interface_Mask": "",
|
||||||
|
"Systeminfo_Network_Hardware_Interface_Name": "",
|
||||||
|
"Systeminfo_Network_Hardware_Interface_RX": "",
|
||||||
|
"Systeminfo_Network_Hardware_Interface_TX": "",
|
||||||
|
"Systeminfo_Network_IP": "",
|
||||||
|
"Systeminfo_Network_IP_Connection": "",
|
||||||
|
"Systeminfo_Network_IP_Server": "",
|
||||||
|
"Systeminfo_Network_MIME": "",
|
||||||
|
"Systeminfo_Network_Request_Method": "",
|
||||||
|
"Systeminfo_Network_Request_Time": "",
|
||||||
|
"Systeminfo_Network_Request_URI": "",
|
||||||
|
"Systeminfo_Network_Secure_Connection": "",
|
||||||
|
"Systeminfo_Network_Secure_Connection_String": "",
|
||||||
|
"Systeminfo_Network_Server_Name": "",
|
||||||
|
"Systeminfo_Network_Server_Name_String": "",
|
||||||
|
"Systeminfo_Network_Server_Query": "",
|
||||||
|
"Systeminfo_Network_Server_Query_String": "",
|
||||||
|
"Systeminfo_Network_Server_Version": "",
|
||||||
|
"Systeminfo_Services": "",
|
||||||
|
"Systeminfo_Services_Description": "",
|
||||||
|
"Systeminfo_Services_Name": "",
|
||||||
|
"Systeminfo_Storage": "",
|
||||||
|
"Systeminfo_Storage_Device": "",
|
||||||
|
"Systeminfo_Storage_Mount": "",
|
||||||
|
"Systeminfo_Storage_Size": "",
|
||||||
|
"Systeminfo_Storage_Type": "",
|
||||||
|
"Systeminfo_Storage_Usage": "",
|
||||||
|
"Systeminfo_Storage_Usage_Free": "",
|
||||||
|
"Systeminfo_Storage_Usage_Mount": "",
|
||||||
|
"Systeminfo_Storage_Usage_Total": "",
|
||||||
|
"Systeminfo_Storage_Usage_Used": "",
|
||||||
|
"Systeminfo_System": "",
|
||||||
|
"Systeminfo_System_AVG": "",
|
||||||
|
"Systeminfo_System_Architecture": "",
|
||||||
|
"Systeminfo_System_Kernel": "",
|
||||||
|
"Systeminfo_System_OSVersion": "",
|
||||||
|
"Systeminfo_System_Running_Processes": "",
|
||||||
|
"Systeminfo_System_System": "",
|
||||||
|
"Systeminfo_System_Uname": "",
|
||||||
|
"Systeminfo_System_Uptime": "",
|
||||||
|
"Systeminfo_This_Client": "",
|
||||||
|
"Systeminfo_USB_Devices": "",
|
||||||
|
"TICKER_MIGRATE_TO_NETALERTX": "",
|
||||||
|
"TIMEZONE_description": "",
|
||||||
|
"TIMEZONE_name": "",
|
||||||
|
"UI_DEV_SECTIONS_description": "",
|
||||||
|
"UI_DEV_SECTIONS_name": "",
|
||||||
|
"UI_ICONS_description": "",
|
||||||
|
"UI_ICONS_name": "",
|
||||||
|
"UI_LANG_description": "",
|
||||||
|
"UI_LANG_name": "",
|
||||||
|
"UI_MY_DEVICES_description": "",
|
||||||
|
"UI_MY_DEVICES_name": "",
|
||||||
|
"UI_NOT_RANDOM_MAC_description": "",
|
||||||
|
"UI_NOT_RANDOM_MAC_name": "",
|
||||||
|
"UI_PRESENCE_description": "",
|
||||||
|
"UI_PRESENCE_name": "",
|
||||||
|
"UI_REFRESH_description": "",
|
||||||
|
"UI_REFRESH_name": "",
|
||||||
|
"VERSION_description": "",
|
||||||
|
"VERSION_name": "",
|
||||||
|
"WF_Action_Add": "",
|
||||||
|
"WF_Action_field": "",
|
||||||
|
"WF_Action_type": "",
|
||||||
|
"WF_Action_value": "",
|
||||||
|
"WF_Actions": "",
|
||||||
|
"WF_Add": "",
|
||||||
|
"WF_Add_Condition": "",
|
||||||
|
"WF_Add_Group": "",
|
||||||
|
"WF_Condition_field": "",
|
||||||
|
"WF_Condition_operator": "",
|
||||||
|
"WF_Condition_value": "",
|
||||||
|
"WF_Conditions": "",
|
||||||
|
"WF_Conditions_logic_rules": "",
|
||||||
|
"WF_Duplicate": "",
|
||||||
|
"WF_Enabled": "",
|
||||||
|
"WF_Export": "",
|
||||||
|
"WF_Export_Copy": "",
|
||||||
|
"WF_Import": "",
|
||||||
|
"WF_Import_Copy": "",
|
||||||
|
"WF_Name": "",
|
||||||
|
"WF_Remove": "",
|
||||||
|
"WF_Remove_Copy": "",
|
||||||
|
"WF_Save": "",
|
||||||
|
"WF_Trigger": "",
|
||||||
|
"WF_Trigger_event_type": "",
|
||||||
|
"WF_Trigger_type": "",
|
||||||
|
"add_icon_event_tooltip": "",
|
||||||
|
"add_option_event_tooltip": "",
|
||||||
|
"copy_icons_event_tooltip": "",
|
||||||
|
"devices_old": "",
|
||||||
|
"general_event_description": "",
|
||||||
|
"general_event_title": "",
|
||||||
|
"go_to_device_event_tooltip": "",
|
||||||
|
"go_to_node_event_tooltip": "",
|
||||||
|
"new_version_available": "",
|
||||||
|
"report_guid": "",
|
||||||
|
"report_guid_missing": "",
|
||||||
|
"report_select_format": "",
|
||||||
|
"report_time": "",
|
||||||
|
"run_event_tooltip": "",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
|
"settings_core_icon": "",
|
||||||
|
"settings_core_label": "",
|
||||||
|
"settings_device_scanners": "",
|
||||||
|
"settings_device_scanners_icon": "",
|
||||||
|
"settings_device_scanners_info": "",
|
||||||
|
"settings_device_scanners_label": "",
|
||||||
|
"settings_enabled": "",
|
||||||
|
"settings_enabled_icon": "",
|
||||||
|
"settings_expand_all": "",
|
||||||
|
"settings_imported": "",
|
||||||
|
"settings_imported_label": "",
|
||||||
|
"settings_missing": "",
|
||||||
|
"settings_missing_block": "",
|
||||||
|
"settings_old": "",
|
||||||
|
"settings_other_scanners": "",
|
||||||
|
"settings_other_scanners_icon": "",
|
||||||
|
"settings_other_scanners_label": "",
|
||||||
|
"settings_publishers": "",
|
||||||
|
"settings_publishers_icon": "",
|
||||||
|
"settings_publishers_info": "",
|
||||||
|
"settings_publishers_label": "",
|
||||||
|
"settings_readonly": "",
|
||||||
|
"settings_saved": "",
|
||||||
|
"settings_system_icon": "",
|
||||||
|
"settings_system_label": "",
|
||||||
|
"settings_update_item_warning": "",
|
||||||
|
"test_event_tooltip": ""
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"API_CUSTOM_SQL_description": "Puoi specificare una query SQL personalizzata che genererà un file JSON e quindi lo esporrà tramite l'<a href=\"/php/server/query_json.php?file=table_custom_endpoint.json\" target=\"_blank\"><code>table_custom_endpoint.json</code>endpoint del file</a>.",
|
"API_CUSTOM_SQL_description": "Puoi specificare una query SQL personalizzata che genererà un file JSON e quindi lo esporrà tramite <a href=\"/php/server/query_json.php?file=table_custom_endpoint.json\" target=\"_blank\"><code>table_custom_endpoint.json</code> endpoint del file</a>.",
|
||||||
"API_CUSTOM_SQL_name": "Endpoint personalizzato",
|
"API_CUSTOM_SQL_name": "Endpoint personalizzato",
|
||||||
"API_TOKEN_description": "Token API per comunicazioni sicure. Generane uno o inserisci un valore qualsiasi. Viene inviato nell'intestazione della richiesta e utilizzato nel plugin <code>SYNC</code>, nel server GraphQL e in altri endpoint API. Puoi utilizzare gli endpoint API per creare integrazioni personalizzate come descritto nella <a href=\"https://docs.netalertx.com/API\" target=\"_blank\">documentazione API</a>.",
|
"API_TOKEN_description": "Token API per comunicazioni sicure. Generane uno o inserisci un valore qualsiasi. Viene inviato nell'intestazione della richiesta e utilizzato nel plugin <code>SYNC</code>, nel server GraphQL e in altri endpoint API. Puoi utilizzare gli endpoint API per creare integrazioni personalizzate come descritto nella <a href=\"https://docs.netalertx.com/API\" target=\"_blank\">documentazione API</a>.",
|
||||||
"API_TOKEN_name": "Token API",
|
"API_TOKEN_name": "Token API",
|
||||||
@@ -203,11 +203,12 @@
|
|||||||
"Device_MultiEdit_MassActions": "Azioni di massa:",
|
"Device_MultiEdit_MassActions": "Azioni di massa:",
|
||||||
"Device_MultiEdit_No_Devices": "Nessun dispositivo selezionato.",
|
"Device_MultiEdit_No_Devices": "Nessun dispositivo selezionato.",
|
||||||
"Device_MultiEdit_Tooltip": "Attento. Facendo clic verrà applicato il valore sulla sinistra a tutti i dispositivi selezionati sopra.",
|
"Device_MultiEdit_Tooltip": "Attento. Facendo clic verrà applicato il valore sulla sinistra a tutti i dispositivi selezionati sopra.",
|
||||||
"Device_NextScan_Imminent": "imminente",
|
"Device_NextScan_Imminent": "Imminente...",
|
||||||
"Device_NextScan_In": "Prossima scansione in ",
|
"Device_NextScan_In": "Prossima scansione tra circa ",
|
||||||
"Device_NoData_Help": "Se i dispositivi non vengono visualizzati dopo la scansione, controlla l'impostazione SCAN_SUBNETS e la <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">documentazione</a>.",
|
"Device_NoData_Help": "Se i dispositivi non vengono visualizzati dopo la scansione, controlla l'impostazione SCAN_SUBNETS e la <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">documentazione</a>.",
|
||||||
"Device_NoData_Scanning": "In attesa della prima scansione: potrebbero volerci diversi minuti dopo la configurazione iniziale.",
|
"Device_NoData_Scanning": "In attesa della prima scansione: potrebbero volerci diversi minuti dopo la configurazione iniziale.",
|
||||||
"Device_NoData_Title": "Ancora nessun dispositivo trovato",
|
"Device_NoData_Title": "Ancora nessun dispositivo trovato",
|
||||||
|
"Device_NoMatch_Title": "Nessun dispositivo corrisponde al filtro attuale",
|
||||||
"Device_Save_Failed": "Impossibile salvare il dispositivo",
|
"Device_Save_Failed": "Impossibile salvare il dispositivo",
|
||||||
"Device_Save_Unauthorized": "Non autorizzato: token API non valido",
|
"Device_Save_Unauthorized": "Non autorizzato: token API non valido",
|
||||||
"Device_Saved_Success": "Dispositivo salvato correttamente",
|
"Device_Saved_Success": "Dispositivo salvato correttamente",
|
||||||
|
|||||||
@@ -203,11 +203,12 @@
|
|||||||
"Device_MultiEdit_MassActions": "大量のアクション:",
|
"Device_MultiEdit_MassActions": "大量のアクション:",
|
||||||
"Device_MultiEdit_No_Devices": "デバイスが選択されていません。",
|
"Device_MultiEdit_No_Devices": "デバイスが選択されていません。",
|
||||||
"Device_MultiEdit_Tooltip": "注意。これをクリックすると、左側の値が上記で選択したすべてのデバイスに適用されます。",
|
"Device_MultiEdit_Tooltip": "注意。これをクリックすると、左側の値が上記で選択したすべてのデバイスに適用されます。",
|
||||||
"Device_NextScan_Imminent": "まもなく",
|
"Device_NextScan_Imminent": "まもなく...",
|
||||||
"Device_NextScan_In": "次のスキャン ",
|
"Device_NextScan_In": "次のスキャンまでおよそ ",
|
||||||
"Device_NoData_Help": "スキャン後にデバイスが表示されない場合は、SCAN_SUBNETS設定と <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">ドキュメント</a> を確認してください。",
|
"Device_NoData_Help": "スキャン後にデバイスが表示されない場合は、SCAN_SUBNETS設定と <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">ドキュメント</a> を確認してください。",
|
||||||
"Device_NoData_Scanning": "最初のスキャンを待機中 - 初期設定後、数分かかる場合があります。",
|
"Device_NoData_Scanning": "最初のスキャンを待機中 - 初期設定後、数分かかる場合があります。",
|
||||||
"Device_NoData_Title": "デバイスが見つかりません",
|
"Device_NoData_Title": "デバイスが見つかりません",
|
||||||
|
"Device_NoMatch_Title": "このフィルタ条件に一致するデバイスはありません",
|
||||||
"Device_Save_Failed": "デバイスの保存に失敗しました",
|
"Device_Save_Failed": "デバイスの保存に失敗しました",
|
||||||
"Device_Save_Unauthorized": "許可されていない - 無効なAPIトークン",
|
"Device_Save_Unauthorized": "許可されていない - 無効なAPIトークン",
|
||||||
"Device_Saved_Success": "デバイスが正常に保存されました",
|
"Device_Saved_Success": "デバイスが正常に保存されました",
|
||||||
@@ -434,7 +435,7 @@
|
|||||||
"Maintenance_Tool_arpscansw": "arpスキャンの切り替え(オン/オフ)",
|
"Maintenance_Tool_arpscansw": "arpスキャンの切り替え(オン/オフ)",
|
||||||
"Maintenance_Tool_arpscansw_noti": "arpスキャンをオンまたはオフにする",
|
"Maintenance_Tool_arpscansw_noti": "arpスキャンをオンまたはオフにする",
|
||||||
"Maintenance_Tool_arpscansw_noti_text": "スキャンをオフにした場合、再度有効化されるまでオフのままとなります。",
|
"Maintenance_Tool_arpscansw_noti_text": "スキャンをオフにした場合、再度有効化されるまでオフのままとなります。",
|
||||||
"Maintenance_Tool_arpscansw_text": "ARPスキャンの有効化または無効化。スキャンを無効化した場合、再度有効化されるまで無効状態が維持されます。アクティブなスキャンはキャンセルされません。",
|
"Maintenance_Tool_arpscansw_text": "arpスキャンの有効化または無効化。スキャンを無効化した場合、再度有効化されるまで無効状態が維持されます。アクティブなスキャンはキャンセルされません。",
|
||||||
"Maintenance_Tool_backup": "DBバックアップ",
|
"Maintenance_Tool_backup": "DBバックアップ",
|
||||||
"Maintenance_Tool_backup_noti": "DBバックアップ",
|
"Maintenance_Tool_backup_noti": "DBバックアップ",
|
||||||
"Maintenance_Tool_backup_noti_text": "データベースのバックアップを実行してもよろしいですか? 現在スキャンが実行されていないことを確認してください。",
|
"Maintenance_Tool_backup_noti_text": "データベースのバックアップを実行してもよろしいですか? 現在スキャンが実行されていないことを確認してください。",
|
||||||
@@ -545,7 +546,7 @@
|
|||||||
"Network_ManageAdd_Name": "デバイス名",
|
"Network_ManageAdd_Name": "デバイス名",
|
||||||
"Network_ManageAdd_Name_text": "特殊文字を含まない名前",
|
"Network_ManageAdd_Name_text": "特殊文字を含まない名前",
|
||||||
"Network_ManageAdd_Port": "ポート数",
|
"Network_ManageAdd_Port": "ポート数",
|
||||||
"Network_ManageAdd_Port_text": "Wi-FiおよびPLCの場合は空欄にしてください",
|
"Network_ManageAdd_Port_text": "wifiおよびplcの場合は空欄にしてください",
|
||||||
"Network_ManageAdd_Submit": "デバイス追加",
|
"Network_ManageAdd_Submit": "デバイス追加",
|
||||||
"Network_ManageAdd_Type": "デバイス種別",
|
"Network_ManageAdd_Type": "デバイス種別",
|
||||||
"Network_ManageAdd_Type_text": "-- 種別選択 --",
|
"Network_ManageAdd_Type_text": "-- 種別選択 --",
|
||||||
@@ -561,7 +562,7 @@
|
|||||||
"Network_ManageEdit_Name": "新規デバイス名",
|
"Network_ManageEdit_Name": "新規デバイス名",
|
||||||
"Network_ManageEdit_Name_text": "特殊文字を含まない名前",
|
"Network_ManageEdit_Name_text": "特殊文字を含まない名前",
|
||||||
"Network_ManageEdit_Port": " 新規ポート数",
|
"Network_ManageEdit_Port": " 新規ポート数",
|
||||||
"Network_ManageEdit_Port_text": "Wi-FiおよびPLCの場合は空欄にしてください",
|
"Network_ManageEdit_Port_text": "wifiおよびplcの場合は空欄にしてください",
|
||||||
"Network_ManageEdit_Submit": "変更を保存",
|
"Network_ManageEdit_Submit": "変更を保存",
|
||||||
"Network_ManageEdit_Type": "新規デバイス種別",
|
"Network_ManageEdit_Type": "新規デバイス種別",
|
||||||
"Network_ManageEdit_Type_text": "-- 種別選択 --",
|
"Network_ManageEdit_Type_text": "-- 種別選択 --",
|
||||||
@@ -771,7 +772,7 @@
|
|||||||
"go_to_device_event_tooltip": "デバイスに移動",
|
"go_to_device_event_tooltip": "デバイスに移動",
|
||||||
"go_to_node_event_tooltip": "指定されたノードのネットワークページに移動する",
|
"go_to_node_event_tooltip": "指定されたノードのネットワークページに移動する",
|
||||||
"new_version_available": "新しいバージョンが利用可能です。",
|
"new_version_available": "新しいバージョンが利用可能です。",
|
||||||
"report_guid": "通知GUID:",
|
"report_guid": "通知guid:",
|
||||||
"report_guid_missing": "リンクされた通知が見つかりません。送信された通知が利用可能になるまで、わずかな遅延が生じます。数秒後にページとキャッシュを更新してください。また、<code>DBCLNP_NOTIFI_HIST</code> 設定で指定されているメンテナンス中に、選択した通知が削除された可能性もあります。<br/> <br/>代わりに最新の通知が表示されます。欠落している通知のGUIDは以下の通りです:",
|
"report_guid_missing": "リンクされた通知が見つかりません。送信された通知が利用可能になるまで、わずかな遅延が生じます。数秒後にページとキャッシュを更新してください。また、<code>DBCLNP_NOTIFI_HIST</code> 設定で指定されているメンテナンス中に、選択した通知が削除された可能性もあります。<br/> <br/>代わりに最新の通知が表示されます。欠落している通知のGUIDは以下の通りです:",
|
||||||
"report_select_format": "フォーマット選択:",
|
"report_select_format": "フォーマット選択:",
|
||||||
"report_time": "通知時刻:",
|
"report_time": "通知時刻:",
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
// ###################################
|
// ###################################
|
||||||
// ## Languages
|
// ## Languages
|
||||||
|
// ## Look-up here: http://www.lingoes.net/en/translator/langcode.htm
|
||||||
// ###################################
|
// ###################################
|
||||||
|
|
||||||
$defaultLang = "en_us";
|
$defaultLang = "en_us";
|
||||||
|
|
||||||
// Load the canonical language list from languages.json — do not hardcode here.
|
// Load the canonical language list from languages.json — do not hardcode here.
|
||||||
$_langJsonPath = dirname(__FILE__) . '/languages.json';
|
$_langJsonPath = dirname(__FILE__) . '/language_definitions/languages.json';
|
||||||
$_langJson = json_decode(file_get_contents($_langJsonPath), true);
|
$_langJson = json_decode(file_get_contents($_langJsonPath), true);
|
||||||
$allLanguages = array_column($_langJson['languages'], 'code');
|
$allLanguages = array_column($_langJson['languages'], 'code');
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ $pia_lang_selected = isset($_langMatch[1]) ? strtolower($_langMatch[1]) : $defau
|
|||||||
$result = $db->query("SELECT * FROM Plugins_Language_Strings");
|
$result = $db->query("SELECT * FROM Plugins_Language_Strings");
|
||||||
$strings = array();
|
$strings = array();
|
||||||
while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
|
while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
|
||||||
$strings[$row['String_Key']] = $row['String_Value'];
|
$strings[$row['stringKey']] = $row['stringValue'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
{ "code": "en_us", "display": "English (en_us)" },
|
{ "code": "en_us", "display": "English (en_us)" },
|
||||||
{ "code": "es_es", "display": "Spanish (es_es)" },
|
{ "code": "es_es", "display": "Spanish (es_es)" },
|
||||||
{ "code": "fa_fa", "display": "Farsi (fa_fa)" },
|
{ "code": "fa_fa", "display": "Farsi (fa_fa)" },
|
||||||
|
{ "code": "id_id", "display": "Indonesian (id_id)" },
|
||||||
{ "code": "fr_fr", "display": "French (fr_fr)" },
|
{ "code": "fr_fr", "display": "French (fr_fr)" },
|
||||||
{ "code": "it_it", "display": "Italian (it_it)" },
|
{ "code": "it_it", "display": "Italian (it_it)" },
|
||||||
{ "code": "ja_jp", "display": "Japanese (ja_jp)" },
|
{ "code": "ja_jp", "display": "Japanese (ja_jp)" },
|
||||||
@@ -46,7 +46,7 @@ def load_language_codes(languages_json_path):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
current_path = os.path.dirname(os.path.abspath(__file__))
|
current_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
# language codes are loaded from languages.json — add a new language there
|
# language codes are loaded from languages.json — add a new language there
|
||||||
languages_json = os.path.join(current_path, "languages.json")
|
languages_json = os.path.join(current_path, "language_definitions/languages.json")
|
||||||
codes = load_language_codes(languages_json)
|
codes = load_language_codes(languages_json)
|
||||||
file_paths = [os.path.join(current_path, f"{code}.json") for code in codes]
|
file_paths = [os.path.join(current_path, f"{code}.json") for code in codes]
|
||||||
merge_translations(file_paths[0], file_paths[1:])
|
merge_translations(file_paths[0], file_paths[1:])
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
"DevDetail_SessionTable_Duration": "Продолжительность",
|
"DevDetail_SessionTable_Duration": "Продолжительность",
|
||||||
"DevDetail_SessionTable_IP": "IP",
|
"DevDetail_SessionTable_IP": "IP",
|
||||||
"DevDetail_SessionTable_Order": "Порядок",
|
"DevDetail_SessionTable_Order": "Порядок",
|
||||||
"DevDetail_Shortcut_CurrentStatus": "Текущий статус",
|
"DevDetail_Shortcut_CurrentStatus": "Статус",
|
||||||
"DevDetail_Shortcut_DownAlerts": "Оповещения о сбое",
|
"DevDetail_Shortcut_DownAlerts": "Оповещения о сбое",
|
||||||
"DevDetail_Shortcut_Presence": "Присутствие",
|
"DevDetail_Shortcut_Presence": "Присутствие",
|
||||||
"DevDetail_Shortcut_Sessions": "Сеансы",
|
"DevDetail_Shortcut_Sessions": "Сеансы",
|
||||||
@@ -203,16 +203,17 @@
|
|||||||
"Device_MultiEdit_MassActions": "Массовые действия:",
|
"Device_MultiEdit_MassActions": "Массовые действия:",
|
||||||
"Device_MultiEdit_No_Devices": "Устройства не выбраны.",
|
"Device_MultiEdit_No_Devices": "Устройства не выбраны.",
|
||||||
"Device_MultiEdit_Tooltip": "Осторожно. При нажатии на эту кнопку значение слева будет применено ко всем устройствам, выбранным выше.",
|
"Device_MultiEdit_Tooltip": "Осторожно. При нажатии на эту кнопку значение слева будет применено ко всем устройствам, выбранным выше.",
|
||||||
"Device_NextScan_Imminent": "",
|
"Device_NextScan_Imminent": "Скоро...",
|
||||||
"Device_NextScan_In": "",
|
"Device_NextScan_In": "Следующее сканирование примерно через· ",
|
||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "Если устройства не отображаются после сканирования, проверьте настройку SCAN_SUBNETS и <a href=\"https://docs.netalertx.com/SUBNETS\" target=\"_blank\">документацию</a>.",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "Ожидание первого сканирования — это может занять несколько минут после первоначальной настройки.",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "Устройства пока не найдены",
|
||||||
|
"Device_NoMatch_Title": "Нет устройств, соответствующих текущему фильтру",
|
||||||
"Device_Save_Failed": "Не удалось сохранить устройство",
|
"Device_Save_Failed": "Не удалось сохранить устройство",
|
||||||
"Device_Save_Unauthorized": "Не авторизован - недействительный токен API",
|
"Device_Save_Unauthorized": "Не авторизован - недействительный токен API",
|
||||||
"Device_Saved_Success": "Устройство успешно сохранено",
|
"Device_Saved_Success": "Устройство успешно сохранено",
|
||||||
"Device_Saved_Unexpected": "Обновление устройства дало неожиданный ответ",
|
"Device_Saved_Unexpected": "Обновление устройства дало неожиданный ответ",
|
||||||
"Device_Scanning": "",
|
"Device_Scanning": "Сканирование...",
|
||||||
"Device_Searchbox": "Поиск",
|
"Device_Searchbox": "Поиск",
|
||||||
"Device_Shortcut_AllDevices": "Мои устройства",
|
"Device_Shortcut_AllDevices": "Мои устройства",
|
||||||
"Device_Shortcut_AllNodes": "Все узлы",
|
"Device_Shortcut_AllNodes": "Все узлы",
|
||||||
@@ -224,14 +225,14 @@
|
|||||||
"Device_Shortcut_Favorites": "Избранные",
|
"Device_Shortcut_Favorites": "Избранные",
|
||||||
"Device_Shortcut_NewDevices": "Новые устройства",
|
"Device_Shortcut_NewDevices": "Новые устройства",
|
||||||
"Device_Shortcut_OnlineChart": "Присутствие устройств",
|
"Device_Shortcut_OnlineChart": "Присутствие устройств",
|
||||||
"Device_Shortcut_Unstable": "",
|
"Device_Shortcut_Unstable": "Нестабильный",
|
||||||
"Device_TableHead_AlertDown": "Оповещение о сост. ВЫКЛ",
|
"Device_TableHead_AlertDown": "Оповещение о сост. ВЫКЛ",
|
||||||
"Device_TableHead_Connected_Devices": "Соединения",
|
"Device_TableHead_Connected_Devices": "Соединения",
|
||||||
"Device_TableHead_CustomProps": "Свойства / Действия",
|
"Device_TableHead_CustomProps": "Свойства / Действия",
|
||||||
"Device_TableHead_FQDN": "FQDN",
|
"Device_TableHead_FQDN": "FQDN",
|
||||||
"Device_TableHead_Favorite": "Избранное",
|
"Device_TableHead_Favorite": "Избранное",
|
||||||
"Device_TableHead_FirstSession": "Первый сеанс",
|
"Device_TableHead_FirstSession": "Первый сеанс",
|
||||||
"Device_TableHead_Flapping": "",
|
"Device_TableHead_Flapping": "Нестабильный",
|
||||||
"Device_TableHead_GUID": "GUID",
|
"Device_TableHead_GUID": "GUID",
|
||||||
"Device_TableHead_Group": "Группа",
|
"Device_TableHead_Group": "Группа",
|
||||||
"Device_TableHead_IPv4": "IPv4",
|
"Device_TableHead_IPv4": "IPv4",
|
||||||
@@ -322,7 +323,7 @@
|
|||||||
"Gen_AddDevice": "Добавить устройство",
|
"Gen_AddDevice": "Добавить устройство",
|
||||||
"Gen_Add_All": "Добавить все",
|
"Gen_Add_All": "Добавить все",
|
||||||
"Gen_All_Devices": "Все устройства",
|
"Gen_All_Devices": "Все устройства",
|
||||||
"Gen_Archived": "",
|
"Gen_Archived": "Архивировано",
|
||||||
"Gen_AreYouSure": "Вы уверены?",
|
"Gen_AreYouSure": "Вы уверены?",
|
||||||
"Gen_Backup": "Запустить резервное копирование",
|
"Gen_Backup": "Запустить резервное копирование",
|
||||||
"Gen_Cancel": "Отмена",
|
"Gen_Cancel": "Отмена",
|
||||||
@@ -333,16 +334,16 @@
|
|||||||
"Gen_Delete": "Удалить",
|
"Gen_Delete": "Удалить",
|
||||||
"Gen_DeleteAll": "Удалить все",
|
"Gen_DeleteAll": "Удалить все",
|
||||||
"Gen_Description": "Описание",
|
"Gen_Description": "Описание",
|
||||||
"Gen_Down": "",
|
"Gen_Down": "Лежит",
|
||||||
"Gen_Error": "Ошибка",
|
"Gen_Error": "Ошибка",
|
||||||
"Gen_Filter": "Фильтр",
|
"Gen_Filter": "Фильтр",
|
||||||
"Gen_Flapping": "",
|
"Gen_Flapping": "Нестабильный",
|
||||||
"Gen_Generate": "Генерировать",
|
"Gen_Generate": "Генерировать",
|
||||||
"Gen_InvalidMac": "Неверный Mac-адрес.",
|
"Gen_InvalidMac": "Неверный Mac-адрес.",
|
||||||
"Gen_Invalid_Value": "Введено некорректное значение",
|
"Gen_Invalid_Value": "Введено некорректное значение",
|
||||||
"Gen_LockedDB": "ОШИБКА - Возможно, база данных заблокирована. Проверьте инструменты разработчика F12 -> Консоль или повторите попытку позже.",
|
"Gen_LockedDB": "ОШИБКА - Возможно, база данных заблокирована. Проверьте инструменты разработчика F12 -> Консоль или повторите попытку позже.",
|
||||||
"Gen_NetworkMask": "Маска сети",
|
"Gen_NetworkMask": "Маска сети",
|
||||||
"Gen_New": "",
|
"Gen_New": "Новый",
|
||||||
"Gen_Offline": "Оффлайн",
|
"Gen_Offline": "Оффлайн",
|
||||||
"Gen_Okay": "OK",
|
"Gen_Okay": "OK",
|
||||||
"Gen_Online": "Онлайн",
|
"Gen_Online": "Онлайн",
|
||||||
@@ -360,7 +361,7 @@
|
|||||||
"Gen_SelectIcon": "<i class=\"fa-solid fa-chevron-down fa-fade\"></i>",
|
"Gen_SelectIcon": "<i class=\"fa-solid fa-chevron-down fa-fade\"></i>",
|
||||||
"Gen_SelectToPreview": "Выберите для предварительного просмотра",
|
"Gen_SelectToPreview": "Выберите для предварительного просмотра",
|
||||||
"Gen_Selected_Devices": "Выбранные устройства:",
|
"Gen_Selected_Devices": "Выбранные устройства:",
|
||||||
"Gen_Sleeping": "",
|
"Gen_Sleeping": "Спящий",
|
||||||
"Gen_Subnet": "Подсеть",
|
"Gen_Subnet": "Подсеть",
|
||||||
"Gen_Switch": "Переключить",
|
"Gen_Switch": "Переключить",
|
||||||
"Gen_Upd": "Успешное обновление",
|
"Gen_Upd": "Успешное обновление",
|
||||||
@@ -590,8 +591,8 @@
|
|||||||
"PIALERT_WEB_PROTECTION_name": "Включить вход",
|
"PIALERT_WEB_PROTECTION_name": "Включить вход",
|
||||||
"PLUGINS_KEEP_HIST_description": "Сколько записей результатов сканирования истории плагинов следует хранить (для каждого плагина, а не для конкретного устройства).",
|
"PLUGINS_KEEP_HIST_description": "Сколько записей результатов сканирования истории плагинов следует хранить (для каждого плагина, а не для конкретного устройства).",
|
||||||
"PLUGINS_KEEP_HIST_name": "История плагинов",
|
"PLUGINS_KEEP_HIST_name": "История плагинов",
|
||||||
"PRAGMA_JOURNAL_SIZE_LIMIT_description": "",
|
"PRAGMA_JOURNAL_SIZE_LIMIT_description": "Максимальный размер SQLite WAL (журнал упреждающей записи) в МБ перед запуском автоматических контрольных точек. Более низкие значения (10–20 МБ) уменьшают использование диска/хранилища, но увеличивают загрузку ЦП во время сканирования. Более высокие значения (50–100 МБ) уменьшают нагрузку на процессор во время операций, но могут использовать больше оперативной памяти и дискового пространства. Значение по умолчанию <code>50 МБ</code> компенсирует и то, и другое. Полезно для систем с ограниченными ресурсами, таких как устройства NAS с SD-картами. Перезапустите сервер, чтобы изменения вступили в силу после сохранения настроек.",
|
||||||
"PRAGMA_JOURNAL_SIZE_LIMIT_name": "",
|
"PRAGMA_JOURNAL_SIZE_LIMIT_name": "Ограничение размера WAL (МБ)",
|
||||||
"Plugins_DeleteAll": "Удалить все (фильтры игнорируются)",
|
"Plugins_DeleteAll": "Удалить все (фильтры игнорируются)",
|
||||||
"Plugins_Filters_Mac": "Фильтр MAC-адреса",
|
"Plugins_Filters_Mac": "Фильтр MAC-адреса",
|
||||||
"Plugins_History": "История событий",
|
"Plugins_History": "История событий",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "Не вдалося зберегти пристрій",
|
"Device_Save_Failed": "Не вдалося зберегти пристрій",
|
||||||
"Device_Save_Unauthorized": "Неавторизовано – недійсний токен API",
|
"Device_Save_Unauthorized": "Неавторизовано – недійсний токен API",
|
||||||
"Device_Saved_Success": "Пристрій успішно збережено",
|
"Device_Saved_Success": "Пристрій успішно збережено",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "",
|
"Device_Save_Failed": "",
|
||||||
"Device_Save_Unauthorized": "",
|
"Device_Save_Unauthorized": "",
|
||||||
"Device_Saved_Success": "",
|
"Device_Saved_Success": "",
|
||||||
|
|||||||
@@ -208,6 +208,7 @@
|
|||||||
"Device_NoData_Help": "",
|
"Device_NoData_Help": "",
|
||||||
"Device_NoData_Scanning": "",
|
"Device_NoData_Scanning": "",
|
||||||
"Device_NoData_Title": "",
|
"Device_NoData_Title": "",
|
||||||
|
"Device_NoMatch_Title": "",
|
||||||
"Device_Save_Failed": "保存设备失败",
|
"Device_Save_Failed": "保存设备失败",
|
||||||
"Device_Save_Unauthorized": "未授权 - API 令牌无效",
|
"Device_Save_Unauthorized": "未授权 - API 令牌无效",
|
||||||
"Device_Saved_Success": "设备保存成功",
|
"Device_Saved_Success": "设备保存成功",
|
||||||
@@ -374,9 +375,9 @@
|
|||||||
"Gen_create_new_device_info": "通常使用<a target=\"_blank\" href=\"https://docs.netalertx.com/PLUGINS\">plugins</a>来发现设备。但是,在某些情况下,您可能需要手动添加设备。要探索特定场景,请查看<a target=\"_blank\" href=\"https://docs.netalertx.com/REMOTE_NETWORKS\">远程网络文档</a>。",
|
"Gen_create_new_device_info": "通常使用<a target=\"_blank\" href=\"https://docs.netalertx.com/PLUGINS\">plugins</a>来发现设备。但是,在某些情况下,您可能需要手动添加设备。要探索特定场景,请查看<a target=\"_blank\" href=\"https://docs.netalertx.com/REMOTE_NETWORKS\">远程网络文档</a>。",
|
||||||
"General_display_name": "通用",
|
"General_display_name": "通用",
|
||||||
"General_icon": "<i class=\"fa fa-gears\"></i>",
|
"General_icon": "<i class=\"fa fa-gears\"></i>",
|
||||||
"HRS_TO_KEEP_NEWDEV_description": "这是一项维护设置<b>删除设备</b>。如果启用该设置(<code>0</code> 为禁用),则标记为<b>新设备</b>的设备(如果其<b>首次会话</b>时间早于此设置中指定的小时数)将被删除。如果您想在 <code>X</code> 小时后自动删除<b>新设备</b>,请使用此设置。",
|
"HRS_TO_KEEP_NEWDEV_description": "这是一项 <b>删除设备</b> 的维护性设置。如启用(<code>0</code> 代表禁用),被标记为 <b>新设备</b> 的设备将被删除,如果它们的 <b>首个会话</b> 时间比这个设置中指定的时长要短。如果想在 <code>X</code> 个小时后自动删除 <b>新设备</b> 请使用本设置。",
|
||||||
"HRS_TO_KEEP_NEWDEV_name": "小时后删除新设备",
|
"HRS_TO_KEEP_NEWDEV_name": "小时后删除新设备",
|
||||||
"HRS_TO_KEEP_OFFDEV_description": "这是维护设置<b>删除设备</b>。如果启用了这个设置(<code>0</code>是禁用),任何<b>上次链接</b>时间比设置里存的指定时间长的<b>离线</b>设备都会被删除。要是您想<code>X</code>小时以候自动处理<b>下线设备</b>,请用这个设置。",
|
"HRS_TO_KEEP_OFFDEV_description": "这是<b>删除设备</b>的维护设置。如果启用了这个设置(<code>0</code>是禁用),任何<b>上次连接</b>时间比设置里存的指定时间长的<b>离线</b>设备都会被删除。要是您想在<code>X</code>小时后自动删除<b>离线设备</b>,请用这个设置。",
|
||||||
"HRS_TO_KEEP_OFFDEV_name": "保留离线设备",
|
"HRS_TO_KEEP_OFFDEV_name": "保留离线设备",
|
||||||
"LOADED_PLUGINS_description": "加载哪些插件。添加插件可能会降低应用程序的速度。在<a target=\"_blank\" href=\"https://docs.netalertx.com/PLUGINS\">插件文档</a>中详细了解需要启用哪些插件、插件类型或扫描选项。卸载插件将丢失您的设置。只有<code>已禁用</code>的插件才能卸载。",
|
"LOADED_PLUGINS_description": "加载哪些插件。添加插件可能会降低应用程序的速度。在<a target=\"_blank\" href=\"https://docs.netalertx.com/PLUGINS\">插件文档</a>中详细了解需要启用哪些插件、插件类型或扫描选项。卸载插件将丢失您的设置。只有<code>已禁用</code>的插件才能卸载。",
|
||||||
"LOADED_PLUGINS_name": "已加载插件",
|
"LOADED_PLUGINS_name": "已加载插件",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -403,7 +403,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -418,7 +418,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -434,7 +434,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -450,7 +450,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -466,7 +466,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -482,7 +482,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -498,7 +498,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -532,7 +532,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -547,7 +547,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -562,7 +562,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def main():
|
|||||||
# make sure the below mapping is mapped in config.json, for example:
|
# make sure the below mapping is mapped in config.json, for example:
|
||||||
# "database_column_definitions": [
|
# "database_column_definitions": [
|
||||||
# {
|
# {
|
||||||
# "column": "Object_PrimaryID", <--------- the value I save into primaryId
|
# "column": "objectPrimaryId", <--------- the value I save into primaryId
|
||||||
# "mapped_to_column": "scanMac", <--------- gets inserted into the CurrentScan DB
|
# "mapped_to_column": "scanMac", <--------- gets inserted into the CurrentScan DB
|
||||||
# table column scanMac
|
# table column scanMac
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "url",
|
"type": "url",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-8",
|
"css_classes": "col-sm-8",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -225,7 +225,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "url",
|
"type": "url",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-8",
|
"css_classes": "col-sm-8",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -225,7 +225,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"show_ui": true,
|
"show_ui": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Watched_Value4",
|
"compare_column": "watchedValue4",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -205,7 +205,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -260,7 +260,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -212,14 +212,14 @@ class sensor_config:
|
|||||||
already known. If not, it marks the sensor as new and logs relevant information.
|
already known. If not, it marks the sensor as new and logs relevant information.
|
||||||
"""
|
"""
|
||||||
# Retrieve the plugin object based on the sensor's hash
|
# Retrieve the plugin object based on the sensor's hash
|
||||||
plugObj = getPluginObject({"Plugin": "MQTT", "Watched_Value3": self.hash})
|
plugObj = getPluginObject({"plugin": "MQTT", "watchedValue3": self.hash})
|
||||||
|
|
||||||
# Check if the plugin object is new
|
# Check if the plugin object is new
|
||||||
if not plugObj:
|
if not plugObj:
|
||||||
self.isNew = True
|
self.isNew = True
|
||||||
mylog('verbose', [f"[{pluginName}] New sensor entry (name|mac|hash) : ({self.deviceName}|{self.mac}|{self.hash}"])
|
mylog('verbose', [f"[{pluginName}] New sensor entry (name|mac|hash) : ({self.deviceName}|{self.mac}|{self.hash}"])
|
||||||
else:
|
else:
|
||||||
device_name = plugObj.get("Watched_Value1", "Unknown")
|
device_name = plugObj.get("watchedValue1", "Unknown")
|
||||||
mylog('verbose', [f"[{pluginName}] Existing, skip Device Name: {device_name}"])
|
mylog('verbose', [f"[{pluginName}] Existing, skip Device Name: {device_name}"])
|
||||||
self.isNew = False
|
self.isNew = False
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "device_mac",
|
"type": "device_mac",
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "device_mac",
|
"type": "device_mac",
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "device_mac",
|
"type": "device_mac",
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "url",
|
"type": "url",
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-8",
|
"css_classes": "col-sm-8",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "device_mac",
|
"type": "device_mac",
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -378,7 +378,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -393,7 +393,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -409,7 +409,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -425,7 +425,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -441,7 +441,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -457,7 +457,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -472,7 +472,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -506,7 +506,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -521,7 +521,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -536,7 +536,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -338,17 +338,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1", "Watched_Value2"],
|
"default_value": ["watchedValue1", "watchedValue2"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -368,15 +368,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is IP</li><li><code>Watched_Value2</code> is Vendor</li><li><code>Watched_Value3</code> is Interface </li><li><code>Watched_Value4</code> is N/A </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is IP</li><li><code>watchedValue2</code> is Vendor</li><li><code>watchedValue3</code> is Interface </li><li><code>watchedValue4</code> is N/A </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envía una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Valor_observado1</code> es IP</li><li><code>Valor_observado2</code> es Proveedor</li><li><code>Valor_observado3</code> es Interfaz </li><li><code>Valor_observado4</code> es N/A </li></ul>"
|
"string": "Envía una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es IP</li><li><code>watchedValue2</code> es Proveedor</li><li><code>watchedValue3</code> es Interfaz </li><li><code>watchedValue4</code> es N/A </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>Watched_Value1</code> ist die IP</li><li><code>Watched_Value2</code> ist der Hersteller</li><li><code>Watched_Value3</code> ist das Interface </li><li><code>Watched_Value4</code> ist nicht in Verwendung </li></ul>"
|
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>watchedValue1</code> ist die IP</li><li><code>watchedValue2</code> ist der Hersteller</li><li><code>watchedValue3</code> ist das Interface </li><li><code>watchedValue4</code> ist nicht in Verwendung </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -484,7 +484,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -499,7 +499,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -515,7 +515,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -531,7 +531,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -582,7 +582,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -605,7 +605,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -628,7 +628,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -431,7 +431,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -448,7 +448,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"localized": [
|
"localized": [
|
||||||
@@ -474,7 +474,7 @@
|
|||||||
"type": "device_mac"
|
"type": "device_mac"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"localized": [
|
"localized": [
|
||||||
@@ -500,7 +500,7 @@
|
|||||||
"type": "device_ip"
|
"type": "device_ip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"localized": [
|
"localized": [
|
||||||
@@ -526,7 +526,7 @@
|
|||||||
"type": "label"
|
"type": "label"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
@@ -573,7 +573,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -590,7 +590,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -607,7 +607,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"show_ui": true,
|
"show_ui": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -291,7 +291,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -306,7 +306,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -359,7 +359,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -374,7 +374,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -82,16 +82,16 @@ def cleanup_database(
|
|||||||
# Cleanup Online History
|
# Cleanup Online History
|
||||||
mylog("verbose", [f"[{pluginName}] Online_History: Delete all but keep latest 150 entries"])
|
mylog("verbose", [f"[{pluginName}] Online_History: Delete all but keep latest 150 entries"])
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
"""DELETE from Online_History where "Index" not in (
|
"""DELETE from Online_History where "index" not in (
|
||||||
SELECT "Index" from Online_History
|
SELECT "index" from Online_History
|
||||||
order by Scan_Date desc limit 150)"""
|
order by scanDate desc limit 150)"""
|
||||||
)
|
)
|
||||||
mylog("verbose", [f"[{pluginName}] Online_History deleted rows: {cursor.rowcount}"])
|
mylog("verbose", [f"[{pluginName}] Online_History deleted rows: {cursor.rowcount}"])
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Cleanup Events
|
# Cleanup Events
|
||||||
mylog("verbose", f"[{pluginName}] Events: Delete all older than {str(DAYS_TO_KEEP_EVENTS)} days (DAYS_TO_KEEP_EVENTS setting)")
|
mylog("verbose", f"[{pluginName}] Events: Delete all older than {str(DAYS_TO_KEEP_EVENTS)} days (DAYS_TO_KEEP_EVENTS setting)")
|
||||||
sql = f"""DELETE FROM Events WHERE eve_DateTime <= date('now', '-{str(DAYS_TO_KEEP_EVENTS)} day')"""
|
sql = f"""DELETE FROM Events WHERE eveDateTime <= date('now', '-{str(DAYS_TO_KEEP_EVENTS)} day')"""
|
||||||
mylog("verbose", [f"[{pluginName}] SQL : {sql}"])
|
mylog("verbose", [f"[{pluginName}] SQL : {sql}"])
|
||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
mylog("verbose", [f"[{pluginName}] Events deleted rows: {cursor.rowcount}"])
|
mylog("verbose", [f"[{pluginName}] Events deleted rows: {cursor.rowcount}"])
|
||||||
@@ -100,7 +100,7 @@ def cleanup_database(
|
|||||||
# Sessions (derived snapshot — trimmed to the same window as Events so the
|
# Sessions (derived snapshot — trimmed to the same window as Events so the
|
||||||
# two tables stay in sync without introducing a separate setting)
|
# two tables stay in sync without introducing a separate setting)
|
||||||
mylog("verbose", f"[{pluginName}] Sessions: Delete all older than {str(DAYS_TO_KEEP_EVENTS)} days (reuses DAYS_TO_KEEP_EVENTS)")
|
mylog("verbose", f"[{pluginName}] Sessions: Delete all older than {str(DAYS_TO_KEEP_EVENTS)} days (reuses DAYS_TO_KEEP_EVENTS)")
|
||||||
sql = f"""DELETE FROM Sessions WHERE ses_DateTimeConnection <= date('now', '-{str(DAYS_TO_KEEP_EVENTS)} day')"""
|
sql = f"""DELETE FROM Sessions WHERE sesDateTimeConnection <= date('now', '-{str(DAYS_TO_KEEP_EVENTS)} day')"""
|
||||||
mylog("verbose", [f"[{pluginName}] SQL : {sql}"])
|
mylog("verbose", [f"[{pluginName}] SQL : {sql}"])
|
||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
mylog("verbose", [f"[{pluginName}] Sessions deleted rows: {cursor.rowcount}"])
|
mylog("verbose", [f"[{pluginName}] Sessions deleted rows: {cursor.rowcount}"])
|
||||||
@@ -113,7 +113,7 @@ def cleanup_database(
|
|||||||
SELECT "Index"
|
SELECT "Index"
|
||||||
FROM (
|
FROM (
|
||||||
SELECT "Index",
|
SELECT "Index",
|
||||||
ROW_NUMBER() OVER(PARTITION BY "Plugin" ORDER BY DateTimeChanged DESC) AS row_num
|
ROW_NUMBER() OVER(PARTITION BY plugin ORDER BY dateTimeChanged DESC) AS row_num
|
||||||
FROM Plugins_History
|
FROM Plugins_History
|
||||||
) AS ranked_objects
|
) AS ranked_objects
|
||||||
WHERE row_num <= {str(PLUGINS_KEEP_HIST)}
|
WHERE row_num <= {str(PLUGINS_KEEP_HIST)}
|
||||||
@@ -130,7 +130,7 @@ def cleanup_database(
|
|||||||
SELECT "Index"
|
SELECT "Index"
|
||||||
FROM (
|
FROM (
|
||||||
SELECT "Index",
|
SELECT "Index",
|
||||||
ROW_NUMBER() OVER(PARTITION BY "Notifications" ORDER BY DateTimeCreated DESC) AS row_num
|
ROW_NUMBER() OVER(PARTITION BY "index" ORDER BY dateTimeCreated DESC) AS row_num
|
||||||
FROM Notifications
|
FROM Notifications
|
||||||
) AS ranked_objects
|
) AS ranked_objects
|
||||||
WHERE row_num <= {histCount}
|
WHERE row_num <= {histCount}
|
||||||
@@ -147,7 +147,7 @@ def cleanup_database(
|
|||||||
SELECT "Index"
|
SELECT "Index"
|
||||||
FROM (
|
FROM (
|
||||||
SELECT "Index",
|
SELECT "Index",
|
||||||
ROW_NUMBER() OVER(PARTITION BY "AppEvents" ORDER BY DateTimeCreated DESC) AS row_num
|
ROW_NUMBER() OVER(PARTITION BY "index" ORDER BY dateTimeCreated DESC) AS row_num
|
||||||
FROM AppEvents
|
FROM AppEvents
|
||||||
) AS ranked_objects
|
) AS ranked_objects
|
||||||
WHERE row_num <= {histCount}
|
WHERE row_num <= {histCount}
|
||||||
@@ -192,10 +192,10 @@ def cleanup_database(
|
|||||||
DELETE FROM Plugins_Objects
|
DELETE FROM Plugins_Objects
|
||||||
WHERE rowid > (
|
WHERE rowid > (
|
||||||
SELECT MIN(rowid) FROM Plugins_Objects p2
|
SELECT MIN(rowid) FROM Plugins_Objects p2
|
||||||
WHERE Plugins_Objects.Plugin = p2.Plugin
|
WHERE Plugins_Objects.plugin = p2.plugin
|
||||||
AND Plugins_Objects.Object_PrimaryID = p2.Object_PrimaryID
|
AND Plugins_Objects.objectPrimaryId = p2.objectPrimaryId
|
||||||
AND Plugins_Objects.Object_SecondaryID = p2.Object_SecondaryID
|
AND Plugins_Objects.objectSecondaryId = p2.objectSecondaryId
|
||||||
AND Plugins_Objects.UserData = p2.UserData
|
AND Plugins_Objects.userData = p2.userData
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -432,17 +432,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1"],
|
"default_value": ["watchedValue1"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -462,11 +462,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Previous IP (not recommended)</li><li><code>Watched_Value2</code> unused</li><li><code>Watched_Value3</code> unused </li><li><code>Watched_Value4</code> unused </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Previous IP (not recommended)</li><li><code>watchedValue2</code> unused</li><li><code>watchedValue3</code> unused </li><li><code>watchedValue4</code> unused </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>Watched_Value1</code> ist die Vorige IP (nicht empfohlen)</li><li><code>Watched_Value2</code> ist nicht in Verwendung</li><li><code>Watched_Value3</code> ist nicht in Verwendung </li><li><code>Watched_Value4</code> ist nicht in Verwendung </li></ul>"
|
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>watchedValue1</code> ist die Vorige IP (nicht empfohlen)</li><li><code>watchedValue2</code> ist nicht in Verwendung</li><li><code>watchedValue3</code> ist nicht in Verwendung </li><li><code>watchedValue4</code> ist nicht in Verwendung </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -477,7 +477,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -507,22 +507,22 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>Watched_ValueN</code> seleccionadas cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>Watched_ValueN</code>-Spalte hat sich geändert."
|
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>watchedValueN</code>-Spalte hat sich geändert."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -537,7 +537,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -560,7 +560,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_ip",
|
"type": "device_ip",
|
||||||
@@ -583,7 +583,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -628,7 +628,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -651,7 +651,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -674,7 +674,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ DHCPLSS_CMD: 'python3 /app/front/plugins/dhcp_leases/script.py paths={paths}'
|
|||||||
DHCPLSS_paths_to_check: ['/etc/dnsmasq/dnsmasq.leases']
|
DHCPLSS_paths_to_check: ['/etc/dnsmasq/dnsmasq.leases']
|
||||||
DHCPLSS_RUN_SCHD: '*/5 * * * *'
|
DHCPLSS_RUN_SCHD: '*/5 * * * *'
|
||||||
DHCPLSS_TUN_TIMEOUT: 5
|
DHCPLSS_TUN_TIMEOUT: 5
|
||||||
DHCPLSS_WATCH: ['Watched_Value1', 'Watched_Value4']
|
DHCPLSS_WATCH: ['watchedValue1', 'watchedValue4']
|
||||||
DHCPLSS_REPORT_ON: ['new', 'watched_changed']
|
DHCPLSS_REPORT_ON: ['new', 'watched-changed']
|
||||||
```
|
```
|
||||||
|
|
||||||
You can check the the `dnsmasq.leases` file in the container by running `ls /etc/dnsmasq/`:
|
You can check the the `dnsmasq.leases` file in the container by running `ls /etc/dnsmasq/`:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"data_source": "script",
|
"data_source": "script",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"mapped_to_column": "scanLastConnection",
|
"mapped_to_column": "scanLastConnection",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -220,7 +220,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -267,7 +267,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -363,7 +363,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -753,17 +753,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1", "Watched_Value4"],
|
"default_value": ["watchedValue1", "watchedValue4"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -783,15 +783,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Active </li><li><code>Watched_Value2</code> is Hostname </li><li><code>Watched_Value3</code> is hardware </li><li><code>Watched_Value4</code> is State </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Active </li><li><code>watchedValue2</code> is Hostname </li><li><code>watchedValue3</code> is hardware </li><li><code>watchedValue4</code> is State </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Enviar una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Watched_Value1</code> está activo </li><li><code>Watched_Value2</code> es el nombre de host </li><li><code>Watched_Value3</code > es hardware </li><li><code>Watched_Value4</code> es Estado </li></ul>"
|
"string": "Enviar una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> está activo </li><li><code>watchedValue2</code> es el nombre de host </li><li><code>watchedValue3</code > es hardware </li><li><code>watchedValue4</code> es Estado </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>Watched_Value1</code> ist der Aktivstatus</li><li><code>Watched_Value2</code> ist der Hostname</li><li><code>Watched_Value3</code> ist die Hardware</li><li><code>Watched_Value4</code> ist der Zustand </li></ul>"
|
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>watchedValue1</code> ist der Aktivstatus</li><li><code>watchedValue2</code> ist der Hostname</li><li><code>watchedValue3</code> ist die Hardware</li><li><code>watchedValue4</code> ist der Zustand </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -802,7 +802,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -832,15 +832,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>Watched_ValueN</code> seleccionadas cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>Watched_ValueN</code>-Spalte hat sich geändert."
|
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>watchedValueN</code>-Spalte hat sich geändert."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_ip",
|
"type": "device_ip",
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -207,7 +207,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -226,7 +226,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -245,7 +245,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -281,7 +281,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -478,17 +478,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1"],
|
"default_value": ["watchedValue1"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -504,11 +504,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Domain Name Server</li><li><code>Watched_Value2</code> is IP Offered</li><li><code>Watched_Value3</code> is Interface </li><li><code>Watched_Value4</code> is Router </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Domain Name Server</li><li><code>watchedValue2</code> is IP Offered</li><li><code>watchedValue3</code> is Interface </li><li><code>watchedValue4</code> is Router </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Watched_Value1</code> es servidor de nombres de dominio</li><li><code>Watched_Value2</code> es IP ofrecida</li><li><code>Watched_Value3</code> es Interfaz </li><li><code>Watched_Value4</code> es enrutador </li></ul>"
|
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es servidor de nombres de dominio</li><li><code>watchedValue2</code> es IP ofrecida</li><li><code>watchedValue3</code> es Interfaz </li><li><code>watchedValue4</code> es enrutador </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -519,7 +519,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -540,11 +540,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>Watched_ValueN</code> seleccionadas cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"show_ui": true,
|
"show_ui": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -367,7 +367,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -382,7 +382,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -397,7 +397,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -412,7 +412,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -28,31 +28,17 @@ Limitations:
|
|||||||
- The Freebox must be your gateway
|
- The Freebox must be your gateway
|
||||||
- The device must be in the same lan as the Freebox
|
- The device must be in the same lan as the Freebox
|
||||||
|
|
||||||
### Offline setup (recommended)
|
|
||||||
|
|
||||||
Use this configuration if you wish to connect to your Freebox even when you are offline, or the Freebox is not your gateway.
|
|
||||||
|
|
||||||
Find the local IP address of your Freebox, if it is your gateway, you can find the address on your computer/smartphone network configuration (usually it's `192.168.1.1`). Go in the plugin settings and set the IP as address and `80` as the port (do *not* use `443` as the port). This configuration works regardless of your internet connection and poses little limitations.
|
|
||||||
|
|
||||||
Limitations:
|
|
||||||
- *If* there is no internet connection, the plugin will fallback to HTTP (not HTTPS)
|
|
||||||
|
|
||||||
For more detail: the plugin will connect to the specified address and port to fetch information about the Freebox, then it will either connect in HTTPS through the Freebox's unique domain name, or connect over HTTP if there is no internet connection. The freebox does offer an HTTPS port on the local network, but the certificate will be invalid for the local IP, and the connection will be aborted.
|
|
||||||
|
|
||||||
### Remote setup
|
### Remote setup
|
||||||
|
|
||||||
Use this configuration if you wish to connect to your Freebox through the internet. You still need to pair from the local network.
|
Use this configuration if you wish to connect to your Freebox through the internet. You still need to pair from the local network.
|
||||||
|
|
||||||
If the Freebox is not your gateway, configure a NAT and follow the [offline setup](#offline-setup-recommended).
|
|
||||||
|
|
||||||
If the Freebox is your gateway you need to find its HTTPS (or HTTP if you prefer) public port. This can be found either in the Freeboxe's web interface and by navigating to `settings>access management`, or (just for the HTTPS port) by visiting http://mafreebox.freebox.fr:80/api_version from the local network (you can use the local ip as well). This is the port you need to access your Freebox through the internet
|
If the Freebox is your gateway you need to find its HTTPS (or HTTP if you prefer) public port. This can be found either in the Freeboxe's web interface and by navigating to `settings>access management`, or (just for the HTTPS port) by visiting http://mafreebox.freebox.fr:80/api_version from the local network (you can use the local ip as well). This is the port you need to access your Freebox through the internet
|
||||||
|
|
||||||
As address, you can either use the public IP of the Freebox, or the unique domain name you found on http://mafreebox.freebox.fr:80/api_version listed as `api_domain`.
|
As address, you can either use the public IP of the Freebox, or the unique domain name you found on http://mafreebox.freebox.fr:80/api_version listed as `api_domain`.
|
||||||
|
|
||||||
|
|
||||||
## Other info
|
## Other info
|
||||||
|
|
||||||
- Version: 1.0
|
- Version: 2.0
|
||||||
- Author: [KayJay7](https://github.com/KayJay7), [Lucide](https://github.com/Lucide)
|
- Author: [KayJay7](https://github.com/KayJay7), [Lucide](https://github.com/Lucide)
|
||||||
- Maintainers: [mathoudebine](https://github.com/mathoudebine)
|
- Maintainers: [mathoudebine](https://github.com/mathoudebine)
|
||||||
- Release Date: 2-Dec-2024
|
- Release Date: 2-Dec-2024
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -376,7 +376,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -393,7 +393,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -411,7 +411,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -429,7 +429,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -447,7 +447,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -465,7 +465,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -483,7 +483,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -521,7 +521,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -538,7 +538,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -555,7 +555,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ from datetime import datetime
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import cast
|
from typing import cast
|
||||||
import socket
|
import socket
|
||||||
import aiofreepybox
|
import freebox_api
|
||||||
from aiofreepybox import Freepybox
|
from freebox_api import Freepybox
|
||||||
from aiofreepybox.api.lan import Lan
|
from freebox_api.api.lan import Lan
|
||||||
from aiofreepybox.exceptions import NotOpenError, AuthorizationError
|
from freebox_api.api.system import System
|
||||||
|
from freebox_api.exceptions import NotOpenError, AuthorizationError
|
||||||
|
|
||||||
# Define the installation path and extend the system path for plugin imports
|
# Define the installation path and extend the system path for plugin imports
|
||||||
INSTALL_PATH = os.getenv('NETALERTX_APP', '/app')
|
INSTALL_PATH = os.getenv('NETALERTX_APP', '/app')
|
||||||
@@ -83,8 +84,7 @@ def map_device_type(type: str):
|
|||||||
|
|
||||||
async def get_device_data(api_version: int, api_address: str, api_port: int):
|
async def get_device_data(api_version: int, api_address: str, api_port: int):
|
||||||
# ensure existence of db path
|
# ensure existence of db path
|
||||||
config_base = Path(os.getenv("NETALERTX_CONFIG", "/data/config"))
|
data_dir = Path(os.getenv("NETALERTX_CONFIG", "/data/config")) / "freeboxdb"
|
||||||
data_dir = config_base / "freeboxdb"
|
|
||||||
data_dir.mkdir(parents=True, exist_ok=True)
|
data_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
# Instantiate Freepybox class using default application descriptor
|
# Instantiate Freepybox class using default application descriptor
|
||||||
@@ -93,25 +93,27 @@ async def get_device_data(api_version: int, api_address: str, api_port: int):
|
|||||||
app_desc={
|
app_desc={
|
||||||
"app_id": "netalertx",
|
"app_id": "netalertx",
|
||||||
"app_name": "NetAlertX",
|
"app_name": "NetAlertX",
|
||||||
"app_version": aiofreepybox.__version__,
|
"app_version": freebox_api.__version__,
|
||||||
"device_name": socket.gethostname(),
|
"device_name": socket.gethostname(),
|
||||||
},
|
},
|
||||||
api_version="v" + str(api_version),
|
api_version="v" + str(api_version),
|
||||||
data_dir=data_dir,
|
token_file=data_dir / "token",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Connect to the freebox
|
# Connect to the freebox
|
||||||
# Be ready to authorize the application on the Freebox if you run this
|
# Be ready to authorize the application on the Freebox if you run this
|
||||||
# for the first time
|
# for the first time
|
||||||
try:
|
try:
|
||||||
await fbx.open(host=api_address, port=api_port)
|
await fbx.open(host=api_address, port=str(api_port))
|
||||||
except NotOpenError as e:
|
except NotOpenError as e:
|
||||||
mylog("verbose", [f"[{pluginName}] Error connecting to freebox: {e}"])
|
mylog("verbose", [f"[{pluginName}] Error connecting to freebox: {e}"])
|
||||||
|
return None, []
|
||||||
except AuthorizationError as e:
|
except AuthorizationError as e:
|
||||||
mylog("verbose", [f"[{pluginName}] Auth error: {str(e)}"])
|
mylog("verbose", [f"[{pluginName}] Auth error: {str(e)}"])
|
||||||
|
return None, []
|
||||||
|
|
||||||
# get also info of the freebox itself
|
# get also info of the freebox itself
|
||||||
config = await fbx.system.get_config()
|
config = await cast(System, fbx.system).get_config()
|
||||||
freebox = await cast(Lan, fbx.lan).get_config()
|
freebox = await cast(Lan, fbx.lan).get_config()
|
||||||
hosts = await cast(Lan, fbx.lan).get_hosts_list()
|
hosts = await cast(Lan, fbx.lan).get_hosts_list()
|
||||||
assert config is not None
|
assert config is not None
|
||||||
@@ -145,6 +147,7 @@ def main():
|
|||||||
mylog("verbose", [freebox])
|
mylog("verbose", [freebox])
|
||||||
mylog("verbose", [hosts])
|
mylog("verbose", [hosts])
|
||||||
|
|
||||||
|
if freebox:
|
||||||
plugin_objects.add_object(
|
plugin_objects.add_object(
|
||||||
primaryId=freebox["mac"],
|
primaryId=freebox["mac"],
|
||||||
secondaryId=freebox["ip"],
|
secondaryId=freebox["ip"],
|
||||||
@@ -175,7 +178,7 @@ def main():
|
|||||||
# Optional: Log or handle hosts without 'l3connectivities'
|
# Optional: Log or handle hosts without 'l3connectivities'
|
||||||
mylog("verbose", [f"[{pluginName}] Host missing 'l3connectivities': {host}"])
|
mylog("verbose", [f"[{pluginName}] Host missing 'l3connectivities': {host}"])
|
||||||
|
|
||||||
# commit result
|
# Commit result
|
||||||
plugin_objects.write_result_file()
|
plugin_objects.write_result_file()
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"show_ui": true,
|
"show_ui": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -364,7 +364,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -381,7 +381,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -399,7 +399,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -417,7 +417,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -434,7 +434,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -451,7 +451,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -468,7 +468,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -506,7 +506,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -523,7 +523,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -540,7 +540,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -324,17 +324,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1"],
|
"default_value": ["watchedValue1"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -354,11 +354,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Previous IP (not recommended)</li><li><code>Watched_Value2</code> unused</li><li><code>Watched_Value3</code> unused </li><li><code>Watched_Value4</code> type </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Previous IP (not recommended)</li><li><code>watchedValue2</code> unused</li><li><code>watchedValue3</code> unused </li><li><code>watchedValue4</code> type </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>Watched_Value1</code> ist die Vorige IP (nicht empfohlen)</li><li><code>Watched_Value2</code> ist nicht in Verwendung</li><li><code>Watched_Value3</code> ist nicht in Verwendung </li><li><code>Watched_Value4</code> ist nicht in Verwendung </li></ul>"
|
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>watchedValue1</code> ist die Vorige IP (nicht empfohlen)</li><li><code>watchedValue2</code> ist nicht in Verwendung</li><li><code>watchedValue3</code> ist nicht in Verwendung </li><li><code>watchedValue4</code> ist nicht in Verwendung </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -369,7 +369,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -399,15 +399,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>Watched_ValueN</code> seleccionadas cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>Watched_ValueN</code>-Spalte hat sich geändert."
|
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>watchedValueN</code>-Spalte hat sich geändert."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -478,7 +478,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -493,7 +493,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -517,7 +517,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -541,7 +541,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -560,7 +560,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
@@ -575,7 +575,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -590,7 +590,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
@@ -633,7 +633,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -656,7 +656,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"mapped_to_column": "scanLastConnection",
|
"mapped_to_column": "scanLastConnection",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -680,7 +680,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ Inside the container, a Python version of speedtest often exists in the virtual
|
|||||||
|
|
||||||
### Data Mapping
|
### Data Mapping
|
||||||
|
|
||||||
- **Watched_Value1** — Download Speed (Mbps).
|
- **watchedValue1** — Download Speed (Mbps).
|
||||||
- **Watched_Value2** — Upload Speed (Mbps).
|
- **watchedValue2** — Upload Speed (Mbps).
|
||||||
- **Watched_Value3** — Full JSON payload (useful for n8n or detailed webhooks).
|
- **watchedValue3** — Full JSON payload (useful for n8n or detailed webhooks).
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
"params": [],
|
"params": [],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "url",
|
"type": "url",
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "threshold",
|
"type": "threshold",
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "threshold",
|
"type": "threshold",
|
||||||
@@ -233,7 +233,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -256,7 +256,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -342,7 +342,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -561,17 +561,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": [],
|
"default_value": [],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -591,15 +591,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Download speed (not recommended)</li><li><code>Watched_Value2</code> is Upload speed (not recommended)</li><li><code>Watched_Value3</code> is JSON payload for webhooks (schema varies by engine)</li><li><code>Watched_Value4</code> unused </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Download speed (not recommended)</li><li><code>watchedValue2</code> is Upload speed (not recommended)</li><li><code>watchedValue3</code> is JSON payload for webhooks (schema varies by engine)</li><li><code>watchedValue4</code> unused </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación si los valores seleccionados cambian. Use <code>CTRL + Clic</code> para seleccionar/deseleccionar. <ul> <li><code>Watched_Value1</code> es la velocidad de descarga (no recomendado)</li><li><code>Watched_Value2</code> es la velocidad de carga (no recomendado)</li><li><code>Watched_Value3</code> es la carga útil JSON para webhooks (el esquema varía según el motor)</li><li><code>Watched_Value4</code> no se usa </li></ul>"
|
"string": "Envíe una notificación si los valores seleccionados cambian. Use <code>CTRL + Clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es la velocidad de descarga (no recomendado)</li><li><code>watchedValue2</code> es la velocidad de carga (no recomendado)</li><li><code>watchedValue3</code> es la carga útil JSON para webhooks (el esquema varía según el motor)</li><li><code>watchedValue4</code> no se usa </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>Watched_Value1</code> ist die Download-Geschwindigkeit (nicht empfohlen)</li><li><code>Watched_Value2</code> ist die Upload-Geschwindigkeit (nicht empfohlen)</li><li><code>Watched_Value3</code> ist JSON-Payload für Webhooks (Schema variiert je nach Engine)</li><li><code>Watched_Value4</code> ist nicht in Verwendung </li></ul>"
|
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>watchedValue1</code> ist die Download-Geschwindigkeit (nicht empfohlen)</li><li><code>watchedValue2</code> ist die Upload-Geschwindigkeit (nicht empfohlen)</li><li><code>watchedValue3</code> ist JSON-Payload für Webhooks (Schema variiert je nach Engine)</li><li><code>watchedValue4</code> ist nicht in Verwendung </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -610,7 +610,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -640,15 +640,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que seleccionó <code>Watched_ValueN Las columnas </code> cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>Watched_ValueN</code>-Spalte hat sich geändert."
|
"string": "Benachrichtige nur bei diesen Status. <code>new</code> bedeutet ein neues eindeutiges (einzigartige Kombination aus PrimaryId und SecondaryId) Objekt wurde erkennt. <code>watched-changed</code> bedeutet eine ausgewählte <code>watchedValueN</code>-Spalte hat sich geändert."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -326,7 +326,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -362,7 +362,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -380,7 +380,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -418,7 +418,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -435,7 +435,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -452,7 +452,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -450,7 +450,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -469,7 +469,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -489,7 +489,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -509,7 +509,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -528,7 +528,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -571,7 +571,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -590,7 +590,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -609,7 +609,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -336,7 +336,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -351,7 +351,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -382,7 +382,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -398,7 +398,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_ip",
|
"type": "device_ip",
|
||||||
@@ -413,7 +413,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -429,7 +429,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -444,7 +444,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -459,7 +459,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "HelpVal1",
|
"column": "helpVal1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -493,7 +493,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -512,7 +512,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"show_ui": true,
|
"show_ui": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -367,7 +367,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -382,7 +382,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -397,7 +397,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -412,7 +412,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -290,10 +290,10 @@
|
|||||||
},
|
},
|
||||||
"default_value": [],
|
"default_value": [],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": [
|
"localized": [
|
||||||
"name",
|
"name",
|
||||||
@@ -316,15 +316,15 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Name</li><li><code>Watched_Value2</code> is Vendor</li><li><code>Watched_Value3</code> is Interface </li><li><code>Watched_Value4</code> is N/A </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Name</li><li><code>watchedValue2</code> is Vendor</li><li><code>watchedValue3</code> is Interface </li><li><code>watchedValue4</code> is N/A </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envía una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Valor_observado1</code> es Name</li><li><code>Valor_observado2</code> es Proveedor</li><li><code>Valor_observado3</code> es Interfaz </li><li><code>Valor_observado4</code> es N/A </li></ul>"
|
"string": "Envía una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es Name</li><li><code>watchedValue2</code> es Proveedor</li><li><code>watchedValue3</code> es Interfaz </li><li><code>watchedValue4</code> es N/A </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "de_de",
|
"language_code": "de_de",
|
||||||
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>Watched_Value1</code> ist der Namen</li><li><code>Watched_Value2</code> ist der Hersteller</li><li><code>Watched_Value3</code> ist das Interface </li><li><code>Watched_Value4</code> ist nicht in Verwendung </li></ul>"
|
"string": "Sende eine Benachrichtigung, wenn ein ausgwählter Wert sich ändert. <code>STRG + klicken</code> zum aus-/abwählen. <ul> <li><code>watchedValue1</code> ist der Namen</li><li><code>watchedValue2</code> ist der Hersteller</li><li><code>watchedValue3</code> ist das Interface </li><li><code>watchedValue4</code> ist nicht in Verwendung </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -522,7 +522,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -539,7 +539,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -557,7 +557,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -575,7 +575,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -593,7 +593,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -619,7 +619,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanLastQuery",
|
"mapped_to_column": "scanLastQuery",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -670,7 +670,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -695,7 +695,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -720,7 +720,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "regex.url_http_https",
|
"type": "regex.url_http_https",
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -553,17 +553,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1"],
|
"default_value": ["watchedValue1"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -579,11 +579,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is service type (e.g.: http, ssh)</li><li><code>Watched_Value2</code> is Status (open or closed)</li><li><code>Watched_Value3</code> unused </li><li><code>Watched_Value4</code> unused </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is service type (e.g.: http, ssh)</li><li><code>watchedValue2</code> is Status (open or closed)</li><li><code>watchedValue3</code> unused </li><li><code>watchedValue4</code> unused </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Watched_Value1</code> es el tipo de servicio (p. ej., http, ssh)</li><li><code>Watched_Value2</code> es el estado (abierto o cerrado)</li> <li><code>Watched_Value3</code> no utilizado </li><li><code>Watched_Value4</code> no utilizado </li></ul>"
|
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es el tipo de servicio (p. ej., http, ssh)</li><li><code>watchedValue2</code> es el estado (abierto o cerrado)</li> <li><code>watchedValue3</code> no utilizado </li><li><code>watchedValue4</code> no utilizado </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -594,7 +594,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -615,11 +615,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que seleccionó <code>Watched_ValueN Las columnas </code> cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ The following notification types are available based on the `NTFPRCS_INCLUDED_SE
|
|||||||
|
|
||||||
### `plugins`
|
### `plugins`
|
||||||
- Notifies when an event is triggered by a plugin.
|
- Notifies when an event is triggered by a plugin.
|
||||||
- These notifications depend on the plugin's configuration of the `Watched_Value1-4` values and the `<plugin>_REPORT_ON` settings.
|
- These notifications depend on the plugin's configuration of the `watchedValue1-4` values and the `<plugin>_REPORT_ON` settings.
|
||||||
|
|
||||||
## Device-Specific Overrides
|
## Device-Specific Overrides
|
||||||
|
|
||||||
|
|||||||
@@ -180,6 +180,150 @@
|
|||||||
"string": "You can specify a SQL where condition to filter out Events from notifications. For example <code>AND devLastIP NOT LIKE '192.168.3.%'</code> will always exclude any Event notifications for all devices with the IP starting with <code>192.168.3.%</code>."
|
"string": "You can specify a SQL where condition to filter out Events from notifications. For example <code>AND devLastIP NOT LIKE '192.168.3.%'</code> will always exclude any Event notifications for all devices with the IP starting with <code>192.168.3.%</code>."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"function": "TEXT_SECTION_HEADERS",
|
||||||
|
"type": {
|
||||||
|
"dataType": "boolean",
|
||||||
|
"elements": [
|
||||||
|
{ "elementType": "input", "elementOptions": [{ "type": "checkbox" }], "transformers": [] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_value": true,
|
||||||
|
"options": [],
|
||||||
|
"localized": ["name", "description"],
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Text Section Headers"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Enable or disable section titles (e.g. <code>🆕 New devices \\n---------</code>) in text notifications. Enabled by default for backward compatibility."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"function": "TEXT_TEMPLATE_new_devices",
|
||||||
|
"type": {
|
||||||
|
"dataType": "string",
|
||||||
|
"elements": [
|
||||||
|
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"options": [],
|
||||||
|
"localized": ["name", "description"],
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Text Template: New Devices"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Custom text template for new device notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eveMac}) - {eveIp}</code>. Leave empty for default formatting. Available fields: <code>{devName}</code>, <code>{eveMac}</code>, <code>{devVendor}</code>, <code>{eveIp}</code>, <code>{eveDateTime}</code>, <code>{eveEventType}</code>, <code>{devComments}</code>."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"function": "TEXT_TEMPLATE_down_devices",
|
||||||
|
"type": {
|
||||||
|
"dataType": "string",
|
||||||
|
"elements": [
|
||||||
|
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"options": [],
|
||||||
|
"localized": ["name", "description"],
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Text Template: Down Devices"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Custom text template for down device notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eveMac}) - {eveIp}</code>. Leave empty for default formatting. Available fields: <code>{devName}</code>, <code>{eveMac}</code>, <code>{devVendor}</code>, <code>{eveIp}</code>, <code>{eveDateTime}</code>, <code>{eveEventType}</code>, <code>{devComments}</code>."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"function": "TEXT_TEMPLATE_down_reconnected",
|
||||||
|
"type": {
|
||||||
|
"dataType": "string",
|
||||||
|
"elements": [
|
||||||
|
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"options": [],
|
||||||
|
"localized": ["name", "description"],
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Text Template: Reconnected"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Custom text template for reconnected device notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eveMac}) reconnected at {eveDateTime}</code>. Leave empty for default formatting. Available fields: <code>{devName}</code>, <code>{eveMac}</code>, <code>{devVendor}</code>, <code>{eveIp}</code>, <code>{eveDateTime}</code>, <code>{eveEventType}</code>, <code>{devComments}</code>."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"function": "TEXT_TEMPLATE_events",
|
||||||
|
"type": {
|
||||||
|
"dataType": "string",
|
||||||
|
"elements": [
|
||||||
|
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"options": [],
|
||||||
|
"localized": ["name", "description"],
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Text Template: Events"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Custom text template for event notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{devName} ({eveMac}) {eveEventType} at {eveDateTime}</code>. Leave empty for default formatting. Available fields: <code>{devName}</code>, <code>{eveMac}</code>, <code>{devVendor}</code>, <code>{eveIp}</code>, <code>{eveDateTime}</code>, <code>{eveEventType}</code>, <code>{devComments}</code>."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"function": "TEXT_TEMPLATE_plugins",
|
||||||
|
"type": {
|
||||||
|
"dataType": "string",
|
||||||
|
"elements": [
|
||||||
|
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_value": "",
|
||||||
|
"options": [],
|
||||||
|
"localized": ["name", "description"],
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Text Template: Plugins"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": [
|
||||||
|
{
|
||||||
|
"language_code": "en_us",
|
||||||
|
"string": "Custom text template for plugin event notifications. Use <code>{FieldName}</code> placeholders, e.g. <code>{plugin}: {objectPrimaryId} - {status}</code>. Leave empty for default formatting. Available fields: <code>{plugin}</code>, <code>{objectPrimaryId}</code>, <code>{objectSecondaryId}</code>, <code>{dateTimeChanged}</code>, <code>{watchedValue1}</code>, <code>{watchedValue2}</code>, <code>{watchedValue3}</code>, <code>{watchedValue4}</code>, <code>{status}</code>."
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"show_ui": true,
|
"show_ui": true,
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "device_name_mac",
|
"type": "device_name_mac",
|
||||||
@@ -329,7 +329,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -359,7 +359,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -374,7 +374,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -393,7 +393,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -412,7 +412,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -403,7 +403,7 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Hostname </li><li><code>Watched_Value2</code> is Parent Node </li><li><code>Watched_Value3</code> is Port </li><li><code>Watched_Value4</code> is SSID </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Hostname </li><li><code>watchedValue2</code> is Parent Node </li><li><code>watchedValue3</code> is Port </li><li><code>watchedValue4</code> is SSID </li></ul>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"function": "WATCH",
|
"function": "WATCH",
|
||||||
@@ -419,17 +419,17 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"type": {
|
"type": {
|
||||||
"dataType": "array",
|
"dataType": "array",
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -440,7 +440,7 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"function": "REPORT_ON",
|
"function": "REPORT_ON",
|
||||||
@@ -462,7 +462,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -542,7 +542,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -557,7 +557,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -581,7 +581,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -605,7 +605,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -621,7 +621,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanParentMAC",
|
"mapped_to_column": "scanParentMAC",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -637,7 +637,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanParentPort",
|
"mapped_to_column": "scanParentPort",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -653,7 +653,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"mapped_to_column": "scanSSID",
|
"mapped_to_column": "scanSSID",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -669,7 +669,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
@@ -712,7 +712,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -735,7 +735,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -758,7 +758,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ def main():
|
|||||||
# make sure the below mapping is mapped in config.json, for example:
|
# make sure the below mapping is mapped in config.json, for example:
|
||||||
# "database_column_definitions": [
|
# "database_column_definitions": [
|
||||||
# {
|
# {
|
||||||
# "column": "Object_PrimaryID", <--------- the value I save into primaryId
|
# "column": "objectPrimaryId", <--------- the value I save into primaryId
|
||||||
# "mapped_to_column": "scanMac", <--------- gets unserted into the CurrentScan DB table column scanMac
|
# "mapped_to_column": "scanMac", <--------- gets unserted into the CurrentScan DB table column scanMac
|
||||||
# watched1 = 'null' ,
|
# watched1 = 'null' ,
|
||||||
# figure a way to run my udpate script delayed
|
# figure a way to run my udpate script delayed
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -380,7 +380,7 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Device Name </li><li><code>Watched_Value2</code> is Parent Node MAC</li><li><code>Watched_Value3</code> is Parent Node Port </li><li><code>Watched_Value4</code> is Parent Node SSID </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Device Name </li><li><code>watchedValue2</code> is Parent Node MAC</li><li><code>watchedValue3</code> is Parent Node Port </li><li><code>watchedValue4</code> is Parent Node SSID </li></ul>"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"function": "WATCH",
|
"function": "WATCH",
|
||||||
@@ -392,17 +392,17 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"type": {
|
"type": {
|
||||||
"dataType": "array",
|
"dataType": "array",
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -413,7 +413,7 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"function": "REPORT_ON",
|
"function": "REPORT_ON",
|
||||||
@@ -435,7 +435,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -517,7 +517,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -532,7 +532,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -548,7 +548,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -564,7 +564,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -580,7 +580,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanParentMAC",
|
"mapped_to_column": "scanParentMAC",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -596,7 +596,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanParentPort",
|
"mapped_to_column": "scanParentPort",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -612,7 +612,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"mapped_to_column": "scanSSID",
|
"mapped_to_column": "scanSSID",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -628,7 +628,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
@@ -663,7 +663,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -678,7 +678,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -693,7 +693,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "HelpVal1",
|
"column": "helpVal1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -708,7 +708,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "HelpVal2",
|
"column": "helpVal2",
|
||||||
"mapped_to_column": "scanSite",
|
"mapped_to_column": "scanSite",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -724,7 +724,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "HelpVal3",
|
"column": "helpVal3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -441,7 +441,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -456,7 +456,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -472,7 +472,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -488,7 +488,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -504,7 +504,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -520,7 +520,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -535,7 +535,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -569,7 +569,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -584,7 +584,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -599,7 +599,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
{ "elementType": "input", "elementOptions": [], "transformers": [] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"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",
|
"default_value": "SELECT n.hwaddr AS objectPrimaryId, {s-quote}null{s-quote} AS objectSecondaryId, datetime() AS dateTimeChanged, na.ip AS watchedValue1, n.lastQuery AS watchedValue2, na.name AS watchedValue3, n.macVendor AS watchedValue4, {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": [],
|
"options": [],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -290,17 +290,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1", "Watched_Value2"],
|
"default_value": ["watchedValue1", "watchedValue2"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -316,11 +316,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is IP</li><li><code>Watched_Value2</code> is Last Query</li><li><code>Watched_Value3</code> is Name </li><li><code>Watched_Value4</code> is N/A </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is IP</li><li><code>watchedValue2</code> is Last Query</li><li><code>watchedValue3</code> is Name </li><li><code>watchedValue4</code> is N/A </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Watched_Value1</code> es IP</li><li><code>Watched_Value2</code> es Proveedor</li><li><code>Watched_Value3</code> is es Interfaz</li><li><code>Watched_Value4</code> es N/A</li></ul>"
|
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es IP</li><li><code>watchedValue2</code> es Proveedor</li><li><code>watchedValue3</code> is es Interfaz</li><li><code>watchedValue4</code> es N/A</li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -331,7 +331,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -369,7 +369,7 @@
|
|||||||
|
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -384,7 +384,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -419,7 +419,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -439,7 +439,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanLastQuery",
|
"mapped_to_column": "scanLastQuery",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -455,7 +455,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -471,7 +471,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -510,7 +510,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -529,7 +529,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"data_source": "script",
|
"data_source": "script",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Plugin",
|
"column": "plugin",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"mapped_to_column": "scanLastConnection",
|
"mapped_to_column": "scanLastConnection",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -217,7 +217,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "UserData",
|
"column": "userData",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": false,
|
"show": false,
|
||||||
"type": "textbox_save",
|
"type": "textbox_save",
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Extra",
|
"column": "extra",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -297,7 +297,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
@@ -658,17 +658,17 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"default_value": ["Watched_Value1"],
|
"default_value": ["watchedValue1"],
|
||||||
"options": [
|
"options": [
|
||||||
"Watched_Value1",
|
"watchedValue1",
|
||||||
"Watched_Value2",
|
"watchedValue2",
|
||||||
"Watched_Value3",
|
"watchedValue3",
|
||||||
"Watched_Value4"
|
"watchedValue4"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
@@ -684,11 +684,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>Watched_Value1</code> is Hostname (not discoverable) </li><li><code>Watched_Value2</code> is Router IP </li><li><code>Watched_Value3</code> is not used </li><li><code>Watched_Value4</code> is not used </li></ul>"
|
"string": "Send a notification if selected values change. Use <code>CTRL + Click</code> to select/deselect. <ul> <li><code>watchedValue1</code> is Hostname (not discoverable) </li><li><code>watchedValue2</code> is Router IP </li><li><code>watchedValue3</code> is not used </li><li><code>watchedValue4</code> is not used </li></ul>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>Watched_Value1</code> es el nombre de host (no detectable) </li><li><code>Watched_Value2</code> es la IP del enrutador </li><li><code>Watched_Value3< /code> no se utiliza </li><li><code>Watched_Value4</code> no se utiliza </li></ul>"
|
"string": "Envíe una notificación si los valores seleccionados cambian. Utilice <code>CTRL + clic</code> para seleccionar/deseleccionar. <ul> <li><code>watchedValue1</code> es el nombre de host (no detectable) </li><li><code>watchedValue2</code> es la IP del enrutador </li><li><code>watchedValue3</code> no se utiliza </li><li><code>watchedValue4</code> no se utiliza </li></ul>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -699,7 +699,7 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"elementType": "select",
|
"elementType": "select",
|
||||||
"elementOptions": [{ "multiple": "true" }],
|
"elementOptions": [{ "multiple": "true", "ordeable": "true"}],
|
||||||
"transformers": []
|
"transformers": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -725,11 +725,11 @@
|
|||||||
"description": [
|
"description": [
|
||||||
{
|
{
|
||||||
"language_code": "en_us",
|
"language_code": "en_us",
|
||||||
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>Watched_ValueN</code> columns changed."
|
"string": "Send a notification only on these statuses. <code>new</code> means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. <code>watched-changed</code> means that selected <code>watchedValueN</code> columns changed."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"language_code": "es_es",
|
"language_code": "es_es",
|
||||||
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>Watched_ValueN</code> seleccionadas cambiaron."
|
"string": "Envíe una notificación solo en estos estados. <code>new</code> significa que se descubrió un nuevo objeto único (una combinación única de PrimaryId y SecondaryId). <code>watched-changed</code> significa que las columnas <code>watchedValueN</code> seleccionadas cambiaron."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -667,7 +667,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -684,7 +684,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -710,7 +710,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -736,7 +736,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -754,7 +754,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanVendor",
|
"mapped_to_column": "scanVendor",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -772,7 +772,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"mapped_to_column": "scanSyncHubNode",
|
"mapped_to_column": "scanSyncHubNode",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -790,7 +790,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -836,7 +836,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -861,7 +861,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -886,7 +886,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
@@ -187,9 +187,10 @@ def main():
|
|||||||
with open(file_path, 'r') as f:
|
with open(file_path, 'r') as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
for device in data['data']:
|
for device in data['data']:
|
||||||
if device['devMac'] not in unique_mac_addresses:
|
device['devMac'] = str(device['devMac']).lower()
|
||||||
|
if device['devMac'].lower() not in unique_mac_addresses:
|
||||||
device['devSyncHubNode'] = syncHubNodeName
|
device['devSyncHubNode'] = syncHubNodeName
|
||||||
unique_mac_addresses.add(device['devMac'])
|
unique_mac_addresses.add(device['devMac'].lower())
|
||||||
device_data.append(device)
|
device_data.append(device)
|
||||||
|
|
||||||
# Rename the file to "processed_" + current name
|
# Rename the file to "processed_" + current name
|
||||||
@@ -206,7 +207,7 @@ def main():
|
|||||||
# Retrieve existing devMac values from the Devices table
|
# Retrieve existing devMac values from the Devices table
|
||||||
placeholders = ', '.join('?' for _ in unique_mac_addresses)
|
placeholders = ', '.join('?' for _ in unique_mac_addresses)
|
||||||
cursor.execute(f'SELECT devMac FROM Devices WHERE devMac IN ({placeholders})', tuple(unique_mac_addresses))
|
cursor.execute(f'SELECT devMac FROM Devices WHERE devMac IN ({placeholders})', tuple(unique_mac_addresses))
|
||||||
existing_mac_addresses = set(row[0] for row in cursor.fetchall())
|
existing_mac_addresses = set(row[0].lower() for row in cursor.fetchall())
|
||||||
|
|
||||||
# insert devices into the last_result.log and thus CurrentScan table to manage state
|
# insert devices into the last_result.log and thus CurrentScan table to manage state
|
||||||
for device in device_data:
|
for device in device_data:
|
||||||
@@ -222,13 +223,17 @@ def main():
|
|||||||
extra = '',
|
extra = '',
|
||||||
foreignKey = device['devGUID'])
|
foreignKey = device['devGUID'])
|
||||||
|
|
||||||
# Filter out existing devices
|
# Resolve the actual columns that exist in the Devices table once.
|
||||||
new_devices = [device for device in device_data if device['devMac'] not in existing_mac_addresses]
|
# This automatically excludes computed/virtual fields (e.g. devStatus,
|
||||||
|
# devIsSleeping) and 'rowid' without needing a maintained exclusion list.
|
||||||
|
cursor.execute("PRAGMA table_info(Devices)")
|
||||||
|
db_columns = {row[1] for row in cursor.fetchall()}
|
||||||
|
|
||||||
# Remove 'rowid' key if it exists
|
# Filter out existing devices
|
||||||
for device in new_devices:
|
new_devices = [
|
||||||
device.pop('rowid', None)
|
device for device in device_data
|
||||||
device.pop('devStatus', None)
|
if device['devMac'].lower() not in existing_mac_addresses
|
||||||
|
]
|
||||||
|
|
||||||
mylog('verbose', [f'[{pluginName}] All devices: "{len(device_data)}"'])
|
mylog('verbose', [f'[{pluginName}] All devices: "{len(device_data)}"'])
|
||||||
mylog('verbose', [f'[{pluginName}] New devices: "{len(new_devices)}"'])
|
mylog('verbose', [f'[{pluginName}] New devices: "{len(new_devices)}"'])
|
||||||
@@ -236,13 +241,15 @@ def main():
|
|||||||
# Prepare the insert statement
|
# Prepare the insert statement
|
||||||
if new_devices:
|
if new_devices:
|
||||||
|
|
||||||
# creating insert statement, removing 'rowid', 'devStatus' as handled on the target and devStatus is resolved on the fly
|
# Only keep keys that are real columns in the target DB; computed
|
||||||
columns = ', '.join(k for k in new_devices[0].keys() if k not in ['rowid', 'devStatus'])
|
# or unknown fields are silently dropped regardless of source schema.
|
||||||
placeholders = ', '.join('?' for k in new_devices[0] if k not in ['rowid', 'devStatus'])
|
insert_cols = [k for k in new_devices[0].keys() if k in db_columns]
|
||||||
|
columns = ', '.join(insert_cols)
|
||||||
|
placeholders = ', '.join('?' for _ in insert_cols)
|
||||||
sql = f'INSERT INTO Devices ({columns}) VALUES ({placeholders})'
|
sql = f'INSERT INTO Devices ({columns}) VALUES ({placeholders})'
|
||||||
|
|
||||||
# Extract values for the new devices
|
# Extract only the whitelisted column values for each device
|
||||||
values = [tuple(device.values()) for device in new_devices]
|
values = [tuple(device.get(col) for col in insert_cols) for device in new_devices]
|
||||||
|
|
||||||
mylog('verbose', [f'[{pluginName}] Inserting Devices SQL : "{sql}"'])
|
mylog('verbose', [f'[{pluginName}] Inserting Devices SQL : "{sql}"'])
|
||||||
mylog('verbose', [f'[{pluginName}] Inserting Devices VALUES: "{values}"'])
|
mylog('verbose', [f'[{pluginName}] Inserting Devices VALUES: "{values}"'])
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"mapped_to_table": "CurrentScan",
|
"mapped_to_table": "CurrentScan",
|
||||||
"data_filters": [
|
"data_filters": [
|
||||||
{
|
{
|
||||||
"compare_column": "Object_PrimaryID",
|
"compare_column": "objectPrimaryId",
|
||||||
"compare_operator": "==",
|
"compare_operator": "==",
|
||||||
"compare_field_id": "txtMacFilter",
|
"compare_field_id": "txtMacFilter",
|
||||||
"compare_js_template": "'{value}'.toString()",
|
"compare_js_template": "'{value}'.toString()",
|
||||||
@@ -569,7 +569,7 @@
|
|||||||
],
|
],
|
||||||
"database_column_definitions": [
|
"database_column_definitions": [
|
||||||
{
|
{
|
||||||
"column": "Index",
|
"column": "index",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "none",
|
"type": "none",
|
||||||
@@ -586,7 +586,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_PrimaryID",
|
"column": "objectPrimaryId",
|
||||||
"mapped_to_column": "scanMac",
|
"mapped_to_column": "scanMac",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -604,7 +604,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Object_SecondaryID",
|
"column": "objectSecondaryId",
|
||||||
"mapped_to_column": "scanLastIP",
|
"mapped_to_column": "scanLastIP",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -622,7 +622,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "watchedValue1",
|
||||||
"mapped_to_column": "scanName",
|
"mapped_to_column": "scanName",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -640,7 +640,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "watchedValue2",
|
||||||
"mapped_to_column": "scanType",
|
"mapped_to_column": "scanType",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -658,7 +658,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "watchedValue3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -675,7 +675,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value4",
|
"column": "watchedValue4",
|
||||||
"mapped_to_column": "scanParentMAC",
|
"mapped_to_column": "scanParentMAC",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
@@ -714,7 +714,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeCreated",
|
"column": "dateTimeCreated",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -731,7 +731,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "DateTimeChanged",
|
"column": "dateTimeChanged",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
@@ -748,7 +748,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Status",
|
"column": "status",
|
||||||
"css_classes": "col-sm-1",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "replace",
|
"type": "replace",
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user