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 /opt/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 /opt/mmonit/conf/server.xml /opt/mmonit/conf/server.xml.dist
vi /opt/mmonit/conf/server.xml

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

Easy SSL w/ NGINX

see nginx

Ready to go

read the logs while operating the daemon

tail -F /opt/mmonit/*.log

start and enable the daemon at boot time

echo -n starting mmonit...
rm -f /opt/mmonit/logs/mmonit.pid
/opt/mmonit/bin/mmonit && echo done || echo FAILED
#/usr/local/mmonit/bin/mmonit && echo done || echo FAILED

status

pgrep -a mmonit
ps auxww | grep mmonit
ps auxfww | grep mmonit
netstat -lntup --inet --inet6 | grep mmonit

Acceptance

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

you can now login and fix admin and monit passwords

"admin" with password "swordfish"
"monit" with password "?"

Resources

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

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


HOME | GUIDES | BENCHMARKS | html