Flussonic Media Server documentation

Contents

Monitoring

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: 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 the official website.