mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
1.3 KiB
Executable File
1.3 KiB
Executable File
Overview
A plugin allowing for importing devices from the PiHole database. This is an import plugin using an SQLite database as a source.
Usage
- You need to specify the following settings:
PIHOLE_RUNis used to enable the import by setting it e.g. toscheduleoronce(pre-set todisabled)PIHOLE_RUN_SCHDis to configure how often the plugin is executed ifPIHOLE_RUNis set toschedule(pre-set to every 30 min)PIHOLE_DB_PATHsetting must match the location of your PiHole database (pre-set to/etc/pihole/pihole-FTL.db)
Troubleshooting
Permission problems:
NetAlertX cannot read Pi-hole DB (/etc/pihole/pihole-FTL.db) due to permissions:
[Plugins] ⚠ ERROR: ATTACH DATABASE failed with SQL ERROR: unable to open database: /etc/pihole/pihole-FTL.db
Solution:
- Mount full Pi-hole directory (read-only):
volumes:
- /etc/pihole:/etc/pihole:ro
- Add NetAlertX to Pi-hole group:
group_add:
- 1001 # check with `getent group pihole`
Verify:
docker exec -it netalertx id
# groups=1001,... ✅ pihole group included
Notes:
- Avoid mounting single DB files.
- Keep mount read-only (
:ro) to protect Pi-hole data. - Use
group_addinstead of chmod.