Monitoring a Lino production server

The functionality described here is automatically installed when running getlino configure as root and with the –monit option.


Simply run:

$ sudo apt install monit



A file in /etc/monit/conf.d with the following content:

check program status with path /usr/local/bin/
    if status != 0 then alert

A system-wide script (in /usr/local/bin) to be executed either manually as root or by monit. The script outputs some readable information about what it is doing. If something is not perfect, it reports what is wrong and then sets its exit status to non-zero.

Example content:

#! bin/bash
set -e  # exit on error
echo -n "Checking supervisor status: "
supervisorctl status | awk '{if ( $2 != "RUNNING" ) { print "ERROR: " $1 " is not running"; exit 1}}'
echo "... OK"

The system-wide monit configuration file.


You can say monit status at any moment.