Giter VIP home page Giter VIP logo

Comments (2)

drael avatar drael commented on July 20, 2024

Hi Pavel, thanks for the report!

Now may I ask you if you are running this machine on vmware ?
I'm asking because I notice the acpid process was connected on port 903 and now all the connection on this port are closed in TIME_WAIT, usually the port 903 is use by vcenter and I don't know why but these connection do not appear on netstat output like this guy have described on this post.

I notice that all ocurrences of the acpid process has the local (127.0.0.1:2003) foreign ip with is running a python process with I assume is graphite (carbon) that are running given the port and the language with makes more weird to me since the port 903 is involved.

My library parses the /proc/net/tcp and the tcp file descriptors from the process so the tcp event for acpid exist.
Now I'm not saying that this is not a bug I am just trying to understand your environment and reproduce the problem.

Also if you want get only the listened ports I think you should filter the output of your pogram by checking the state of the process

    tcp_listeners := GOnetstat.Tcp()
        for _, process := range tcp_listeners {
            if process.State == "LISTEN" {
                file_logger.Printf("Port %d listened by %v", process.Port, process)
            }
        }

from gonetstat.

pavel-odintsov avatar pavel-odintsov commented on July 20, 2024

Hello!

I'm using VirtualBOX isolation. Thanks for advice for state check! Will try
it!

On Thursday, 23 June 2016, Rafael Santos [email protected] wrote:

Hi Pavel, thanks for the report!

Now may I ask you if you are running this machine on vmware ?
I'm asking because I notice the acpid process was connected on port 903
and now all the connection on this port are closed in TIME_WAIT, usually
the port 903 is use by vcenter and I don't know why but these connection do
not appear on netstat output like this guy have described on this post
http://www.v-front.de/2011/07/mysterious-port-903.html.

I notice that all ocurrences of the acpid process has the local (
127.0.0.1:2003) foreign ip with is running a python process with I assume
is graphite (carbon) that are running given the port and the language with
makes more weird to me since the port 903 is involved.

My library parses the /proc/net/tcp and the tcp file descriptors from the
process so the tcp event for acpid exist.
Now I'm not saying that this is not a bug I am just trying to understand
your environment and reproduce the problem.

Also if you want get only the listened ports I think you should filter the
output of your pogram by checking the state of the process

tcp_listeners := GOnetstat.Tcp()
    for _, process := range tcp_listeners {
        if process.State == "LISTEN" {
            file_logger.Printf("Port %d listened by %v", process.Port, process)
        }
    }


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ACnfZhx5Z3lSfcUBvjfcG8l6JgoWBKFVks5qOpwVgaJpZM4I8h7V
.

Sincerely yours, Pavel Odintsov

from gonetstat.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.