Hi there,
recently after to upgrade OpenWrt from 22.03.4 to .5, I reinstalled nlbwmon weeks later (forgot to reinstall..),
Now, it doesn't list old database from menu, only current data.
I tried to gunzipped the .db files from backup to /usr/share/nlbwmon/db, no luck:
config:
# uci show nlbwmon
nlbwmon.@nlbwmon[0]=nlbwmon
nlbwmon.@nlbwmon[0].refresh_interval='30s'
nlbwmon.@nlbwmon[0].database_interval='1'
nlbwmon.@nlbwmon[0].protocol_database='/usr/share/nlbwmon/protocols'
nlbwmon.@nlbwmon[0].database_directory='/mnt/ultra/tools/nlbwmon'
nlbwmon.@nlbwmon[0].database_compress='1'
nlbwmon.@nlbwmon[0].commit_interval='60s'
nlbwmon.@nlbwmon[0].database_limit='0'
nlbwmon.@nlbwmon[0].database_generations='0'
nlbwmon.@nlbwmon[0].netlink_buffer_size='10485760'
nlbwmon.@nlbwmon[0].local_network='192.168.0.0/16' 'lan'
db dir:
# ls -lh /mnt/ultra/tools/nlbwmon
-rw-r----- 1 root root 19.7K Oct 2 2022 20220901.db.gz
-rw-r----- 1 root root 22.6K Nov 1 2022 20221001.db.gz
-rw-r----- 1 root root 15.9K Dec 1 2022 20221101.db.gz
-rw-r----- 1 root root 22.1K Jan 1 00:00 20221201.db.gz
-rw-r----- 1 root root 15.2K Feb 1 00:00 20230101.db.gz
-rw-r----- 1 root root 17.2K Mar 1 00:00 20230201.db.gz
-rw-r----- 1 root root 16.9K Apr 1 00:00 20230301.db.gz
-rw-r----- 1 root root 13.5K Apr 19 04:48 20230401.db.gz
-rw-r----- 1 root root 8.6K Jun 23 23:11 20230601.db.gz
database unpacked:
# tried to gunzip some backups there, no luck
# ls -lh /usr/share/nlbwmon/db/
-rw-r----- 1 root root 57.3K Jun 23 22:39 20230101.db
-rw-r----- 1 root root 64.9K Jun 23 22:39 20230201.db
-rw-r----- 1 root root 59.7K Jun 23 22:39 20230301.db
-rw-r----- 1 root root 51.5K Jun 23 22:39 20230401.db
-rw-r----- 1 root root 21.1K Jun 23 22:39 20230601.db
# nlbw -c list
2023-06-01
memory stuff:
# sysctl -a 2>&1 | egrep 'rmem_max|wmem_max'
net.core.rmem_max = 10485760
net.core.wmem_max = 10485760
Before, all databases were listed. Why it is ignoring the old db?