Live data from Hacker News

Glances - an easy CLI overview of your system (CPU, mem, I/O)

nicolargo.github.com

31–40 of 59 posts

Re: Glances - an easy CLI overview of your system (CPU, mem, I/O)

#31
post #21

Is it on yum for centos? I was playing with htop but it's not really any better than top.

It might surprise you just how full featured and useful plain ole Linux top really is. I made a YouTube video based on a training session I did at my old job on how to configure top to show you a lot more interesting things than it does by default.

Shameless plug: http://www.youtube.com/watch?v=yFKRsLj_Jhg

Re: Glances - an easy CLI overview of your system (CPU, mem, I/O)

#36

The app looks really nice visually, a few points though: except Exception: pass is generally considered to be a code smell. The problem being that when you're catching all exception information and throwing it away you will never know what went wrong and where. If you're doing a try/except Exception nested inside another except Exception then I would humbly suggest that you really need to think about refactoring and…

Besides upvoting for agreement with all the above (I didn't review the code but certainly all this is worth fixing if present), I'll also say that you probably shouldn't recommend people using `sudo` to install your thing in your README / landing page.

Re: Glances - an easy CLI overview of your system (CPU, mem, I/O)

#37

Looks very nice. I'm a very happy user of iStat Menus for similar monitoring on OS X. One thing that iStat menus lacks, and I was hoping Glances had (but appears not to) is a "top" like viewer for what is using bandwidth. Both applications only give the overall bandwidth usage. I'll see my bandwidth shoot up hundreds of Kbps out of nowhere and quickly try to determine what's using it through combinations of looking a…

Have you tried iftop?

sigh.

There used to be this small, simple tool called "ntop" which did exactly that - top, but for active network connections.

Then the authors decided to go apeshit and add everything and the kitchen sink to it ... a GUI, an http server, all kinds of crazy features as they attempted to slot it as some kind of end-all-be-all enterprise monitoring software.

I had some hacked up source tarballs that continued to allow me to run the old, circa 2002 ntop on systems as old as FreeBSD 6.x, but it no longer compiles under 8.x.

tl;dr: ntop used to exist but the devs had dollar signs in their eyes and mutated it beyond all recognition.

Re: Glances - an easy CLI overview of your system (CPU, mem, I/O)

#38

Looks very nice. I'm a very happy user of iStat Menus for similar monitoring on OS X. One thing that iStat menus lacks, and I was hoping Glances had (but appears not to) is a "top" like viewer for what is using bandwidth. Both applications only give the overall bandwidth usage. I'll see my bandwidth shoot up hundreds of Kbps out of nowhere and quickly try to determine what's using it through combinations of looking a…

Nethogs (http://nethogs.sourceforge.net/) does what you want, but it's linux-only.

Re: Glances - an easy CLI overview of your system (CPU, mem, I/O)

#40
post #29
post #24

Earlier quoted context omitted.

Try atop. There's an overview at https://lwn.net/Articles/387202/ It's available through the EPEL yum repository http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/atop....

Not in its documentation, but atop requires root. If you're on a VM somewhere, you might be happier with htop or glances.

You can run atop without root, it just won't use process accounting so you may miss some processes (but so would htop and glances).

I'm not sure what being on a VM has to do with anything.

It would be nice if there was a way (e.g. a command-line argument or atoprc setting) to disable the ability to kill processes from within atop; then it would be safer for an admin to make it executable as root by regular users.

Post reply on HN