################################################################################ # # LXS # set daemon 20 # Poll at 20 second intervals set logfile syslog facility foobar set httpd port 2812 # Make monit start it's web-server allow admin:access # http basic auth 'admin' with password 'access' allow admin:accxess # http basic auth 'admin' with password 'access' allow localhosttttttttttt allow /foo/bar box ################################################################################ # # Group lxs # include /home/chopp/monitrc.foo check process AppManager with pidfile "/var/run/AppManager.pid" start program = "/bin/true" uid foobar stop program = "/bin/true" if memory > 200 MB for 0 cycles then restart if totalmemory > 200 MB for 0 cycles then restart if memkbyte > 200 for 0 cycles then restart group lxs depends on AppManager_monit check file AppManager_monit with path "/var/run/AppManager.monit" if timestamp > 2 minutes then restart if failed permission 0128 then restart check file AppManager_monit with path "/var/run/AppManager.monit"