Installation

Monit is a great application for monitoring and starting and automatically re-starting applications

The version installed this way is an old version, NOT the latest stable one

Example configuration for Cassandra

Manual Installation of Latest Stable Version

Troubleshooting

> monit summary fails and monit is not started

monit: error connecting to the monit daemon

SSL Library not found

Fix: Use –with-ssl-lib-dir option to fix this problem or disable the SSL support with –without-ssl

[monit] monit cannot start scripts: “failed to start”

References 1: http://lists.gnu.org/archive/html/monit-general/2010-06/msg00005.html
References 2: http://old.nabble.com/-monit–monit-cannot-start-scripts%3A-%22failed-to-start%22-td28857673.html

Fix: load your environment, e.g. as follows

http://stackoverflow.com/questions/3356476/debugging-monit

I’ve found the most common problems are environment variable related (especially PATH) or permission-related.
The reason is that monit often runs as root.

http://stackoverflow.com/questions/7944344/monit-failing-to-start-process

m/monit – GUI for Monit

Installation and Start

Check Server
URL: http://localhost:8080/
User: admin
Password: swordfish

Stop Server

References

1. Home: http://mmonit.com/monit/
2. FAQ: http://mmonit.com/wiki/Monit/FAQ
3. Configuration: http://mmonit.com/wiki/Monit/ConfigurationExamples
4. Screenshots: http://mmonit.com/screenshots/
5. Guide: http://www.ubuntugeek.com/monitoring-ubuntu-services-using-monit.html
6. Getting started – Installation: http://mmonit.com/wiki/Monit/Installation
7. http://www.thegeekstuff.com/2010/11/monit-install-config/
8. http://serverfault.com/questions/270316/monit-check-process-without-pidfile
9. http://www.cyberciti.biz/faq/monit-sshd-server-configuration/
10. http://spin.atomicobject.com/2010/11/30/monitoring-and-management-with-monit-and-nagios/
11. http://code.google.com/p/nagios-monit-plugin/
12. http://blog.blindgaenger.net/monitor_applications_with_monit.html
# set daemon 10 with start delay 20

Alternatives
13. Upstart: http://howtonode.org/deploying-node-upstart-monit
14. Upstart: http://upstart.ubuntu.com/

Other Tools
15. Other Tools: http://sixrevisions.com/tools/10-free-server-network-monitoring-tools-that-kick-ass/
16. Nagios: http://www.nagios.org/

About Gugulethu Ncube

IT enthusiast getting things done.