아 신난다 떠나고 싶은데 왜 자꾸 잡냐
# wget http://mmonit.com/dist/mmonit-3.7.1-linux-x64.tar.gz
wget이 설치 안되어있으면 wget 설치해주자.
# sudo apt-get install wget
# tar zxvf mmonit-2.4-linux-x64.tar.gz
# mv mmonit-2.4/ /usr/local/mmonit/
# cd /usr/local/mmonit/
# ./bin/mmoni
Admin -> Users
#vi /etc/monit.conf
#set mmonit http://:@:/collector
Example of monit.conf
set mmonit http://mmonituserid:mmonituserpass@mmonitserverip:port/collector
set httpd port 2812 and
#use address localhost # only accept connection from localhost
allow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server and
allow monitid:monitpassword # require user 'admin' with password 'monit'
#with ssl { # enable SSL/TLS and set path to server certificate
# pemfile: /etc/ssl/certs/monit.pem
#}
끝
다음에는 DB 모니터링도 추가해야지