![]() Use address 12.34.56.789 # only accept connection from localhostĪllow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server andĪllow admin:monit # require user 'admin' with password 'monit' Once the section is uncommented, write in your server’s IP or domain name as the address, allow anyone to connect, and then create a monit user and password set httpd port 2812 To configure the web interface, find and uncomment the section that begins with set httpd port 2812. Monit comes with it’s own web server running on port 2812. These settings can be altered at the beginning of the configuration file in the set daemon and set logfile lines respectively. By default, it is set up to check that services are running every 2 minutes and stores its log file in “/var/log/monit.log”. Monit is very easy to use nearly out of the box. Typing monit status displays monit’s details: The Monit daemon 5.3.2 uptime: 1h 25mĭata collected Thu, 18:35:00 Configure Monit Monit can be started up with a command that then keeps it running in the background monit Once monit downloads, you can add programs and processes to the configuration file: sudo nano /etc/monit/monitrc Monit is easiest to install through apt-get: sudo apt-get install monit This tutorial will cover the most basic setup and configuration. Additionally monit comes with a basic web interface through which all of the processes can be set up. Monit is a helpful program that automatically monitors and manages server programs to ensure that they not only stay online consistently, but that the file size, checksum, or permissions are always correct.
0 Comments
Leave a Reply. |