Using Monitorix for System Monitoring
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
is a free, open-source system monitoring tool that keeps track of several Linux services and system resources. This Linux system monitoring tool is composed of two programs. The first, monitorix, is a system data logging daemon written in
. The second, its web interface, uses the CGI script,
Besides tracking Linux server elements such as overall system load, file system activity, and global kernel usage, Monitorix also tracks hardware data such as sub-system temperatures, battery status, and UPS statistics. It also monitors popular third-party Linux programs such as mail servers; libvirt -based virtual machines; and MySQL , Nginx , and MongoDB databases.
Monitorix was originally designed for the Red Hat Enterprise Linux operating system family. Now, licensed under GPLv2 , it works on all major Linux server distributions. Beginning with version 3.0, Monitorix comes with its own web server, which is useful for remote Linux server monitoring. With its simple graphical interface, it’s also good for interactive server monitoring.
Before You Begin
If you are using a Linode, make sure you run the steps in this section to configure your Linode, secure your server, and update your system’s packages.
Follow our Setting Up and Securing a Compute Instance guide to update your system. You may also wish to set the timezone, configure your hostname, create a limited user account, and harden SSH access.
Monitorix is not installed on Linux servers by default. This section shows you how to install Monitorix on the Debian/Ubuntu Linux distributions.
sudo apt-get install monitorix
Monitorix ships with a default configuration file,
/etc/monitorix/monitorix.conf. The monitorix daemon automatically reads
/etc/monitorix/monitorix.confand uses its settings at launch. Most of the time, the default configuration is appropriate. There are over two dozen setting groups. Most of these are for specific hardware configurations, such as NVIDIA card temperatures, file systems (e.g, ZFS pools ), or programs such as sendmail , Postfix , and Exim mail servers. To fine-tune your installation, refer to Monitrox’s manual pages and edit the
/etc/monitorix/monitorix.conffile using your preferred text editor.
- File: /etc/monitorix/monitorix.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
NoteDebian and Ubuntu Linux systems contain an additional configuration file,
/etc/monitorix/conf.d/00-debian.conf. This file includes Debian/Ubuntu-specific options and is read after the main Monitorix configuration file. This means any changes you make to the
Once you’re done configuring Monitorix, restart the Monitorix service to enable your updates.
sudo service monitorix restart
Getting started with Monitorix
Monitorix is meant to be used as an interactive program. It’s not suitable for use in shell programs. In this section, you access the Monitorix graphical user interface (GUI) to view some of the monitoring information provided by Monitorix.
To access the Monitorix interface running on your Linode, find your Linode’s IP address . Open a browser window and navigate to the following URL,
192.0.2.0with your own IP address.
NoteIf you are running Monitorix on your computer, instead, navigate to
Once you have accessed the Monitorix interface, select All graphs from the dropdown menu and click Ok.
The default top graph shows system load, memory allocation, active processes, entropy , and uptime. This is useful for seeing the current condition of your primary CPU and memory performance.
Continuing down the display are graphs showing global kernel use; kernel context switches and forks; Linux Virtual File System (VFS) usage; and kernel usage per processor/core.
This is followed by a display of file system usage and I/O activity.
Next, comes network activity measurements.
Finally, Monitorix displays logged-in user measurements and device interrupt activity.
You can change your settings in the
/etc/monitorix/monitorix.conffile to rearrange Monitorix’s Linux server monitoring charts or to add more charts.
Beyond the Basics
The Monitorix daemon stores its log files by default to
/var/log/monitorix. The data within these logs are typically displayed by the built-in web server. Monitorix’s default web address is
The Monitorix web interface can also monitor multiple Linux servers .
You can automate some of the data the Linux monitoring tool collects. System administrators can automatically send selected graphs in a report to an email address , for example. The default Monitorix installation also includes an example of a monitoring alert,
monitorix-alert.sh. Use this script to set up e-mail alerts for higher-than-expected CPU usage.
Monitorix is a useful and very flexible Linux system monitoring program. With its power to monitor the operating system, some programs, and hardware, you may find it an ideal addition to your system administrator tool kit.
This page was originally published on