Installation

Introduction

To install MMM you could use bundled install.pl script. Configuration options are described in separate document.

Details

Installation script is dedicated to verifying all software prerequisites, copying required files to user-specified or pre-defined directory and to install mmm binaries to system-accessible binaries directory. This script has following set of optional parameters:

  • –help - Show options list
  • –prefix=PREFIX - Specifies installation directory where all mmm-code and data will reside. Default value: ‘/usr/local/mmm’.
  • –disable-symlinks - Disables symlinks creation for mmm binaries. Symlinks creation is enabled by default.
  • –symlinks-dir=DIR - Specifies target directory for mmm binaries symlinks. Default value for this options is ‘/usr/local/sbin’.
  • –skip-checks - Skip all prerequisites checks and force installation process to begin. Default: perform all checks.

Prerequisites

Most of monitoring functionality of mmm now is based on Perl ithreads: servers checks, external commands processing and states switching logic are located in separate threads to prevent blocking of execution process because of network delays in checkers code. So, obviously, to use mmm you will need to use threads-enabled version of Perl interpreter.

You can see which (or neither) threading flavour you have by running `perl -V` and looking at the _Platform_ section. If you have `useithreads=define` you have ithreads, if not - you will need to reinstall perl and all modules before mmm deployment.

ARP-pings are performed with `arping` on linux and `send_arp` on Solaris. IP availability checks could be performed by bundled Linux version of `fping` utility. If you want to use this software on Solaris 10, you will need to build and install your own `fping` and `send_arp` utilities using the sources provided in `contrib` directory. To build them you will need to have `gcc` and `libnet` installed on your server.

Some other prerequisites are some Perl modules - I will not describe them all here - installer would help you to figure out which modules are missing and how to install them

When installation will be done, you will need to perform configuration of installed software. Before you will begin, read description of typical use-cases with configuration files examples. And read documentation about allowed configuration options and their values.

Debian Perl Prerequisites

For your convenience, here are the Perl modules you may need on Debian:

apt-get install libproc-daemon-perl libalgorithm-diff-perl

Running at startup

To configure mmm_mon to run at startup on RedHat/CentOS (assumes configuration has been complete):

%> cp /usr/local/mmm/scripts/init.d/mmm_mon /etc/init.d/mmm_mon
%> chkconfig --add mmm_mon
%> chkconfig --levels 2 mmm_mon on # Add any applicable runlevels
%> service mmm_mon start

To configure mmm_agent on the db hosts to run at startup on RedHat/CentOS (assumes configuration has been complete):

%> cp /usr/local/mmm/scripts/init.d/mmm_agent /etc/init.d/mmm_agent
%> chkconfig --add mmm_agent
%> chkconfig --levels 2 mmm_agent on # Add any applicable runlevels
%> service mmm_agent start

= To configure log rotation =

%> cp /usr/local/mmm/scripts/logrotate.d/mmm /etc/logrotate.d/mmm
mmm1/installation.txt · Last modified: 2009-07-23 13:20 by Pascal Hofmann
CC Attribution-Share Alike 3.0 Unported

MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Multi-Master Replication Manager for MySQL is in no way affiliated or associated with MySQL AB.

www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0