How to install Monitorix in Ubuntu

Monitorix-Logo-ubuntu

Monitorix is a free, open source, lightweight system monitoring tool designed to monitorize as many services as possible. At this time it monitors from the CPU load and temperatures to the users using the system. Network devices activity, network services demand and even the devices’ interrupt activity are also monitored, and more. The current status of any corporate server with Monitorix installed can be accessed via a web browser.

It has been designed to be used under production UNIX/Linux servers, but due its simplicity and small size you may also use it to monitor embedded devices.

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

Monitorix Features

The monitorization includes:

  • System core (CPU load and temperatures, active processes and memory allocation).
  • Global or per-processor/core kernel usage (user, nice, system, idle and i/o wait).
  • Temperatures (HP ProLiant IML Agent and LM-Sensors with HDDtemp support).
  • Mounted filesystems and disk i/o.
  • Activity of up to 5 network devices.
  • Use of SMTP, SSH, FTP, Telnet, Samba, NetAtalk, VirusMail, FAX, POP3 and HTTP services.
  • Complete MTA statistics including anti-spam, anti-virus and greylisting.
  • Activity of up to 12 predefined network ports.
  • Devices interrupt activity (APIC support with up to 256 different interrupts).
  • Support for HP Insight Management Agents for ProLiant servers.
  • Support for Samba v2 and v3, Sendmail, Postfix, NetAtalk, Qpopper and Hylafax status logs.
  • Support for the Nginx web server statistics.
  • Support for remote servers monitorization (Multihost feature).
  • Silent mode to be able to retrieve the graphs from scripts or other programs.
  • Traffic statistics are stored on disk into RRD format fixed-size databases.
  • Possibility to view statistics per day, week, month or year.
  • Possibility to view statistics with rendered graphs or in plain text.
  • Each picture can be zoomed in to see the graph in more detail.
  • Monthly traffic activity report via email can be sent to LAN users.
  • It warns if some selected network port is not listening.
  • Alert capability if CPU load average reaches or exceeds a threshold value for an specified amount of time.
  • Web interface offers minimal learning, ubiquitous access.
  • Configuration with only one text-plain file.
  • Perl and Shell Script based (lightweight tool).
  • Requires the RRDtool package and a CGI capable web server.

Install Monitorix in Ubuntu Server

Install ubuntu LAMP server follow these steps:

Preparing your system

Install the following packages

sudo apt-get install rrdtool librrds-perl libwww-perl

Now you need to download Monitorix source package from here or use the following command

$ wget http://www.monitorix.org/monitorix-1.5.0.tar.gz
$ tar -zxvf monitorix-1.5.0.tar.gz

Go to the Monitorix directory and execute the install script.

$ cd monitorix-1.5.0
$ sudo ./install.sh

Welcome to Monitorix v1.5.0 installation process.

The install script has detected that this is a Linux operating system.

Currently Monitorix supports only the following Linux distributions:
1 - RedHat/Fedora/CentOS
2 - Generic
3 - Debian (Ubuntu)
4 - Gentoo
5 - Slackware

Please select your option:

Choose the option number 3 (Debian).

The following is a list of the default paths where the Monitorix components
will be installed:

1 - /usr/bin
2 - /etc
3 - /etc/init.d
4 - /var/lib
5 - /usr/share/doc
6 - /var/www
7 - /usr/lib/cgi-bin
8 - /usr/share/man/man5

Last chance to stop the installation.
Are you sure to install Monitorix on the paths shown? [y/n]:

The list of paths should be correct. Press y.

Finally start Monitorix.

sudo service monitorix start

Now wait for a while and then go to http://localhost/monitorix/

Orignal Source

Iqrash Awan

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.

0 comments: