Setting up M/Monit

Installing mmonit

Fetch the latest M/Monit binary

wget https://mmonit.com/dist/mmonit-3.7.3-linux-x64.tar.gz
tar xzf mmonit-3.7.3-linux-x64.tar.gz
mv mmonit-3.7.3 /usr/local/mmonit

Preparing the DB

See maria for e.g. database name mmonit and username mmonit

Setting up mmonit

Comment out SQLite and uncomment MariaDB/MySQL

cp -i /usr/local/mmonit/conf/server.xml /usr/local/mmonit/conf/server.xml.dist
vi /usr/local/mmonit/conf/server.xml

       <Realm url="mysql://mmonit:PASSWORD@mariadbprod:3306/mmonit"
              minConnections="5"
              maxConnections="25"
              reapConnections="300" />

Enable the daemon at boot time and start it

vi /etc/rc.local

echo -n starting mmonit...
/usr/local/mmonit/bin/mmonit && echo done
ps auxww | grep mmonit
netstat -lntupe --inet --inet6 | grep monit

Note on Ubuntu, /etc/rc.local is already executable by default

Ready to go

http://mmonit:8080/
https://mmonit:84XX/

"admin" with password "swordfish"

Resources

MMonit / Setup https://mmonit.com/wiki/MMonit/Setup

Install MariaDB On Slackware https://docs.slackware.com/howtos:databases:install_mariadb_on_slackware


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml