Nethence Newdoc Olddoc Lab Your IP BBDock  

Setting up M/Monit

installing mmonit

fetch the latest M/Monit binary,

cd ~/
wget https://mmonit.com/dist/mmonit-3.7.1-linux-x64.tar.gz
tar xzf mmonit-3.7.1-linux-x64.tar.gz
ln -s mmonit-3.7.1 mmonit

preparing the DB

apt install mariadb-server mariadb-client
systemctl start mariadb
systemctl status mariadb
mysql_secure_installation
mysql -uroot -p

CREATE DATABASE mmonit;
GRANT ALL ON mmonit.* to mmonit@localhost identified by 'DBPASS'
^D

cd ~/mmonit/
mysql -u mmonit mmonit -p < db/mmonit-schema.mysql

setting up mmonit

Switch from SQLite to MariaDB/MySQL,

cd ~/mmonit/conf/
cp -i server.xml server.xml.dist
vi server.xml

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

Start the daemon and check,

echo -n starting mmonit...
/root/mmonit/bin/mmonit && echo done
ps auxww | grep mmonit
netstat -antupe --inet --inet6 | grep mmonit

ready to go

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

"admin" with password "swordfish"

references


Home | GitHub | Docker Hub | Donate | Contact