Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ntopng fill the disk #6158

Closed
gsanchietti opened this issue May 8, 2020 · 8 comments
Closed

Ntopng fill the disk #6158

gsanchietti opened this issue May 8, 2020 · 8 comments
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@gsanchietti
Copy link
Member

Ntopng is inefficient when managing the top_talkers database.

After months of work, it can easy fill the disk of machines with low space on the root partition.

Examples:

 2.2G Apr 30 12:11 /var/tmp/ntopng/0/top_talkers/top_talkers.db
 3.8G Apr  9 01:06 /var/tmp/ntopng/0/top_talkers/top_talkers.db

Proposed solution

Clean up the top_talker database once a week.

@gsanchietti gsanchietti added the bug A defect of the software label May 8, 2020
gsanchietti added a commit to NethServer/nethserver-ntopng that referenced this issue May 8, 2020
@nethbot
Copy link
Member

nethbot commented May 8, 2020

in 7.8.2003/testing:

@gsanchietti
Copy link
Member Author

Test case
Check the bug is not repdoucible

@gsanchietti gsanchietti added the testing Packages are available from testing repositories label May 8, 2020
@DavidePrincipi DavidePrincipi added this to ⚙ Developing in NethServer 7 May 8, 2020
@stephdl stephdl self-assigned this May 14, 2020
@stephdl
Copy link

stephdl commented May 14, 2020

I have some doubts on the QA @giacomo

[root@ns7loc14 ~]# ll /etc/cron.weekly/ntopng-cleanup
-rw-r--r-- 1 root root 171 May  8 10:09 /etc/cron.weekly/ntopng-cleanup

I thought that cron in hourly, daily, weekly should be executable file. At least I cannot test your bash file manually

@stephdl
Copy link

stephdl commented May 14, 2020

Once the file /etc/cron.weekly/ntopng-cleanup is chmod a+x, the files are removed and the service is restarted

[root@ns7loc14 ~]# ll /var/tmp/ntopng/*/top_talkers/top_talkers.db
-rw-r--r-- 1 nobody nobody 0 May 14 17:16 /var/tmp/ntopng/0/top_talkers/top_talkers.db
-rw-r--r-- 1 nobody nobody 0 May 14 17:16 /var/tmp/ntopng/1/top_talkers/top_talkers.db
-rw-r--r-- 1 nobody nobody 0 May 14 17:16 /var/tmp/ntopng/2/top_talkers/top_talkers.db

@gsanchietti
Copy link
Member Author

I thought that cron in hourly, daily, weekly should be executable file. At least I cannot test your bash file manually

Indeed, it's a bug. The fix is coming!

@nethbot
Copy link
Member

nethbot commented May 14, 2020

in 7.8.2003/testing:

@stephdl
Copy link

stephdl commented May 14, 2020

verified

The cron is executable

@stephdl stephdl added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels May 14, 2020
@stephdl stephdl removed their assignment May 14, 2020
@nethbot
Copy link
Member

nethbot commented May 14, 2020

in 7.8.2003/updates:

NethServer 7 automation moved this from ⚙ Developing to 🗑 Done May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
No open projects
NethServer 7
🗑 Done
Development

No branches or pull requests

3 participants