Results 1 to 2 of 2

Thread: Getting network information per processes

  1. #1
    Join Date
    Nov 2007
    Beans
    2

    Getting network information per processes

    I am looking for how to get network usage per processes. I am hoping there is something in /proc that can help me with this. I am not looking to use another application unless its built into the OS and not just Ubuntu, but Debian, red-hat based and so on. I am writing a system monitor so the less applications the user needs to have installed the better. Currently I dont make the user install anything on there server(other than my agent) and would like to keep it that way.

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    1,861
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Getting network information per processes

    /proc/{pid}/net/netstat seems to have the required info (but you'll have to hunt for a description of the contents)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •