-
Notifications
You must be signed in to change notification settings - Fork 81
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
Update GetNetOverflow function to use nstat instead of netstat #277
Comments
Hi @Dean-Coakley , @ja20222 . I would love to work on this issue. Could you throw some light on how I can begin? |
First I recommend following this section of our README to setup a development environment: https://github.com/nginx/agent#development-environment-setup If that goes ok, some steps to get started:
|
* use nstat -az * fix nginx#277 partially
* use nstat -az * fix nginx#277 partially
nstat
is installed on linux by default so we can use that instead of relying on netstat.To get the network overflow run the following command:
$ nstat -az | grep -i TcpExtListenOverflows
which will return the following output:
The NGINX Agent should parse the particular output and populate the float64 :
agent/src/core/network/network.go
Line 59 in 709e402
Ensure consistent output - Rocky Linux 9 (x86_64) and AlmaLinux 8 (x86_64), Ubuntu 22, RHEL 8, SUSE 15, FreeBSD 13 (pasted in the PR output)
The text was updated successfully, but these errors were encountered: