Saturday, 31 March 2012

Monitorix - A server monitoring tool

Monitorix is a free, open source, lightweight system monitoring tool designed to monitorize as many services as possible. It can be accessed via a web browser.

Monitorix 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.

You can install the package either via rpm or via yum

 # yum install monitorix

 # vim /etc/monitorix.conf

 # /etc/init.d/httpd reload

cd /etc/httpd/conf.d/

vim monitorix.conf
     Alias /monitorix /usr/share/monitorix
   ScriptAlias /monitorix-cgi /usr/share/monitorix/cgi-bin

<Directory /usr/share/monitorix/cgi-bin/>
        DirectoryIndex monitorix.cgi
        Options ExecCGI
        order deny,allow
        deny from all
 #        allow from 127.0.0.1
        allow from all    ------------ change above line like this
 </Directory>

# /etc/init.d/httpd reload

# service monitorix start

# chkconfig monitorix on

This version introduces two new major features. The first one refers to a new MySQL statistics multigraph which includes a complete and an overall state of the current performance of a MySQL server. The six nested graphs cover the most important and relevant status information which should help System Administrators to optimize their MySQL server accordingly.

This graph requires an unprivileged MySQL user (with password) in order to collect all the statistics. So it's strongly recommended to NOT grant any privilege to any database to this user.

The following are the two commands in order to create such unprivileged user:

mysql> CREATE USER ’user’@’localhost’ IDENTIFIED BY ‘password’;

mysql> FLUSH PRIVILEGES;

# service mysqld restart   

vim /etc/monitorix.conf
enable options of mysql to Y    --- to enable a fearture Y and to disable a feature N

# service monitorix restart

# service mysqld restart

# /etc/init.d/httpd reload

To access the interface http://192.168.1.67/monitorix/

























































No comments:

Post a Comment