2014-07-28

Xfce4 CPU, RAM, Network and Disk Monitoring Applet

When using Gnome or Xfce4, I always have the urge to monitor CPU, RAM, network and disk usage/throughput. This is the screenshot of my xfce4 panel:


To make it happened, I modified Ciriaco's source code to suit my need:

curl -L http://goo.gl/MO3lx5 > netmon.cpp
g++ -O3 -lrt netmon.cpp -o netmon
sudo mv netmon /usr/bin/

So when netmon program executed, it would give an XML ouput (note that enp1s0 is my network interface name):

netmon enp1s0 
<txt>D:   312 KB/s  | U:    15 KB/s  | CPU:  12% | RAM:  7008 MB | sdc:   .   . | sda:   .   . | sdb:   .   1 | sdf:   .   . | sde:   .   . | sdd:   .   . | sdg:   .   .</txt><tool> enp1s0:
    3102.07 MB received 
    261.08 MB sent 
 CPU usage:
     15.6% since boot 
 RAM usage:
     45.4% of 15436 MB</tool>

The next step is installing Generic Monitor Applet:

yaourt -Sy xfce4-genmon-plugin

Add it to your panel (right click on panel > Panel > Add New Item..), and configure it:

And your CPU, RAM, network and disk is now appeared on the panel ^_^)b

Disk monitoring notes:

  • dot means idle
  • zero means <1MB/s read/write
  • others in MB/s

3 comments :







  1. cpu monitor

    CPU Monitor is a lightweight Java app that uses Secure Shell (ssh) to scrape

    information from a server and chart its configuration and current load. It

    communicates directly with the server and as a result doesn’t require an agent to

    be running on the target. It currently supports Linux, Solaris and Mac OS servers

    with more OS’s coming shortly.
    CPU monitor is designed to be easy to configure and install and is sufficiently

    lightweight not to place an unacceptable burden on the server. It uses a simple

    XML file to specify the servers to monitor and is ideal for monitoring clustered

    configurations.

    It also allows the recording of the load to a file for further analysis

    The following features will be added shortly

    Support for AIX and HP-UX
    A Character mode
    A Table Mode
    Network Monitoring
    Further statistics collection
    Source code for information scraping. Allowing improvements on current

    statistic collection or support for new OS's

    more info

    http://egyvedio2015.blogspot.com/
    https://www.youtube.com/watch?v=iCYZPcaPWls

    ReplyDelete
    Replies
    1. well, that's seems not lightweight at all..

      Delete

THINK: is it True? is it Helpful? is it Inspiring? is it Necessary? is it Kind?