Airtime for Broadcasters

Using Monit

Monit is a utility which can be used to manage and monitor processes, files, directories and filesystems on your Airtime server. It is installed by default when you install Airtime.

To view the Monit web interface, open port 2812 of your server in a web browser:

http://localhost:2812/

You will have to log in to see the Monit web interface. The default username is admin and the default password is monit.

Remote access

By default, Monit is configured for access from the localhost only. To enable remote access, you will need to edit the file /etc/monit/conf.d/airtime-monit.cfg with nano:

$ sudo nano /etc/monit/conf.d/airtime-monit.cfg

Comment out the line use address 127.0.0.1 and then add an 'allow' line with the IP address and netmask of the machine to connect to monit from, such as:

    allow 10.0.1.2/255.255.255.0

If you enable remote access, be sure to change the default admin password of monit in the line allow admin:monit to something more secure:

set httpd port 2812 and # use address 127.0.0.1
    allow localhost
    allow 10.0.1.2/255.255.255.0
    allow admin:pleasedonothackme

Press Ctrl+O to save the file, then Ctrl+X to exit nano. Then restart monit with:

$ sudo invoke-rc.d monit restart

Sending email alerts

To configure Monit to send email alerts, edit the file /etc/monit/monitrc to uncomment the set mailserver parameter. Change this line to show the name of the SMTP server on your Airtime server's network, as provided by your system administrator.

$ sudo nano /etc/monit/monitrc

Further down the configuration file, you can set the From: and To: addresses for the alert emails using the set mail-format and set alert parameters. Then uncomment the lines required.

Press Ctrl+O to save the file, then Ctrl+X to exit nano. Then restart monit with:

$ sudo invoke-rc.d monit restart

 More information about using Monit is available at http://mmonit.com/monit/documentation/