Bug #39374 Agent does not restart automatically after an unexpected shutdown
Submitted: 10 Sep 2008 17:37 Modified: 11 Nov 2008 14:18
Reporter: Diego Medina Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S2 (Serious)
Version:2.0.0.7049 OS:Any
Assigned to: Jan Kneschke CPU Architecture:Any
Tags: kay_merlin_immediate

[10 Sep 2008 17:37] Diego Medina
Description:
If the agent crashes, there is no watchdog, angel or keep alive mechanism to restart the agent and keep it running.

How to repeat:
1- Install the agent and start it
2- From a terminal, issue this command:

kill -SEGV {pid}
3- And use ps or any other tool to verify that the agent is not running any more
[27 Oct 2008 20:05] Jan Kneschke
revno: 1046
committer: Jan Kneschke <jan@jan-kneschkes-macbook-pro.local>
branch nick: mysql-lb
timestamp: Mon 2008-10-27 21:03:19 +0100
message:
  make sure that we wait the full 180 sec if the sleep() gets interrupted
------------------------------------------------------------
revno: 1045
committer: Jan Kneschke <jan@jan-kneschkes-macbook-pro.local>
branch nick: mysql-lb
timestamp: Mon 2008-10-27 20:38:37 +0100
message:
  added process keepalive (fixes #39374)
  
  * in case of a segfault, log it and wait 185sec before we start again
[30 Oct 2008 18:28] Diego Medina
Verified fixed on 2.0.0.7087

You need to add

keepalive = true to the mysql-monitor-agent.ini file
[30 Oct 2008 21:03] Andy Bang
Committed revision 662.
[31 Oct 2008 19:42] Diego Medina
Verified fixed on 2.0.0.7088
[11 Nov 2008 14:18] Tony Bedford
An entry was added to the 2.0 changelog:

If the agent crashed, there was no watchdog, angel or keep-alive mechanism to restart the agent and keep it running.