From ArchWiki
Revision as of 21:32, 18 February 2013 by Graysky (talk | contribs) (updated)
Jump to: navigation, search

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end

Monitorix is an 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 many use it on embedded devices as well.

Installation of Monitorix

Visit the AUR and grab the tarball for the monitorixAUR package and build/install it.

Note: Depending on which font packages are installed on your system, it might been necessary to install the terminus-font package. For now, proceed without it, once monitorix is configured and running, users will know very quickly if they are missing the correct font as the graphs will not contain any text at which point, go ahead and install the terminus-font package via pacman.

Configuration of Monitorix

Before starting the monitorix daemon, be sure to adjust the /etc/monitorix.conf to your liking. For a complete list of options and features, see the [official website] or the included man page for monitor.conf.

$ man monitorix.conf

Most if not all of the user settings are self explanatory based on the commented text within the conf file itself.

Start Monitorix

Start Monitorix with the included service file like any other systemd servier

Viewing Monitorix Data

To view system stats, make sure a webserver is running (see the next section) and browse to [http://localhost/monitorix] to see the data.

Note: It will take several minutes before data are displayed graphically so be patient.

Configure a Webserver

Monitorix has minimal requirements for webservering the data. Arch has several options in the main repos for web serving, two of which are listed below. Lighttpd is recommended since its system resource footprint is minimal compared to apache (0.94 MB vs. 6.52 MB). Alternatively, Apache will work, but it is overkill!


# pacman -S lighttpd

By default, cgi support is not enabled in lighttpd. To enable it and to assign perl to process .cgi files, add the following two lines to /etc/lighttpd/lighttpd.conf:

server.modules		= ( "mod_cgi" )
cgi.assign		= ( ".cgi" => "/usr/bin/perl" )


# pacman -S apache

Make sure the hostname appears in /etc/hosts and in /etc/rc.conf or apache will not operate.

Using tmpfs to Store RRD Databases

Have a look at the following package which provides a script that will make use of tmpfs to store your RRD Databases for Monitorix. Doing so will greatly reduce hdd reads/writes.