The default Monitorix installation (see previous post) puts the log and database files in /var/lib/monitorix/, which is part of the root partition. This partition is only 4 GB in size, and when it is 80% full the NAS sends an email to the admin email address:
System volume ‘root’ usage is 81 %. This condition should not occur in normal conditions. Please contact technical support.
Ouch… Well, it is easy enough to move the log and rrd files to a better location. As this problem is likely to occur for most software installed on the NAS, I decided to make a directory /home/admin/from_root, where things that originally lived on the root partition can be moved.
First su to become root, then stop the monitorix service:
service monitorix stop
Edit /etc/monitorix.conf using your favourite editor (vim, nano, emacs…). The beginning of mine (where the paths are defined) now looks like this:
Now that this is done, move the existing files to the new location:
mkdir /home/admin/from_root/ mkdir /home/admin/from_root/monitorix cp /var/lib/monitorix/* /home/admin/from_root/monitorix
Almost there. Before starting the service again it is useful to monitor the application’s log file. Make sure you have two shells running side by side. In one of them start a tail of the log file:
tail -f monitorix -n 50
Now start the service again, using the second shell. You can now monitor the startup log entries, and if all goes well there will be no (serious) errors.
service monitorix start