Giter VIP home page Giter VIP logo

ntop's Introduction

NTop

Latest Release License: GPL v3

htop-like system-monitor with Vi-emulation for Windows. Because using Task Manager is not cool enough.

NTop

NTop as in Windows NT-op or NukeTop. Whatever you prefer (the latter obviously).

Installation

Chocolatey

$ choco install ntop.portable

Scoop

$ scoop install ntop

Winget

$ winget install gsass1.NTop

Usage

Options

Option Meaning
-C Use monochrome color scheme.
-h Display help info.
-p PID, PID... Show only the given PIDs.
-n NamePart, NamePart... Show only processes containing at least one of the name parts.
-s COLUMN Sort by this column.
-u USERNAME Only display processes belonging to this user.
-v Print version.

Interactive commands

Key(s) Purpose
Up and Down Arrows, PgUp and PgDown, j and k Scroll the process list.
CTRL + Left and Right Arrows Change the process sort column.
g Go to the top of the process list.
G Go to the bottom of the process list.
Space Tag a selected process.
U Untag all tagged processes.
K Kill all tagged processes.
I Invert the sort order.
F Follow process: if the sort order causes the currently selected process to move in the list, make the selection bar follow it. Moving the cursor manually automatically disables this feature.
n Next in search.
N Previous in search.

Vi commands

Command(s) Purpose
:exec CMD Executes the given Windows command.
:kill PID(s) Kill all given processes.
:q, :quit Quit NTop.
/PATTERN, :search PATTERN Do a search.
:sort COLUMN Sort the process list after the given column.
:tree View process tree.

Configuration

The color scheme can be customized through the ntop.conf file. Follow link for example.

Building

Use CMake or use the build.bat file. Only tested with Visual Studio 2017.

$ cmake . # For enabling Unicode support: cmake -DENABLE_UNICODE=ON .

TODO

  • Figure out buggy resizing.
  • View process tree.
  • Searching.
  • Filtering.
  • All of htop's command line options.
  • At least the most important interactive commands (e.g. following processes).

ntop's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntop's Issues

Please add filter

In htop there is a way to filter the list to a pattern. This would be the best possible feature to add here.

the most important to me -- will it possible to kill a process that owned by system user

As we know , the system account in windows is like the root account in Linux -- the most power user.

There are many process or services run as system user, include windows itself service and 3rd software like antivirus software - more detail ,let's say it's symantec endpoint protection

Sometimes antivirus software just do some shitty things , I just want to kill it to continue my job.

Let's say we have bellow scenario:
ntop is running under my account: xxx.xx , and my account is in the local administrators group, will it possible to elevate current account to system account by ntop itself, in order to kill the process run as system account.

Feature Request: ability to configure refresh rate

I am using ntop on a rather underpowered box. (Its actually a Pentium NUC running Ubuntu, and Windows 10 is running under VirtualBox, and then I SSH into Windows 10 and run ntop over SSH). With the default refresh rate of every second, ntop pegs CPU usage at 100%. I'd like to reconfigure it to refresh every 5 seconds instead, but there doesn't appear to be any option to do this other than edit source code and recompile.

Report CPU usage by core

Not sure if the windows APIs would support such a feature, but it would be great if ntop could report usage by each CPU core (similar to how to htop is doing)

run NTop on remote computer

I remember , I can run ntop on remote computer when I remote to a computer with powershell. I think it was in 2019,
But I find I can not do that now.
Is there anything change that cause fail to run it remotely ,any advise ?

the backcolor of ntop look odd in Powershell

I work in powershell much more than in cmd enviroment .

When runs ntop in powershell ,the color or the Backcolor looks odd in powershell , but work well in cmd.

It seems work well if you run the ntop.exe only within powershell , but when you try the option like ntop.exe -h , you will see the problem. see bellow image for more detail

psvscmd

Header with blue background jumps every update time

