Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.