Raspberry Pi : monitor the system with Monitorix
With the server up, It now remains to monitor what is happening on the discs, interfaces, etc.
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.
- Updating the system
apt-get update
- 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
- If an error appears, run the following command before relaunching the command in step 2
apt - get - f install
- Download archive monitorix deb here (current version 3.2.0)
- Install the CGI wrapper if it is not already selected (see the article on the installation of Nginx here)
apt - get install fcgiwrap
- Start the installation of the package
dpkg-I monitorix_3.2.0 - izzy1_all.deb
- Create the directory for web pages
mkdir/var/www/monitorix
- Copy the files for the site
CP-r/usr/share/monitorix / * / var/www/monitorix
- Change the rights
chown -R www-data:www - data/var/www/monitorix
- Create the directory
mkdir-p/var/db/rrd/monitorix
- Edit /etc/monitorix.conf
base_dir = /var/www/monitorix/ base_lib = /var/db/rrd/monitorix/ base_url = / base_cgi = following
- 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; root/var/www/monitorix; rental /cgi/ { off gzip; root/var/www/monitorix; fastcgi_pass unix:/var/run/fcgiwrap.Socket; include/etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
- Enable the site by creating a link in/etc/nginx/sites-enabled
ln-s/etc/nginx/sites-available/monitorix/etc/nginx/sites-enabled/monitorix
- Configure graphics to generate in /etc/monitorix.conf in the section GRAPH_ENABLED
- Restart nginx and monitorix service
service nginx restart service monitorix restart
Here is the result :

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.