Kontrollbase - MySQL Monitoring


Installation Process Overview

There are three main components to Kontrollbase. The webapp, the client scripts, and the server scripts. Each component needs to be installed in a specific sequence.


Note: You only have to setup the Webapp and the Server Scripts one time, but you do have to setup the Client Script on each client host that you want to be monitored.

Reference: Location of Files

Here is a brief explanation of where the files are that you will be dealing with. You'll see these once you download the application tar.gz file and then unpack it. Naming conventions example: $root/bin/kontroll-stats-gather-5.0.x_linux-x86.pl Directories The following directories within your installation location have special permissions requirements. The installer will check for the webserver permissions requirements but since it does not know what user you will have running the server scripts, it will not check for that - so please be aware of this when you are setting up the user that will run the scripts as they write out their debug/error information to the /system/logs directory. Files

Checking requirements

Before you do anything you will want to run the pre-requisite check script that looks for various PHP and Perl modules to see if they are installed. You need all of the required modules to be found by this script or the application will fail to run. You can find the script in the $root/bin/ directory and it is run as follows: shell> php kontroll-check_reqs.php Starting... Beggining PHP prerequisite checks Prerequisite dom located Prerequisite mbstring located Prerequisite mysql located Prerequisite xml located All required PHP modules are available. Beginning Perl prerequisite checks Prerequisite XML/Parser.pm located Prerequisite XML/SimpleObject.pm located Prerequisite DBI.pm located Prerequisite /Math/Calc/Units.pm located All required Perl modules are available.

The Simplest Method for Installing Requirements

The easiest way to do this is to use Redhat/Centos for your server. This is because RPMforge has all of the required modules as RPM files. You may find that Ubuntu/Debian has most or all of the packages in their various repositories but we don't keep very up to date on that platform since most enterprise servers that we encounter run Redhat and, as such, the application is built and developed on that OS. So, here are the instructions for the quickets method of installing all required dependencies.

Install the RPMforge repository RPM for your particular OS

This is required since most of the RPMs are not found in the standard OS repositories.
http://dag.wieers.com/rpm/FAQ.php#B

Install MySQL client and server

Not required if you are installing MySQL from alternate means
yum -y install mysql mysql-server

Install Apache and PHP requirements

You might already have Apache installed but you may not have the other PHP modules installed.
yum -y install httpd php php-mysql php-mbstring php-xml

Install Perl and Perl modules requirements

You probably already have Perl installed but you definitely need the other modules.
yum -y install perl perl-DBD-mysql perl-DBI perl-Digest-HMAC perl-XML-LibXML perl-XML-Simple perl-XML-Parser perl-XML-SimpleObject perl-XML-LibXML-Common perl-Crypt-DES perl-Math-Calc-Units perl-Net-SNMP

For Reporter-CLI functionality if desired

yum -y install sqlite perl-DBD-SQLite

Check that all requirements are met

Go to the bin/ directory and run the php script for checking requirements.
ROOT-(root@localhost)-(/usr/local/src/kontrollbase-read-only/bin)-ROOT ROOT-(0)> php ./kontroll-check_reqs.php Starting... Beggining PHP prerequisite checks Prerequisite dom located Prerequisite mbstring located Prerequisite mysql located Prerequisite xml located All required PHP modules are available. Beginning Perl prerequisite checks Prerequisite XML/Parser.pm located Prerequisite XML/SimpleObject.pm located Prerequisite DBI.pm located Prerequisite /Math/Calc/Units.pm located All required Perl modules are available.

Webapp Installation

The webapp is simply the visual interaction with the application. Think of it as the display layer that makes all of the data able to be used and interpreted.

It offers the following features Install steps

Client Script Installation

The client scripts are installed on a per-host basis. This means that each client host has it's own copy of the client script. There is only one file needed on each client host so the process is relatively simple. The added bonus is that this process can be scripted to automate installation across multiple servers - if you are familiar with automation scripting that is :)

The client scripts gather the following data from the client server Install steps are dependent upon the type of Linux you are using on the client server

Server Scripts Installation

The server scripts are the backend code that provides the life-blood of Kontrollbase. Without these scripts running at periodic intervals we won't have any data to display for your client servers. They're the worker ants in the equation. Written in Perl, they provide the following services:

Installation instructions

Please see this page for detailed instructions.