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

Showing too many TCP connections #8

Open
Canteen43 opened this issue Jun 14, 2024 · 1 comment
Open

Showing too many TCP connections #8

Canteen43 opened this issue Jun 14, 2024 · 1 comment

Comments

@Canteen43
Copy link

Hi Pasqualerossi,

thanks for your great guide. I took a closer look at your monitoring.sh file and I think you are showing too many TCP connections because wc -l will also count the header. Find my proposed solution below. Also, is there a particular reason why you use these flags: neop?

Greets
Karl

ctcp=$(ss -neopt state established | wc -l)
ctcp=$(ss -Ht state established | wc -l)

@pasqualerossi
Copy link
Owner

Hi, thanks for your solution, create a pull request and I'll update the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants