What installation are you running?
Production (netalertx) 📦
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
I have this many devices:
But the API gives these numbers:
(description: api-"connected" contains device number, api-favourites containes connected, api-new contains favorites or down, ...)
The output of /devices/totals seems broken as well, at least it is way longer than the documentation description (https://github.com/netalertx/NetAlertX/blob/main/docs/API_DEVICES.md#7-get-device-totals)
Expected Behavior
I'd expect the numbers in the webGUI and the API to match. Numbers in the GUI are correct, API is mixed up.
Steps To Reproduce
Just call the API endpoint /devices/totals/named
Relevant app.conf settings
docker-compose.yml
Debug or Trace enabled
Relevant app.log section
Docker Logs
P
Path | R | W | Mount | RAMDisk | Performance | DataLoss
--------------------------+---+---+-------+---------+-------------+----------
/data | ✅| ✅| ✅ | ➖ | ➖ | ✅
/data/db | ✅| ✅| ✅ | ➖ | ➖ | ✅
/data/config | ✅| ✅| ✅ | ➖ | ➖ | ✅
/tmp/run/tmp | ✅| ✅| ✅ | ✅ | ✅ | ✅
/tmp/api | ✅| ✅| ✅ | ✅ | ✅ | ✅
/tmp/log | ✅| ✅| ✅ | ✅ | ✅ | ✅
/tmp/run | ✅| ✅| ✅ | ✅ | ✅ | ✅
/tmp/nginx/active-config | ✅| ✅| ✅ | ✅ | ✅ | ✅
══════════════════════════════════════════════════════════════════════════════
⚠️ WARNING: ARP flux sysctls are not set.
Expected values:
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2
Note: If using 'network_mode: host', setting these via docker-compose sysctls
requires the NET_ADMIN capability. When granted, these sysctls will
modify the host namespace. Otherwise, you must configure them directly
on your host operating system instead.
Detection accuracy may be reduced until configured.
See: https://docs.netalertx.com/docker-troubleshooting/arp-flux-sysctls/
══════════════════════════════════════════════════════════════════════════════
/opt/venv/lib/python3.12/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.1.0)/charset_normalizer (3.4.5) doesn't match a supported version!
warnings.warn(
2026/03/15 20:02:49 [error] 241#241: *1315 open() "/app/front/devices/total" failed (2: No such file or directory), client: 192.168.188.19, server: , request: "GET /devices/total HTTP/1.1", host: "192.168.188.222:20211"
2026/03/15 20:02:49 [error] 241#241: *1315 open() "/app/front/favicon.ico" failed (2: No such file or directory), client: 192.168.188.19, server: , request: "GET /favicon.ico HTTP/1.1", host: "192.168.188.222:20211", referrer: "http://192.168.188.222:20211/devices/total"
2026/03/15 20:04:28 [error] 242#242: *1347 open() "/app/front/devices/total" failed (2: No such file or directory), client: 192.168.188.19, server: , request: "GET /devices/total HTTP/1.1", host: "192.168.188.222:20211"
2026/03/15 20:06:48 [error] 242#242: *1353 open() "/app/front/api/docs" failed (2: No such file or directory), client: 192.168.188.19, server: , request: "GET /api/docs HTTP/1.1", host: "192.168.188.222:20211"
2026/03/15 20:07:07 [error] 242#242: *1353 open() "/app/front/docs" failed (2: No such file or directory), client: 192.168.188.19, server: , request: "GET /docs HTTP/1.1", host: "192.168.188.222:20211"
2026/03/15 20:07:10 [error] 242#242: *1353 open() "/app/front/docs" failed (2: No such file or directory), client: 192.168.188.19, server: , request: "GET /docs HTTP/1.1", host: "192.168.188.222:20211"
_ _ _ ___ _ _ __ __
| \ | | | | / _ \| | | | \ \ / /
| \| | ___| |_/ /_\ \ | ___ _ __| |_ \ V /
| . |/ _ \ __| _ | |/ _ \ __| __|/ \
| |\ | __/ |_| | | | | __/ | | |_/ /^\ \
\_| \_/\___|\__\_| |_/_|\___|_| \__\/ \/
Network intruder and presence detector.
https://netalertx.com
Startup pre-checks
--> data migration.sh
--> capabilities audit.sh
--> mounts.py
--> first run config.sh
--> first run db.sh
--> mandatory folders.sh
* Creating NetAlertX log directory.
* Creating NetAlertX API cache.
* Creating System services runtime directory.
* Creating nginx active configuration directory.
* Creating Plugins log.
* Creating System services run log.
* Creating System services run tmp.
* Creating DB locked log.
* Creating Execution queue log.
--> apply conf override.sh
--> override individual settings.sh
--> host optimization.sh
--> writable config.sh
--> nginx config.sh
--> expected user id match.sh
--> host mode network.sh
--> excessive capabilities.sh
--> appliance integrity.sh
--> ports available.sh
Starting /usr/sbin/php-fpm83 -y "/services/config/php/php-fpm.conf" -F (tee stderr to app.php_errors.log)
Starting supercronic --quiet "/services/config/cron/crontab" >>"/tmp/log/cron.log" 2>&1 &
Starting python3 -m server > /tmp/log/stdout.log 2> >(tee /tmp/log/stderr.log >&2)
Starting /usr/sbin/nginx -p "/tmp/run/" -c "/tmp/nginx/active-config/nginx.conf" -g "error_log stderr; error_log /tmp/log/nginx-error.log; daemon off;" &
Successfully updated IEEE OUI database (113336 entries)
What installation are you running?
Production (netalertx) 📦
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
I have this many devices:
But the API gives these numbers:
(description: api-"connected" contains device number, api-favourites containes connected, api-new contains favorites or down, ...)
The output of /devices/totals seems broken as well, at least it is way longer than the documentation description (https://github.com/netalertx/NetAlertX/blob/main/docs/API_DEVICES.md#7-get-device-totals)
Expected Behavior
I'd expect the numbers in the webGUI and the API to match. Numbers in the GUI are correct, API is mixed up.
Steps To Reproduce
Just call the API endpoint /devices/totals/named
Relevant
app.confsettingsdocker-compose.yml
Debug or Trace enabled
Relevant
app.logsectionDocker Logs