Skip to content


You could monitor the health of Flussonic Media Server using Monit. Monit is a background service, that runs on GNU/Linux systems (e. g., Ubuntu). It can monitor processes by their PIDs, check activity of ports, measure resources (CPU, RAM) used by the process, and many other.

Installing utilities

You will need to install Monit and Postfix. Postfix is used for sending e-mails.

Use the following commands to insall Monit and Postfix:

sudo apt-get install monit
sudo apt-get install postfix

Configuring Monit

Monit configuration file can be found at /etc/monit/monitrc Flussonic PID file is located at /var/run/flussonic/pid

Here is an example configuration for monitoring Flussonic:

set mailserver localhost
set mail-format { from: }
set mail-format { from: }
set alert
set httpd port 2812 and allow localhost

 check process flussonic with pidfile /var/run/flussonic/pid
   start program = "service flussonic start"
   stop program = "service flussonic stop"
   if failed host port 1935 type tcp
   with timeout 5 seconds
   then restart

  check system
    if memory usage > 75% for 4 cycles then alert
    if cpu usage (user) > 80% for 4 cycles then alert

Note that and email addresses are given for example purposes and must be replaced with real ones.

More information on configuring Monit is available at the official website.