Raspberry Pi : monitor the system with Monitorix

With the server up, It now remains to monitor what is happening on the discs, interfaces, etc.

Raspberry Pi Home Server - Etape 15 : monitorer le système avec Monitorix

There are many tools for monitoring the system : Nagios, Cacti, Zabbix, OpsView, etc. But at the beginning of the project I was gone to Monitorix so I do the tutorial but later will come from other tutorials for other monitoring tools.

  1. Updating the system
    apt-get update
  2. Install the dependencies without Apache :
    apt - get install libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbi-perl rrdtool librrds-perl-libwww-perl libemail-date-format-perl libmime-lite-perl libmime-types-perl libnet-daemon-perl libplrpc-perl nullmailer libxml-simple-perl libconfig-general-perl libhttp-server-simple-perl
  3. If an error appears, run the following command before relaunching the command in step 2
    apt - get - f install
  4. Download archive monitorix deb here (current version 3.2.0)
  5. Install the CGI wrapper if it is not already selected (see the article on the installation of Nginx here)
    apt - get install fcgiwrap
  6. Start the installation of the package
     dpkg-I monitorix_3.2.0 - izzy1_all.deb
  7. Create the directory for web pages
  8. Copy the files for the site
    CP-r/usr/share/monitorix / * / var/www/monitorix
  9. Change the rights
    chown -R www-data:www - data/var/www/monitorix
  10. Create the directory
  11. Edit /etc/monitorix.conf
    base_dir = /var/www/monitorix/  base_lib = /var/db/rrd/monitorix/  base_url = /
    base_cgi = following
  12. In the directory /etc/nginx/site-availables create the file monitorix. The default port 8090 can be changed in this file
    server {
    listen 8090;
     server_name monitorix;
    rental /cgi/ {
     off gzip;
     fastcgi_pass unix:/var/run/fcgiwrap.Socket;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  13. Enable the site by creating a link in/etc/nginx/sites-enabled
  14. Configure graphics to generate in /etc/monitorix.conf in the section GRAPH_ENABLED
  15. Restart nginx and monitorix service
    service nginx restart  service monitorix restart

Here is the result :

Raspberry Pi Home Server - Etape 15 : monitorer le système avec Monitorix

Result of the execution of monitorix on Raspberry Pi

Soon I will present a tutorial to another monitoring tool so that you can make your choice !

If you want to display all charts at once, page load time is relatively long.

You may also like...