Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured monit to check for my services, and I'm checking if one of the services still sane. If this service is not working as it should I would want monit to restart ALL the services I'm currently monitoring (as they sort of depend on each other).

Currently I've put all my services in one group, so I could write

if failed MY_TEST exec "/usr/sbin/monit -g MY_GROUP restart"

I wanted to do Something like:

if failed MY_TEST restart group MY_GROUP

Is there any action that I could take to do this internally (i.e. without calling monit from monit)?

share|improve this question

The monit guides all say you need to call monit from monit to restart a group of services. However, you could make it execute a script someplace that restarts all the services via their normal methods.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.