Skip to main content

MySQL Enterprise Monitoring Agent Installation



Mysql monitor is the nagios of Database. It is especially useful when you have a bunch of mysql DB servers to manage.

http://www.mysql.com/products/enterprise/monitor.html

Here are 8 steps to enable the monitoring agent on the DB server. It is assumed that the monitor server is already configured and active on a server (for e.g. 10.10.10.63)

1) sudo root
2) download agent
3) Change file permissions
chmod +x mysqlmonitoragent-2.3.1.2044-linux-glibc2.3-x86-64bit-installer.bin

4) Run file
[root@localhost]# ./mysqlmonitoragent-2.3.1.2044-linux-glibc2.3-x86-64bit-installer.bin

5) Start agent
/etc/init.d/mysql-monitor-agent start

6) check status
ps -ef | grep monitor

7) check log
cat /opt/mysql/enterprise/agent/mysql-monitor-agent.log

8) create mysql user for e.g.
mysql> grant all on *.* to 'agent'@'%' identified by 'agent';

_____

The following options must be selected very carefully or else monitor will not work as expected.

Installation directory
Installation directory [/opt/mysql/enterprise/agent]:


How will the agent connect to the database it is monitoring?
[1] TCP/IP
[2] Socket
Please choose an option [1] : 1

----------------------------------------------------------------------------
Components to Install

Monitoring:
Enable the Agent to monitor a MySQL Server [Y/n]: Y

Query Analyzer:
Enable the Aggregator to aggregate Query Analyzer data from an external source [y/N]: N
Enable MySQL Proxy to collect and aggregate Query Analyzer data [y/N]: y

----------------------------------------------------------------------------
Monitored Database Information

MySQL hostname or IP address [127.0.0.1]:

Validate MySQL hostname or IP address [y/N]: N

MySQL Port [3306]:

MySQL Username [agent]: agent

MySQL Password :
Re-enter :
----------------------------------------------------------------------------
Agent User Account Creation

[1] Yes, use the credentials below to create the Agent's user account
[2] No, I've already created the account and I'm sure it's correct
Please choose an option [1] : 2

----------------------------------------------------------------------------
MySQL Enterprise Monitor Options

Hostname or IP address []: 10.10.10.63

Tomcat Server Port [18080]:

Tomcat SSL Port [18443]:

Use SSL? [y/N]: y

Agent Username [agent]: agent

Agent Password :
Re-enter :

Comments

Popular posts from this blog

Mongodb online Training course Agenda

  Goal:   In this module, you will get an understanding of NoSQL databases, design goals, requirement of NoSQL database/ MongoDB, MongoDB® architecture and introduction to JSON and BSON among others. This module will also cover the installation of MongoDB® and associated tools. Skills Understand NoSQL databases and  advantages Install MongoDB on Windows and Linux platform Security Enable and high availability Objectives After completing this module, you will  be able knowledge ed on SQL and noSQL Database usages and difference between these MongoDB design and architecture  MongoDB GUI tools Describe JSON and BSON Install MongoDB on Windows, Linux, MAC OS etc.  Setup MongoDB environment Topics • Understanding the basic concepts of a Database • Database categories: What is NoSQL? Why NoSQL? Benefit over RDBMS  • Types of NoSQL Database, and NoSQL vs. SQL Comparison, ACID & Base Property • CAP Theorem, implementing NoSQL and what is MongoDB?  • O...

Linux Commands With Examples for Database Admins

Frequently Used Linux Commands With Examples 1. tar command examples Create a new tar archive. $ tar cvf archive_name.tar dirname/ Extract from an existing tar archive. $ tar xvf archive_name.tar View an existing tar archive. $ tar tvf archive_name.tar More tar examples: The Ultimate Tar Command Tutorial with 10 Practical Examples 2. grep command examples Search for a given string in a file (case in-sensitive search).  $ grep -i "the" demo_file Print the matched line, along with the 3 lines after it. $ grep -A 3 -i "example" demo_text Search for a given string in all files recursively $ grep -r "ramesh" * More grep examples: Get a Grip on the Grep! – 15 Practical Grep Command Examples 3. find command examples Find files using file-name ( case in-sensitve find) # find -iname "MyCProgram.c" Execute commands on files found by the find command $ find -iname "MyCProgram.c" -exec md5sum {} \; Find all empty...

MySQL Architecture -Client Server Architecture

Client/Server Overview The MySQL database system operates using a client/server architecture. The server is a central program that manages database contents, and client programs connect to the server to retrieve or modify the data. MySQL also includes non-client utility programs and scripts. MySQL Server:   This is the mysqld program that manages database and tables. Most users choose binary MySQL distribution that includes a server ready to run with the capabilities they need, but it's also possible to compile MySQL from source. Client Programs:  These are programs that communicate with the server by sending requests to it over a network connection. The server acts on each request and returns a response to the client. For example you can use the mysql client to send queries to the server, and the server returns the query results. A client program can connect locally to a server running on the same machine or remotely to a server running on a different mac...