TranslateProject/sources/tech/20180925 Hegemon - A Modular System Monitor Application Written In Rust.md

3.0 KiB
Raw Blame History

Hegemon A Modular System Monitor Application Written In Rust

When it comes to monitor running processes in Unix-like systems, the most commonly used applications are top and htop , which is an enhanced version of top. My personal favorite is htop. However, the developers are releasing few alternatives to these applications every now and then. One such alternative to top and htop utilities is Hegemon. It is a modular system monitor application written using Rust programming language.

Concerning about the features of Hegemon, we can list the following:

  • Hegemon will monitor the usage of CPU, memory and Swap.
  • It monitors the systems temperature and fan speed.
  • The update interval time can be adjustable. The default value is 3 seconds.
  • We can reveal more detailed graph and additional information by expanding the data streams.
  • Unit tests
  • Clean interface
  • Free and open source.

Installing Hegemon

Make sure you have installed Rust 1.26 or later version. To install Rust in your Linux distribution, refer the following guide:

Install Rust Programming Language In Linux

Also, install libsensors library. It is available in the default repositories of most Linux distributions. For example, you can install it in RPM based systems such as Fedora using the following command:

$ sudo dnf install lm_sensors-devel

On Debian-based systems like Ubuntu, Linux Mint, it can be installed using command:

$ sudo apt-get install libsensors4-dev

Once you installed Rust and libsensors, install Hegemon using command:

$ cargo install hegemon

Once hegemon installed, start monitoring the running processes in your Linux system using command:

$ hegemon

Here is the sample output from my Arch Linux desktop.

To exit, press Q.

Please be mindful that hegemon is still in its early development stage and it is not complete replacement for top command. There might be bugs and missing features. If you came across any bugs, report them in the projects github page. The developer is planning to bring more features in the upcoming versions. So, keep an eye on this project.

And, thats all for now. Hope this helps. More good stuffs to come. Stay tuned!

Cheers!


via: https://www.ostechnix.com/hegemon-a-modular-system-monitor-application-written-in-rust/

作者:SK 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出