Flussonic Media Server documentation


The task of Flussonic process supervision can be accomplished by using Monit. Monit is a background service, which runs on GNU/Linux systems (e. g., Ubuntu) and can find processes by PID, check the activity of ports, resources (CPU, RAM) used by the process, and so on.

Installing utilities Anchor Anchor x2

You will need to install Monit and Postfix. Postfix is an e-mail utility.

Under Ubuntu, the following commands are used for installation:

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

Configuring Monit Anchor Anchor x2

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: monit@example.com }
set mail-format { from: support@example.com }
set alert sys@example.com
set httpd port 2812 and allow localhost

 check process flussonic with pidfile /var/run/flussonic/pid
   start program = "/etc/init.d/flussonic start"
   stop program = "/etc/init.d/flussonic stop"
   if failed host example.com port 1935 type tcp
   with timeout 5 seconds
   then restart

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

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

More information on configuring Monit is available at its official website. Plenty of advice on using Monit can be found around the Web.