Bug #45459 log version on start up and possibly shut down
Submitted: 11 Jun 2009 18:19 Modified: 21 Jul 2009 16:49
Reporter: Lig Isler-Turmelle Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Server Severity:S4 (Feature request)
Version:2.1 OS:Any
Assigned to: Josh Sled CPU Architecture:Any
Tags: windmill

[11 Jun 2009 18:19] Lig Isler-Turmelle
Description:
you do not log the version of the agent or merlin when tomcat starts. This seems to be a mistake as it ensures that the information is visible and obvious. I would also recommend that you show the same information when you shutdown merlin or the agent since they may run for a long time and this information may no longer be in the log files.

How to repeat:
n/a

Suggested fix:
add the information to the log files during start up and shut down.
[19 Jun 2009 20:11] Enterprise Tools JIRA Robot
Josh Sled writes: 
revno: 7250
revision-id: jsled@asynchronous.org-20090619195150-7lva1dcjexi3c0lb
parent: merlin@dl380-g5-a.mysql.com-20090619184257-i7znfvninq1syl01
committer: Josh Sled <jsled@asynchronous.org>
branch nick: local
timestamp: Fri 2009-06-19 15:51:50 -0400
message:
  EM-3356: log the mem version (and advisor version) on startup.

Note that the issue talks about both mem and agents; this commit is mem-only.
[19 Jun 2009 20:35] Enterprise Tools JIRA Robot
Hudson Integration Agent User writes: 
Integrated in !https://repoman.mysql.com/hudson/nocacheImages/16x16/blue.gif! [ServiceManagerTrunk #786|https://repoman.mysql.com/hudson/job/ServiceManagerTrunk/786/]
     : log the mem version (and advisor version) on startup.
[1 Jul 2009 15:54] Kay Roepke
The agent already logs it's version number on startup, although not on the default log level.
I'm opposed to also log it on shutdown, since even rotating the logs should not remove any logs.

For the agent the --version flag will show the version number:
./bin/mysql-monitor-agent --version
[1 Jul 2009 16:01] Marcos Palacios
Created bug http://bugs.mysql.com/bug.php?id=45884 to track the agent request.
[1 Jul 2009 16:26] Enterprise Tools JIRA Robot
Marcos Palacios writes: 
Comments:
I don't know of a system that logs on shutdown. I agree with the 'log it on start up' bit, which is already fixed. But the 'log version on shutdown' is a bit strange.

Resolution:
Verified fixed in service manager build 2.1.0.1071.
[1 Jul 2009 16:26] Enterprise Tools JIRA Robot
Marcos Palacios writes: 
Comments:
I don't know of a system that logs on shutdown. I agree with the 'log it on start up' bit, which is already fixed. But the 'log version on shutdown' is a bit strange.

Resolution:
Verified fixed in service manager build 2.1.0.1071.
[21 Jul 2009 16:49] Tony Bedford
A 'change' entry was added to the 2.1.0 changelog:

The version of Enterprise Monitor was not logged on startup.

Enterprise Monitor was changed to log the Monitor and Advisor version number on startup. See also Bug#45884.