Quote:
Originally Posted by steve51184
1. is the config right?
|
Dunno but I'll guess if monit starts everything is fine. Else try the
-I option to monit. It just lingers aroud in the foreground and you might see what it does does not do.
Quote:
Originally Posted by steve51184
2. is this just to monitor if these 3 services are down? (ie nothing else but to check if there down and to restart if they are)
|
Dunno but as you only have three
check process lines inside your config I incline to it.
Quote:
Originally Posted by steve51184
3. is there a way to have it restart the services is they use a lot of cpu/ram
|
Take a look here. this is an example for restarting apache in certain circumstances. Should give you an idea how to setup things for mysql and ssh as well.
http://mmonit.com/wiki/Monit/MonitorApacheStatus
Just a hint. I'd be carefull with restarting (stopping) ssh automaticly. Might lead to lockdown of box cause the sshd does not come up for some reason.