monit-general
[Top][All Lists]
Advanced

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

Re: Can monit start services on remote host based on monitored host?


From: Muhamed Huseinbašić
Subject: Re: Can monit start services on remote host based on monitored host?
Date: Sat, 13 Jan 2018 20:36:24 +0000

Indeed that's one way to do it. Thanks.

Muhamed Huseinbašić

From: monit-general <monit-general-bounces+address@hidden> on behalf of address@hidden <address@hidden>
Sent: 06 January 2018 22:42
To: This is the general mailing list for monit
Subject: Re: Can monit start services on remote host based on monitored host?
 
Yes, you can use 'exec' action and execute command on the remote host via ssh (you'll have to setup the ssh keys so it's possible to send commands - the access can be limited via ssh configuration for specific command only).

Best regards,
Martin


On 4 Jan 2018, at 12:50, Muhamed Huseinbašić <address@hidden> wrote:

Imagine this:
Process 1 is running on host1.
Process 2 is not yet running on host2.

Is it possible to achieve this with monit or m/monit:

If process 1 fails on host1, start the process 2 on host2 and start monitoring the new process.
If process 2 then, after some time, fails on host2, start process 1 on host1 again.

Thanks,
Muhamed Huseinbašić
-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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