You may have already seen my Running Monit v5 on OpenBSD article. If not, it’s the correct time to have a look at it 🙂
This article will describe how to install and run M/Monit. Quoting its Web site, “M/Monit expand upon Monit’s capabilities to provide monitoring and management of all Monit enabled hosts from one easy to use web-interface”. Monit has an efficient Web interface, M/Monit has a shinning one. It also has reports abilities that will please your IT CEO 😉
I’ll show how to run both on a single OpenBSD box.
First of all, install, configure and run Munin on OpenBSD or wherever you run services.
Then, go for M/Monit:
# ftp http://mmonit.com/dist/mmonit-2.3.4-openbsd-x64.tar.gz # tar xzf mmonit-2.3.4-openbsd-x64.tar.gz -C /home # mv /home/mmonit-2.3.4 /home/mmonit # cat > /home/mmonit/bin/mmonit.sh #!/bin/sh LD_LIBRARY_PATH="/home/mmonit/lib" \ /home/mmonit/bin/mmonit "$@" ^D # chmod 755 /home/mmonit/bin/mmonit.sh # ln -s /usr/lib/libpthread.so.13.1 /home/mmonit/lib/libpthread.so.11.1 # ln -s /usr/lib/libc.so.58.0 /home/mmonit/lib/libc.so.50.1 # vi /etc/rc.local (...) if [ -x /home/mmonit/bin/mmonit.sh ]; then echo -n ' m/monit'; /home/mmonit/bin/mmonit.sh >/dev/null 2>&1 fi (...) # /home/mmonit/bin/mmonit.sh
Browse port 8080 of your M/Monit host and log-in using the “admin/swordfish” credentials.
Browse to “/admin/users/edit?uname=admin” and change the admin password.
Browse to “/admin/users/edit?uname=monit” and change the monit password.
Link both Monit and M/Monit instances:
# vi /home/monit/conf/monitrc (...) set eventqueue basedir /home/monit/var/ set mmonit http://monit:email@example.com:8080/collector (...) # /home/monit/bin/monit.sh reload Reinitializing monit daemon
M/Monit is not free 🙁 but the trial licence will last 30 days ; that should be enough time to decide wether you like/need M/Monit or not.
That’s All Folks!
Source: M/MONIT User Manual