mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-26 03:13:14 -04:00
- Updated test cases to reflect new column names (eve_MAC -> eveMac, eve_DateTime -> eveDateTime, etc.) across various test files. - Modified SQL table definitions in the database cleanup and migration tests to use camelCase naming conventions. - Implemented migration tests to ensure legacy column names are correctly renamed to camelCase equivalents. - Ensured that existing data is preserved during the migration process and that views referencing old column names are dropped before renaming. - Verified that the migration function is idempotent, allowing for safe re-execution without data loss.
Overview
The plugin uses the MikroTik API to discover devices by retrieving DHCP lease information.
Prerequisites
- API must be enabled in
API > Interfaceson your MikroTik router. - A user must be created in
System > Userson your MikroTik router. Read-only permissions are recommended for security.
Usage
It is recommended to use this plugin in scheduled mode for continuous device discovery and monitoring.
In the Settings section of NetAlertX, provide the following parameters:
- MTSCAN_MT_HOST: IP address of the MikroTik router (default:
192.168.88.1). - MTSCAN_MT_PORT: Port for the MikroTik API (default:
8728). - MTSCAN_MT_USER: Username for the MikroTik router.
- MTSCAN_MT_PASS: Password for the MikroTik router.
Device name resolution order
To assign a meaningful device name, the plugin resolves it in the following order:
- Comment: The
commentfield in the MikroTik router's DHCP lease configuration. This is useful for naming static leases of known devies. - Hostname: The hostname provided by the device during DHCP negotiation.
- "(unknown)": as the fallback name, allowing other plugins to resolve the device name later.
Other info
- Version: 1.0
- Author: lookflying
- Maintainer(s): elraro, kamil-olszewski-devskiller
- Release Date: 12-Sep-2024