indicator-sysmonitor – Ubuntu application indicator to show system information

A useful simple application indicator to show various system information such as:

  • File system disk space usage
  • Network activity
  • Memory usage
  • CPU usage
  • Swap space usage

It also has a very useful “Run what you want and display the result” usage – I used it here to show if the internet is up or down – for example, your router could be working fine, but your ISP has pulled the plug on you!

If you come up with any interesting scripts, drop a comment with a paste.ubuntu.com link and share with others the fruit of your labours 🙂

The original maintainer has not released a version since Ubuntu Raring and for later Ubuntu versions.  No code commits in the launchpad PPA has been made since first quarter 2013.  I presume the project has been mothballed.

Thus I have forked the project, fixed a few bugs and made it available for 14.04 Trusty users.  Feel free to check out the code on GitHub and help out with the maintenance. N.B. I don’t know how to use bzr on Launchpad so sorry in advance to the maintainer … if you want the code back grab it!

I’ve reproduced the answer from my Ask Ubuntu article here – attribution is obviously with Stack Exchange since that’s where the answer was written.

internet up

enter image description here

internet down

enter image description here

how to for 14.04

It requires an indicator from my PPA together with a custom ping test script:

sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor
mkdir -p ~/scripts && cd ~/scripts

using:

gedit pingtest.sh

Copy and paste the code below into the new file and save & close.

Give the file execute permission:

chmod +x pingtest.sh

Start the indicator

indicator-sysmonitor &

Then in the indicator-preferences click New:

enter image description here

Then enter the details as shown:

enter image description here

i.e. use the command

$HOME/scripts/pingtest.sh

Click OK, followed by the following actions 1,2,3 & 4:

enter image description here

code

#!/bin/bash

if ping -c 1 -W 2 google.com > /dev/null; then
echo “Up”
else
echo “Down”
fi

Advertisements

5 thoughts on “indicator-sysmonitor – Ubuntu application indicator to show system information

  1. Pingback: Track CPU and Memory in Ubuntu Using Indicator-Sysmonitor | VSB Production

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s