Introduction
Monitorix is a free, Open Source monitoring tool that can be used to monitor as many services and system resources as possible. Unlike other monitoring tools, it is very simple to install, configure and monitor the systems. Initially, it was developed to support only the RPM based systems such as Red Hat, CentOS etc., but, later it is expanded it’s support to other distributions like Debian/Ubuntu, and BSD systems such as FreeBSD, NetBSD, and OpenBSD.
Since version 3.0, it comes with a built-in web server, so there is no need of any external webserver. It regularly collects the system and network resources of a Linux system, and displays the results as Graphs using RRDTool. It consists mainly of two programs called monitorix and monitorix.cgi. monitorix is a perl daemon which is started automatically just like as any system service, and monitorix.cgi is a CGI script. Monitorix is licensed under GNU GPLv2, so it is absolutely free to use, and distribute.
Features
Yet Monitorix is lightweight and simple, it has a comprehensive list of features like a enterprise network monitoring tools such as nagios or Zabbix.
Here is the list of features included in Monitorix.
System load average and usage;
Global kernel usage, Per-processor kernel usage;
HP ProLiant System Health;
LM-Sensors and GPU temperatures;
NVIDIA temperatures and usage;
Disk drive temperatures and health;
Filesystem usage and I/O activity;
Network traffic and usage;
Display statistics of almost all services such as; Netstat, Process, mail, ftp, Apache, nginx, lighttpd, MySQL, Squid proxy web cache, NFS server/client, Bind, NTP, Fail2ban, Icecast streaming, Raspberry pi sensor, Alternative PHP Cache, Memcached, APC UPS, Wowza Media Server & Libvert etc.
System services demand;
Network port traffic;
Users using the system;
Support for monitoring remote servers;
Alert capabilities supported;
Ability to include additional configuration file(s);
Ability to view statistics per day, week, month or year;
Ability to view statistics in graphs or in plain text tables;
Ability to zoom in any graph to see it in more detail;
Ability to show network metrics in MBytes/sec or Mbits/sec;
Ability to show temperatures in Celsius or in Fahrenheit;
Ability to configure the number of years of historical data (up to 5 years);
Web interface offers minimal learning, ubiquitous access;
Configuration with only one text-plain file;
Silent mode to be able to retrieve the graphs from scripts;
And many more.
Installation
Install Monitorix in RPM based systems:
First of all, add EPEL repository in your server. In our case, I tested this how-to on CentOS 7 64bit.
Install And Enable EPEL Repository On CentOS 7
If you use CentOS 6.x like systems, use the following link to install EPEL Repository.
Install And Enable EPEL Repository On CentOS 6.x
Now, install the following prerequisites.
Then, go to Monitorix download page, and get the the latest version. As of writing this, the most recent version was 3.6.0.
Now, install the downloaded Monitorix RPM file using the following command:
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 service using command:
On CentOS 7:
On CentOS 6.x:
Be mindful that, some graphs might not be visible due to SELInux. So, disable it to view all graphs.
Change SELINUX=enforcing to SELINUX=disabled.
Reboot your system.
That’s it. Monitorix has been successfully installed on your system.
Install Monitorix in DEB based systems:
First, update your system:
Install the following prerequisites:
Then, got to Monitorix download page, and get the latest version.
Finally, Install monitorix using commands:
Alternatively, you can easily install monitorix using IzzySoft repository.
Edit file /etc/apt/sources.list,
Add the IzzySoft repository location at the end:
Save and exit the file. Then, download and add the GPG key.
Now, update the repositories, and install monitorix using the following commands:
Finally, start monitorix service to start monitoring your Linux host.
Monitorix ships with a default configuration file which works out-of-the-box. Moreover, the service is automatically started on package installation.
To fine-tune your installation, take a look at the /etc/monitorix/monitorix.conf file to adjust some things (like network interfaces, filesystems, disks, etc.).
Note: The Debian package also comes with an extra configuration file in /etc/monitorix/conf.d/00-debian.conf that includes some options specially adapted for Debian systems. This file will be loaded right after the main configuration file, hence some options in the main configuration will be overwritten by this extra file.
That’s it. Monitorix has been installed on your deb based system.
Access Monitorix Web console
After installing monitorix, navigate to http://ip-address:8080/monitorix from your web browser. You’ll see the results in graphs as shown in the below screenshots.
Sample Screenshots:
Happy monitoring!
Cheers!
Source & Reference
---------------------------------------------------------------------
Monitorix – An Open Source, Lightweight System Monitoring Tool For Linux