Monit

About Monit
Monit is a utility for managing and monitoring processes, files, directories, and devices on a Unix system. It conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. It can be used to monitor files, directories, and devices for changes, such as timestamps changes, checksum changes, or size changes. It is controlled via an easy to configure control file based on a free-format, token-oriented syntax. It logs to syslog or to its own log file and notifies users about error conditions via customizable alert messages. It can perform various TCP/IP network checks, protocol checks, and can utilize SSL for such checks. It provides an HTTP(S) interface for access.

If you want more information please consult monit website at http://mmonit.com/monit

Installing Monit in Gentoo
You can easily install monit in gentoo with this command :

After successfull build process you can start monit by :

but before you start monit you should configure it first to suit your need

Configuring monit
Monit has only 1 configuration file residing in /etc/monitrc

Sample Configuration for apache2

Sample Configuration For Freevo and start freevo via init.d, Consult Freevo for how-to installing freevo in gentoo.

Sample Configuration for Samba

Sample Configuration for starting Synergy the init.d way, Consult Freevo for installing synergy how-to