Many of you asked us what is the best way to monitor the performance of a server. In this article we are going to talk about Monitorix and its amazing potential.
Sometimes it can be very useful have the situation under control especially if you have a server on the net! In our case it is necessary to monitor the server performance because we are running the real time world ranking of our new game FillTheGap. Players always want to stay current on the score, and we have to guarantee service. Monitorix provides us detailed stats to do that!
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 Linux/UNIX servers, but due to its simplicity and small size can be used on embedded devices as well. The software is divided in two programs:
- monitorix (Perl daemon)
- monitorix.cgi (CGI script to include its own HTTP server built in)
We have installed and configured Monitorix on Arch Linux, but the procedure is similar for all the others OS. The official website provides a complete documentation, just follow it!
In case you are running Arch Linux, the AUR contains a package for Monitorix.
The config file is located in /etc/monitorix/monitorix.conf, you can edit if following the complete list of options and features available on their official website.
Start and enable the service
To start the service run
To run Monitorix at the start up of your server, just enable the service at boot
You can also browse it on the web through an external webserver like apache, lighttpd or nginx.
View system stats
To view system stats, using the perl-http-server, simply point a browser to