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

2 comments :

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