GithubHelp home page GithubHelp logo

stollcri / nmond Goto Github PK

View Code? Open in Web Editor NEW
54.0 2.0 3.0 2.58 MB

Ncurses based System Performance Monitor for Darwin (Mac OS X)

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.64% C 98.36%

nmond's Introduction

Ncurses based System Performance Monitor for Darwin (Mac OS X)

This is a near complete rewrite of nmon (file lmon15g.c dated 2015-07-13). The original nmon would not run under OS X since Darwin (the version of BSD which underlies Mac OS X) does not provide a /proc directory; system calls needed to replace the reading of files in the /proc directory. Upon attempting to switch /proc file reads with system calls it quickly became apparent why no one else had performed the conversion; nmond is an older program, built using older development techniques, which had grow organically over the years. Simply swapping out the relevant code would have resulted in a buggy mess, so the entire program was restructured.

Since there is already a working version for Linux (and some UNIX distributions), this project does not seek to preserve compatibility with them. All of the special code required to work with those distros was be removed to make porting easier. The program was designed and tested for OS X, but the code should compile on any other BSD variant as well.

Screenshot of the nmond app

Building

Just type make in the nmond directory to build nmond. It can be installed by issuing the sudo make install command (this assumes that you have command line tools installed).

Issues

I do not spent much time updating this program anymore. Amazingly, it has continued to work even as Apple has updated some of the deep dark places in Darwin. If an issue does come up though, let me know and I will see what I can do. Just be sure to at me in the issue. I don't check the issues here much, so otherwise it could be a while before I notice that there is a new issue.

iTerm2

If you do not want your iTerm2 scrollback buffer filled up with copies of each refresh, then open the prefernces and go to Profiles > Terminal and uncheck "Save lines to scrollback in alternate screen mode". This can also reduce flickering.

A Note on Security

In order to get complete process information, without requiring the use of sudo, this program is owned by root and has its setuid bit set. This is also beta software. As a general rule, it is not wise to allow beta software to have elevated permissions on your system. However, the program does not actively involve itself with remote connections, so this should only be a concern if untrusted users are given command access to the computer on which nmond is installed. The program will operate without the setuid bit (sudo chmod u-s /usr/local/bin/nmond), but the information it displays will be inaccurate due to lack of access; that can be mitigated by invoking it with the sudo command.

Please consider your environment before installing this application, and be sure to read and understand the license agreement.

Potential Related Problems

Some systems have restrictions on the use of setuid programs. If the program does not give complete process information when run from a home directory, then the home directories disk may be mounted with the nosuid option. Mounting the home disk with nosuid is a sensible choice, the application should be installed to the /usr/local/bin directory.

nmond's People

Contributors

stollcri avatar

Stargazers

Loïc Maréchal avatar Mohamed Akram avatar David Klein avatar Mateusz Los avatar Bocke avatar Jarrian Gojar avatar Jeffrey H. Johnson avatar  avatar  avatar Lîm Tsú-thuàn avatar Tai An Su avatar Victor Bottacco avatar  avatar Frank Meeusen avatar  avatar FlyingSB avatar Smiles Davis avatar Justin England avatar Gump avatar Dominic Watley avatar William Allen avatar somnus avatar Gerd avatar Noel Errenil avatar ringsaturn avatar Evan Hutomo avatar JLA avatar 池边树下 avatar  avatar Fernando Leal avatar Serhii Babak avatar Tomas Kafka avatar juju avatar slzhu avatar Radu Toader avatar Filip Božanić Dimovski avatar Nikita avatar  avatar Krs avatar  avatar  avatar isa avatar Tony Lam avatar Arne Gockeln avatar Charles "Chuck" A. Fair avatar eg avatar John Gonzalez avatar  avatar  avatar Uriel Zajaczkovski avatar Ruben Schade avatar Charles Misson avatar François avatar Shoichi Ishida avatar

Watchers

James Cloos avatar  avatar

Forkers

ayyt radut zyclove

nmond's Issues

Getting the swap usage

Is it possible to provide a way to get the swap usage like the Linux implementation of nmon does ?

Here is an example of the nmon "memory usage" output (that contain the swap usage as well) on a Linux virtual machine:

Screen Shot 2019-11-03 at 1 35 46 PM

Thanks in advance.

Please implement file export for usage with nmonchart

I just started using nomn and nmonchart on my Linux systems and wanted to add my Macs as well. That's how I found this repo.
Now, I would like to ask if it was possible to add a file export, similar to original nmon so I can create nice graphs for my Macs?

@stollcri

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.