Live data from Hacker News

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

nicolargo.github.com

41–50 of 59 posts

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

#41

Seems cool but I could not get this to install on Ubuntu 8 (old I know) ... even trying to do a wget gave me this error "ERROR: Certificate verification error for github.com: unable to get local issuer certificate"

Use wget with --no-check-certificate or change https to http

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

#42

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.

What is preferred?

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

#44
post #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.

Not Mac-able because it depends on procfs.

uch a tease:

The excellent Amit Singh rants about how useful procfs is and how Mac doesn't have it, but then says it's not really needed, and then almost builds it anyway, then gives up due to unrelated hardware problems:

http://osxbook.com/book/bonus/ancient/procfs/

(2003)

This case is one of the more blatant demonstrations showing the superiority of The Unix Way of "everything is a file. "

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

#45
post #3

You'll probably want to change the name. HP/UX has similar performance monitoring tools named Glance and GlancePlus that are unlocked via license keys. These tools have been around for at least 15 years, they are installed with the base OS (and thus are well known within the community), and perform the same functions as your software (performance monitoring).

Also it looks like the font the interface uses is a bit rounded. I'd recommend something blockier to prevent litigation.

I know you're trolling, but I'll throw this out anyway-

This is a CLI. Usually the font is chosen by the term emulator, not the program.

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

#46
post #42

Earlier quoted context omitted.

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.

What is preferred?

Typically you just leave off the sudo and recommend people to just run pip install mything. That's the only thing required, unless you have a Python that has its `site-packages` directory in a place that isn't user writable, for which people who are in this situation are generally aware of the proper solution (which I'll mention in a sec anyhow).

You should essentially never use sudo to install any package, since even besides any security issues, it can clobber things on your system that are necessary for your OS (by say, upgrading a package that your OS ships with).

I happen to not use my system's shipped Python at all, since I'm on OSX, but if you are using it, you want to use `pip install --user mything`, no sudo necessary.

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

#48
Not sure how this would work from a UI perspective but it'd be nice if you could add other servers to be monitored. So instead of me having 20+ terminal windows open, ssh'd into each box and running this app, I could run this app from a central server that's showing all of them together.

Again, I have no idea how to present that nicely.

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

#50

Not sure how this would work from a UI perspective but it'd be nice if you could add other servers to be monitored. So instead of me having 20+ terminal windows open, ssh'd into each box and running this app, I could run this app from a central server that's showing all of them together. Again, I have no idea how to present that nicely.

Something like screen or byobu?
Post reply on HN