Monitorix

From monitorix.org

The Monitorix Project
Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services and system resources as possible. It has been created to be used under production UNIX/Linux servers, but due to its simplicity and small size you may also use it on embedded devices as well.
It mainly consists of two programs; a collector called monitorix, a Perl daemon that it’s started automatically as any other system service, and a CGI called monitorix.cgi.

All of its development was initially created for monitoring Red Hat, Fedora and CentOS Linux systems, so this project was made keeping in mind these type of distributions. Today it runs on different GNU/Linux distributions and even in other UNIX systems, like FreeBSD.

Everytime monitorix is started it reads the configuration file from the path specified in the command line (using the -c option), and once checked, it creates the index.html file that will act as the Monitorix main page.

It also creates a file called $BASE_DIR/cgi-bin/monitorix.conf.path that includes the absolute path of the configuration file. This file will be read by monitorix.cgi to know the exact location of the configuration file. If by any reason monitorix.cgi is unable to locate this file, it will try two possible locations; /etc/monitorix.conf and /usr/local/etc/monitorix.conf.

Installation

Installation on a RedHat/Fedora/CentOS Linux

Install first the required packages.
yum install httpd rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI

or from:
RPMforge repository for Red Hat, CentOS and Fedora
EPEL repository
Download and install the Monitorix package.
wget http://www.monitorix.org/monitorix-n.n.n-1.noarch.rpm
rpm -ivh monitorix-n.n.n-1.noarch.rpm

(where n.n.n is the latest version)

Once succesfully installed, please take a look into the configuration file /etc/monitorix.conf to set the options according your system and enable or disable graphs.
Finally start Monitorix with:

service monitorix start

At this point, Monitorix will start gathering the system information based on the configuration set in monitorix.conf file, and after some minutes you should be able to see the results from your favorite browser pointing it at:
http://localhost/monitorix/

Don’t forget to (re)start the Apache web server!

Notes after installation

If your system has SELinux enabled by default it is possible your Monitorix graphs won’t be visible and you get lot of messages in /var/log/audit/audit.log and/or in /var/log/messages about access denied to the RRD database files. Take the proper actions to remedy this situation.

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....