When ntop is working, the header disapeares and reappeares each update time (regardless if it's in cmd.exe or ConEmu), which looks like everything jumps up and down. I installed it from chocolatey. Here the screenshots:
3
2

64bits

Please, anyone seems for 64bits processors for NTop.

The layout is not good

The layout seems has a little mess ,please see bellow image.
Could you please align the value of every column to left or right , not to the center .

layout_is_bad

Add vi-style command-processing

Only using shortcuts seems limiting. Let's add a "vi-mode" with which we can input commands.

My ideas for some nice commands to implement would be:

  • / for searching
  • q for quit
  • sort COLUMN for sorting
  • dump - dump entire list of processes to file
  • commands for creating multiple tabs maybe?

Feature: In-Application Help Menu

Right now, I have to run ntop -h to know the in-application controls. See the image of HTOP below for the idea. Maybe having F1 toggle the more detailed help menu of the -h command?

image

Values don't match Windows task manager?

I've tried this on a couple PCs at this point, one Win 11 and one 10. They both have similar results. NTop reports significantly lower utilization than Windows Task Manager for any given process (I've tested with a browser on a CPU load test site, Unity apps, etc).

The weird thing is that I only found NTop because I was trying to do this with PowerShell and it was inaccurate. The inaccuracies for Get-Process and Get-Counter seem to be similar to NTop. Again, I've tried this on multiple systems. What is going on?

Here's an example: https://imgur.com/gyApdCS

Large PID wrecks the formatting

Large PID ( 7+ Digits) wrecks the formatting, so before rendering ntop should figure out the max length of PID is and take this into consideration

Request Network Activity feature in this tool

Today , one of user complain that why her outlook's connection so slowly. she didn't see any new email in her mailbox . but someone already sent her many new emails in this morning.

Then I came up with an idea , will it possible to add the network usage (Receive (B/sec) Total (B/sec)) for each process in this tool.

Under the GUI of Resource Monitor ,in the tab of Network , we can see an area called Network Activity , it list image , PID, Address, Send(B/sec), Receive(B/sec), Total(B/sec).

I hope you add network usage {Send(B/sec), Receive(B/sec), Total(B/sec).} into your tool , maybe looks like too many feature inside this tool .

I prefer you can make these features into an individual tool , name it with Ntna or just Na (Network Activity).

na

Thank you!

Show command line arguments for processes

For processes like java.exe you can't differentiate between instances unless you can see what the command line arguments are. The command in top is "c". It seems to be the default behavior for htop to show the command line arguments.

Username is showing up as SYSTEM on Remote Desktop Server

For some reason, all usernames (except Administrator where I'm running ntop) show up as SYSTEM when I try to run it on a remote desktop server. The processes are there, just USER is showing as SYSTEM. Any idea why or how to fix?

image

Where is the expected location of ntop.conf

There is no ntop.conf created during installation. So I created one using the example content from the Readme page. But I do not know where to put it! I tried putting it under C:\ProgramData\chocolatey\bin\ and C:\Users\MyUsername\ and into a folder that is in the PATH. None of it worked. Where is the expected location of ntop.conf?

:kill by name (or regexp)

Using :kill <ID> is a very specific action, and very helpful for sure. But I believe the ability to kill every process with a specific name would be handy for many as well. If a program runs multiple processes, it can be a bother to kill it entirely with NTop. You'd have to :search for the name and mark every process that comes up, and only then you'd be able to kill it with shift-k.
Maybe you could even include regexp searching.

Let's take Firefox as an example. You'd have to :search firefox and spam n & space, then finish it off with shift-k to actually close that program. It'd be much more efficient to just use :kill firefox.

Could you please add disk usage for each process in this program

Hello ,

With GUI task manager , we can see CPU, memory , disk usage for each process.
But in your current program , it miss disk usage for each process,
Will it possible to add it to this program for you ?

Of course , it is still very very cool without that part to windows platform.
Hope to have good news from you!

BR

how to filter a process

Let's say I have a process notepad.exe

I want to search it by enter : notepad

then I hope that process can be highlight, then I can tag it and kill it or do something else.

BR

Sort by memory is not sorted correctly

I have processes that have high memory usage
1
Image above shown using "-s mem"

but on the bottom of those processes, I have 2 high mem usage that did not got sorted
2

Add system load average calculation

In htop, there is a system load average value indicators. Due to the platform's missing feature, it could be not easy to calculate and display system load average values in Windows. But recently I found someone implemented this feature in Windows with Python.

I wish if you can add this feature to Ntop utility.

https://github.com/giampaolo/psutil/blob/1358fb7d734878b7e238c39af93ec19dfbe7c77e/psutil/arch/windows/wmi.c
giampaolo/psutil#1485
https://psutil.readthedocs.io/en/latest/#psutil.getloadavg

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.