Bug #23708 agent inst startup script has invalid paths (br 1807)
Submitted: 27 Oct 2006 6:38 Modified: 1 Nov 2006 10:14
Reporter: Gary Whizin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S1 (Critical)
Version:0.7.14 OS:Linux (linux)
Assigned to: Keith Russell CPU Architecture:Any
Tags: startup

[27 Oct 2006 6:38] Gary Whizin
Description:
Agent startup script fails due to invalid paths. From /opt/mysql/network/agent/etc/init.d/mysql-service-agent:

# Note that these settings assumes default config of pid file
MERLIN_AGENT_SERVICE="mysql-service-agent"
MERLIN_AGENT_PSERVICE="MySQL Network agent"
MERLIN_AGENT_BIN="/usr/bin/mysql-service-agent"
MERLIN_AGENT_CONFIG="/etc/mysql-service-agent.ini"

The last 2 definitions above should be:

MERLIN_AGENT_BIN="/opt/mysql/network/agent/bin/mysql-service-agent"
MERLIN_AGENT_CONFIG="/opt/mysql/network/agent/etc/mysql-service-agent.ini"

NOTE: we're making other changes to the startup script, will send you sample Friday

How to repeat:
install agent to new default directory, start up fails due to path errors in script (see above
[1 Nov 2006 10:14] Carsten Segieth
tested OK with 0.7.17, installed with sudo to default path (agent can be started, stopped, restarted). Only problem was that sometimes the 60 sec timeout was not enough for the kill command during 'stop'.