Monitoring
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 its official website. Plenty of advice on using Monit can be found around the Web.