[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.2 Installing EMT

Creating an RPM is the preferred way to install EMT. In the future, other packages will be released, as well as a shell-based installer. Currently, the RPM installer does little more than copy files around and create a symbolic link for the emt_view command. The ‘build_rpm.sh’ script isn't configured to use a local RPM development environment yet so it will require sudo access to build the RPM.

 
 ./build_rpm.sh
Recreating buildroot
Copying files
Building rpm
Processing files: emt-0.2-58
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires: /usr/bin/php /usr/bin/php gmp >= 4.1.4 sysstat >= 5.0.5
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/emt_buildroot
Wrote: /usr/src/redhat/RPMS/noarch/emt-0.2-58.noarch.rpm
$

The rpm can be installed with:

 
sudo rpm -ivh /usr/src/redhat/RPMS/noarch/emt-0.2-58.noarch.rpm

The RPM will install the default ‘emt_sys.cnf’ plugin configuration file. This file instructs EMT to gather system stats. If stats should be collected from other built-in plugins, additional configuration files can be found in ‘/opt/emt/plugins/configuration/’. For example, copying ‘emt_mysql.cnf’ or ‘emt_apache.cnf’ to ‘/etc/emt.d/’ and changing the appropriate parameters in those files will tell EMT to gather application-specific stats for MySQL and Apache, respectively.