eMonit is a work in progress fork of monit (which probably will be less and less supported as the VERY GOOD MMONIT is getting bigger).
eMonit focus on bug correction if any and adding a edition function to the embedded http api.
It also add some new feature
To build eMonit, you need bash, autogen, gcc and make
call the bootstrap script and then configure and alast make.
refer to the README. And:
Setting webhome in the configuration enable monit to look for files.
set webhome /var/www/monit
As an example favicon.ico can be put here:
/var/www/monit/favicon.ico
configuration(s) path[, path[, ...]]
(1) check process apache
(2) with pidfile "/usr/local/apache/logs/httpd.pid"
(3) ...
(4) configuration /var/www/conf/httpd.conf
(5)
(6) check file httpd with path /usr/local/apache/bin/httpd
(7) if failed checksum then unmonitor
(8) configurations /var/www/conf/httpd.conf, /var/www/conf/vhosts.conf
custom COMANDNAME command "program argument" [with timeout]
check directory stuff with path /whatever
if failed permission 700 then custom CC
configuration /tmp/badfile
custom CC command "/usr/bin/touch /tmp/foo"
configuration line:
set mmonit json http[s]://same.as.before/collector [options]
url:
/_status[2]?format=json
relatively complex interface because so many option, or just push a file to create a config :-)
ENJOY