monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conditional services


From: Vadym Chepkov
Subject: Conditional services
Date: Thu, 4 Feb 2016 06:52:16 -0500

Hi,

Can somebody give an advice how to implement active/standby configuration using monit.

There are some services which can't run from multiple locations for various reasons. To solve this problem, we have a script, which can be used to check if current location is active or standby via exit code. cron wrapper uses it to determine if cron job should run or not, for instance.

But how does one tell monit to start/monitorĀ  services if server becomes active and stop, make sure they are not running if server is in standby mode.
This should be applied only to 'volatile' services, not all of them.
Thank you.

Cheers,
Vadym


reply via email to

[Prev in Thread] Current Thread [Next in Thread]