Install MySQL agent unattended mode / non-interactive mode:
01. Get file mysqlmonitoragent-8.0.3.8197-linux-x86-64bit-installer.bin from Oracle e-delivery.
02. Copy file mysqlmonitoragent-8.0.3.8197-linux-x86-64bit-installer.bin to /tmp/ of the target server where agent need to install.
03. Create options file - options.txt and include following parameters.
debuglevel=4
installer-language=en
debugtrace=/mysql/MEM803/agent/install.debugtrace.monitor.log
mode=unattended
# User defined installation location of agent
installdir=/mysql/MEM803/agent/
# Following is the server where MySQL Service Manager is running
managerhost=<MEM Server>
managerport=<Port No. of MEM server>
# Following is the user created on MEM and not in MySQL database
agentuser=msqlagent
agentpassword=<code>
# database type of installation will monitor server and database
agent_installtype=database
# Mysql user of the server where agent is installed
mysqluser=root
mysqlpassword=<code>
# Mysql server where agent is up and running
mysqlhost=<Server Name agent where installed >
# Mysql database port on which agent is up and running
mysqlport=<MySQL DB port>
04. You can install agent as a root or mysql user.
05. Execute following command to install agent
$./mysqlmonitoragent-8.0.3.8197-linux-x86-64bit-installer.bin --optionfile /mysql/MEM803/agent/options.txt
06. Start agent using following command
/mysql/MEM803/agent/etc/init.d/mysql-monitor-agent start
07. Check agent status using following command
/mysql/MEM803/agent/etc/init.d/mysql-monitor-agent status
08. To troubleshoot MySQL agent installation, check log files in log directory.
09. To change configuration after installation edit /mysql/MEM803/agent/etc/bootstrap.properties
#Agent configuration updated
#Fri Nov 09 16:01:09 PST 2018
agent-item-files=etc/custom.xml
agent-mgmt-username=mysqlagent
agent-mgmt-hostname=https\://<MEM Server>\:<Port No.>
agent-mgmt-password=<Encrypted password>
Ref.: https://dev.mysql.com/doc/mysql-monitor/8.0/en/mem-unattended-installation-cmdline-options-agent.html
01. Get file mysqlmonitoragent-8.0.3.8197-linux-x86-64bit-installer.bin from Oracle e-delivery.
02. Copy file mysqlmonitoragent-8.0.3.8197-linux-x86-64bit-installer.bin to /tmp/ of the target server where agent need to install.
03. Create options file - options.txt and include following parameters.
debuglevel=4
installer-language=en
debugtrace=/mysql/MEM803/agent/install.debugtrace.monitor.log
mode=unattended
# User defined installation location of agent
installdir=/mysql/MEM803/agent/
# Following is the server where MySQL Service Manager is running
managerhost=<MEM Server>
managerport=<Port No. of MEM server>
# Following is the user created on MEM and not in MySQL database
agentuser=msqlagent
agentpassword=<code>
# database type of installation will monitor server and database
agent_installtype=database
# Mysql user of the server where agent is installed
mysqluser=root
mysqlpassword=<code>
# Mysql server where agent is up and running
mysqlhost=<Server Name agent where installed >
# Mysql database port on which agent is up and running
mysqlport=<MySQL DB port>
04. You can install agent as a root or mysql user.
05. Execute following command to install agent
$./mysqlmonitoragent-8.0.3.8197-linux-x86-64bit-installer.bin --optionfile /mysql/MEM803/agent/options.txt
06. Start agent using following command
/mysql/MEM803/agent/etc/init.d/mysql-monitor-agent start
07. Check agent status using following command
/mysql/MEM803/agent/etc/init.d/mysql-monitor-agent status
08. To troubleshoot MySQL agent installation, check log files in log directory.
09. To change configuration after installation edit /mysql/MEM803/agent/etc/bootstrap.properties
#Agent configuration updated
#Fri Nov 09 16:01:09 PST 2018
agent-item-files=etc/custom.xml
agent-mgmt-username=mysqlagent
agent-mgmt-hostname=https\://<MEM Server>\:<Port No.>
agent-mgmt-password=<Encrypted password>
Ref.: https://dev.mysql.com/doc/mysql-monitor/8.0/en/mem-unattended-installation-cmdline-options-agent.html
Comments
Post a Comment