You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Currently there is no automated way to install the IEPM-BW monitoring kit on a host. Here are the steps which must be followed, in order, to install the monitoring host software.This assumes that the requirements for hardware and software configuration have been met.

The following instructions must be performed as root

  1. Decide what accounts are going to be needed. Assume the account 'cal' will have root privileges and be used for operations requiring root. Assume that the monitoring will run under the non-root access account 'iepm'. For this example, I will assume that the home directory for the 'cal' account is '/home/cal', and the home directory for the 'iepm' account is '/home/iepm'. For the sake of consistency beteween monitoring systems, the account 'iepm' with '/home/iepm' is strongly recommended.
  2. If the account mysql:mysql has not been allocated, allocate it by:
    groupadd \-g 20000 mysql
    useradd -u 20000 -g mysql mysql
    
  3. Decide on the directory structure for the mysql data base and the monitoring code. It is best to have the mysql data base on a separate physical disk from the system disk, but if this is not possible, use '/home/iepm/mysql' as the base. Make the mysql directory.
    mkdir /home/iepm/mysql
    chown mysql:mysql /home/iepm/mysql
    
  4. Create a configuration file for /etc/my.cnf which MySQL will use when you install the database.
    [mysqld]
    datadir=/home/iepm/mysql
    socket=/home/iepm/mysql/mysql.sock
    port=3306
    [mysqld_safe]
    datadir=/home/iepm/mysql
    socket=/home/iepm/mysql/mysql.sock
    port=3306
    [mysql.server]
    datadir=/home/iepm/mysql
    socket=/scratch/mysql/mysql.sock
    port=3306
    [client]socket=/scratch/mysql/mysql.sock
    port=3306
    
  5. If mysql is already running, it is running with the 'test' database. Kill the mysql daemons.
  6. Restart MySQL with 'mysqld_safe&'. This will restart the MySQL server with the configuration file /etc/my.cnf.
  7. Create the dtaa base by executing 'mysql_install_db'.
  8. Change the ownership of '/home/iepm/mysql' by the command chown 'chown -R mysql:mysql /home/iepm/mysql'.
  9. Set the database root password with 'mysqladmin -u root password "new password" '.
  • No labels