Sysfence is a Linux software that acts as a guard for system resources.
One of the best aspects is stopping services when the system's performance is dropping too low and starting them when it's going up again. Additionally, it's a great solution for periodically restarting memory-leaking processes or dumping system statistics in critical situations.
To use Sysfence, you can read its configuration from file(s) specified in argument lists. These configuration files contain one or more rules describing conditions and actions to be performed. Rules have a specific syntax, with a block enclosed in {} brackets that describes the condition. When the result is TRUE, the following command is invoked. The once keyword is optional, and if present, the command is executed once only after the condition becomes TRUE.
The command specified after the run keyword is passed to /bin/sh, so it may contain more than one instruction or even a whole script. However, you should be careful, as rule checking is suspended until command execution has been completed.
Finally, you can specify different resources like la1 - load average during the last minute, memfree - the lower limit for free memory amount, swapfree - the lower limit for free swap space, and so on.
The latest release comes with a bugfix for wrong memory levels recognition on non-vanilla kernels. Therefore, Sysfence is an efficient tool to keep your system running smoothly by monitoring resources and notifying of any potential problems.
Version 0.16: N/A