Hello, I am a monit newbie and need some help to get it working.
I have four services that I need to monitor/start/restart mysql (listening on port 3306) newcs (listening on port 15000) sasc (listening on port 5000) mythbackend (listening on ports 6543 and 6544) The dependency chain looks: mythbackend => sasc => newcs mythbackend => mysql - So "sasc" can not be started until "newcs" are listening on 15000 and "mythbackend" can not be started until "sasc" are listening on port 5000. - Also I want "sasc" and "mythtv" to be restarted if "newcs" have been restarted, etc I have done a first fragment of configuration but it does't work that good. Can you see anything that should be added/changed?? # ==[MythTV Group]========================================= # --[MythTV]----------------------------------------------- check process mythbackend with pidfile /var/run/mythbackend.pid start program = "/etc/init.d/mythbackend start" stop program = "/etc/init.d/mythbackend stop" if failed port 6543 then restart if failed port 6544 then restart if 10 restarts within 15 cycles then timeout group mythtv mode active depends on mysql, sasc # --[SASC]----------------------------------------------- check process sasc with pidfile /var/run/sasc.pid start program = "/etc/init.d/sasc start" stop program = "/etc/init.d/sasc stop" if failed port 5000 then restart if 10 restarts within 15 cycles then timeout group mythtv mode active depends on newcs # --[NewCS]----------------------------------------------- check process newcs with pidfile /var/run/newcs.pid start program = "/etc/init.d/newcs start" stop program = "/etc/init.d/newcs stop" if failed port 15000 then restart if 10 restarts within 15 cycles then timeout group mythtv mode active -- // Jocke ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Moin-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/moin-user
