Bug #39938 Agent crashes on *unix systems with no ssh-keygen and using wireless card
Submitted: 8 Oct 2008 18:01 Modified: 27 Jul 2009 15:42
Reporter: Diego Medina Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S2 (Serious)
Version:2.0.0.7071 OS:Mac OS X (Solaris, Linux)
Assigned to: Kay Roepke CPU Architecture:Any

[8 Oct 2008 18:01] Diego Medina
Description:
The agent crashes if you do not have ssh-keygen (or it is renamed) and if you are using your wireless card instead of your regular ethernet card.

How to repeat:
1- Rename ssh-keygen to ssh-keygen2

sudo mv /usr/bin/ssh-keygen /usr/bin/ssh-keygen2

2- Install the service manager and the agent
3- Make sure the inventory table is empty.

TRUNCATE TABLE mysql.inventory;
4- Start the agent and service manager.
5- wait about a minute and then run

/Applications/mysql/enterprise/agent/etc/init.d/mysql-monitor-agent status

to see if the agent is running

or use any other tool like 
ps | grep mysql-monitor-agent

Here it is the output from gdb
https://intranet.mysql.com/secure/paste/displaypaste.php?codeid=5451
[8 Oct 2008 18:03] Diego Medina
I do not have a windows machine to verify this. But it does affect mac and linux
[1 Jun 2009 14:31] Harrison Fisk
Experienced this on Solaris 8 with agent version 2.0.5.7153

Failure was:

sh: ssh-keygen: not found

** ERROR:(agent_mysqld.c:314):???: assertion failed: (m->agent_host_id->len > 0)
[20 Jul 2009 12:38] Enterprise Tools JIRA Robot
Kay Roepke writes: 
revno: 1423
committer: Kay Roepke <kay@sun.com>
branch nick: agent
timestamp: Mon 2009-07-20 14:08:23 +0200
message:
  Bug#39938/EM-2703: do not trust return code from sh, but also check stderr for any content. fall back to MAC address detection if necessary
[23 Jul 2009 22:48] Enterprise Tools JIRA Robot
Andy Bang writes: 
In 2.1.0.1079.
[24 Jul 2009 18:40] Enterprise Tools JIRA Robot
Diego Medina writes: 
Verified fixed on 2.1.0.1079
[27 Jul 2009 15:42] Tony Bedford
An entry was added to the 2.1.0 changelog:

The agent crashed if ssh-keygen was not present and if a wireless card was being used instead of an Ethernet card.