Linux Dash, a Performance Monitoring Dashboard

Linux Dash is an open-source dashboard to monitor Linux servers. It prides itself on its simplicity and ease of use. It can be very handy to have a high-level dashboard for a server instance. With a wide array of modules for server statistics, it also serves as a great visual debugging tool.

It is a memory efficient, low resource, easy to install, server statistics monitoring script written in PHP. The web statistics page allows you to drag and drop the various widgets and rearrange the display as you desire. The script displays live statistics of your server, including RAM, CPU, Disk Space, Network Information, Installed Software’s, Running Processes and much more.

Features

Below you can find some Linux Dash features:

  • A responsive web based interface for monitoring server resources.
  • A real-time monitoring of CPU, RAM, Disk Usage, Load, Uptime, Users and many more system statistics.
  • Easy install for servers with Apache/Nginx + PHP.
  • Click and drag to re-organize widgets.
  • Support for wide range of Linux server flavours.
  • Pre-requisites for Installation

How To Install

Before you install Linux Dash, you need to install some technologies first.
Check them below:

  • A Linux server with Apache/Nginx installed.
  • A PHP and php-json extension installed.
  • A unzip utility installed on server.
  • Optionally, you need htpasswd installed, to password protect the statistics page on your server.

Now let’s install PHP, PHP modules and Apache on our Debian:

# apt-get install apache2 apache2-utils
# apt-get install php5 curl php5-curl php5-json
# service apache2 start

After you finish the first step, you need to download the code from GitHub and extract its contents into a sub-directory called ‘linux-dash‘ in your Apache public folder (i.e. /var/www or /var/www/html).

# git clone https://github.com/afaqurk/linux-dash.git

Now open your browser and navigate to the folder where you have ‘linux-dash‘ installed. If you follow the instructions, open your browser at http://localhost/linux-dash.

To password protect your statistics page, you need to generate an ‘.htaccess’ and ‘.htpasswd‘ file. The following command will create a user ‘admin‘, sets password ‘linuxey‘ and creates new ‘htpasswd‘ file under ‘/var‘ folder.

# htpasswd -c /var/.htpasswd admin linuxey

Now create a ‘.htaccess‘ file under ‘linux-dash‘ directory and add the following content to it. Save and close the file.

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/.htpasswd
AuthGroupFile /dev/null
require valid-user

That’s it, but remember to clear the cache. The next time you will see a login prompt.