Skip to content
Contents
GuidesOpenWrt

Why does the OpenWrt traffic graph grow while the nlbwmon file stays unchanged?

LuCI can show fresh totals hours before the accounting file changes. Check the live records, commit interval and backing filesystem separately.

LuCI can show fresh totals hours before the accounting file changes. Check the live records, commit interval and backing filesystem separately.

Check the period and both timers

Run these commands over SSH. Substitute your database_directory below. Download a small file through the gateway from a tracked device, wait one refresh interval and query JSON again.

uci show nlbwmon
nlbw -c list
nlbw -c json

refresh_interval updates active connection counters. commit_interval schedules database writes. In two isolated OpenWrt 25.12.6 x86/64 VMs we used 5 seconds and 24 hours respectively. If neither rx_bytes nor tx_bytes changes, check local_network, the device address and the actual gateway.

Request one commit

If your version supports commit, record the file state and request one write. Avoid scheduling this every minute.

ls -l /var/lib/nlbwmon
nlbw -c commit
ls -l /var/lib/nlbwmon
nlbw -c csv

In the serial log the receive count reached 112136 bytes while the file was still 36 bytes. After 0 ok it was 69 bytes. Both timestamps show the same minute. Compression and display precision make file size and time unreliable on their own. If the write fails, check logs, write permissions and free space.

OpenWrt 25.12.6 · nlbwmon · nlbw -c commit
OpenWrt 25.12.6 · nlbwmon · nlbw -c commit

Will the data survive a router reboot?

Restarting only nlbwmon preserved the period in our test. The directory was on tmpfs, which loses its contents on reboot. These checks are read-only.

readlink -f /var/lib/nlbwmon
df -h /var/lib/nlbwmon
OpenWrt 25.12.6 · nlbwmon · df · tmpfs
OpenWrt 25.12.6 · nlbwmon · df · tmpfs

For persistence, export the totals, stop the service cleanly and back up its database and configuration. Move to persistent storage mounted before startup. Check history and new traffic, then verify a reboot during maintenance. If mounting fails, stop the service, restore the original path and backup, then start again. Testing a commit requires no timer change.

Why the nlbwmon traffic graph waits for an external OUI lookup

Explore hardware

Comments