Howto- Install Monitorix in Ubuntu, Fedora and Centos

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

, which is a Perl daemon that is started automatically like any other system service, and a CGI script 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 and OpenBSD.

More info about Monitorix can be found in this Link

1- Installation

Install in Monitorix in Ubuntu

First we need to install some dependencies, open terminal and enter the following command:

sudo apt-get install apache2-mpm-itk apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbi-perl rrdtool librrds-perl libwww-perl libemail-date-format-perl libmime-lite-perl libmime-types-perl libnet-daemon-perl libplrpc-perl nullmailer

Now, download the  last release from Download  page (.deb package) and install it using the command:

sudo  dpkg -i  monitorix_2.5.0-izzy1_all.deb

Now start Monitorix and apache:

sudo /etc/init.d/monitorix start
sudo  /etc/init.d/apache2 restart

Now Brows to http://ip/monitorix to open Monitorix

Install in Centos/Fedora

on terminal en under  root run ;

yum install httpd rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI

Download  and  install the  rpm package

rpm -ivh http://www.monitorix.org/monitorix-2.5.0-1.noarch.rpm

start apache  and Monitorix

service monitorix start
service  httpd  restart

open your  browser and go to   http://ip/monitorix

2- Configuration:

Configuration file is  : /etc/monitorix.conf

Apache config:

onder Ubuntu/Mint   :  /etc/apache2/conf.d

onder Fedora/Centos   /etc/httpd/conf.d

To  allow connect to Monitorix  from any where,  change  the  config  apache  to Allow from all