My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 11, 2008 by tim.koops
Labels: Featured, Phase-Deploy
Installation  
A set of brief installation instructions for numbrcrunchr.

Installation Instructions

1. Ruby gems

The majority of Ruby monitors in tools/monitors require the following gems:

    gem install needle-1.3.0.gem
    gem install net-scp-1.0.1.gem
    gem install net-sftp-1.1.1.gem
    gem install net-ssh-2.0.3.gem
    gem install mysql-2.7.3-mswin32.gem

Note: for Win32 users of the mysql gem ... For this to work, you must have libmysql.dll in your PATH environmental variable. If you have MySQL installed locally, just make sure that \bin is in your path. If you donĂ­t have MySQL installed locally, you can install one or more of the MySQL tools, find the libmysql.dll included in their bin directory, and copy it to the %SystemRoot%\System32 folder.

Note: for OSX 10.5 users you should install the mysql gem using the following command:

    sudo env ARCHFLAGS="-arch i386" gem install mysql 
    -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Note: The gems used for development are also available locally in tools/gems

2. JRuby gems

A number of JRuby monitors (using JMX) require the installation of JRuby and the following gems:

    <jruby_install_dir>\bin\gem install jmx4r-0.0.5.gem

3. Config Settings

You will need to modify the config settings in config/config.php for your database configuration. Ruby monitors also have a similar configuration requirement for each script. You will need to modify dbname, dbhost, dbusername and dbpassword settings for each.

4. Ruby monitors

These are launched in windows using scheduled tasks. I typically run this under a local user with administrative priveleges.

5. Data Analysis

To automatically create y shading 'bands' in your dataset, use the analyze_data.rb script in tools/analysis. With this you can set how many days to base the percentiles on (typically last 30 days).


Comment by lantrix, Oct 12, 2009

On Mac OSX You should install your gems using sudo. I found I didn't need to install ssh as the sftp gem had it as a pre-requisite. Additionally some of the versions listed in the document are out of date, so it's best to just install the gem by name.

$ sudo gem install needle
Successfully installed needle-1.3.0
1 gem installed
Installing ri documentation for needle-1.3.0...
Installing RDoc documentation for needle-1.3.0...

$ sudo gem install net-scp
Successfully installed net-scp-1.0.2
1 gem installed
Installing ri documentation for net-scp-1.0.2...
Installing RDoc documentation for net-scp-1.0.2...

$ sudo gem install net-sftp
Successfully installed net-ssh-2.0.15
Successfully installed net-sftp-2.0.2
2 gems installed
Installing ri documentation for net-ssh-2.0.15...
Installing ri documentation for net-sftp-2.0.2...
Installing RDoc documentation for net-ssh-2.0.15...
Installing RDoc documentation for net-sftp-2.0.2...

$ sudo env ARCHFLAGS="-arch i386" gem install mysql -- \
--with-mysql-config=/usr/local/mysql/bin/mysql_config

Sign in to add a comment
Hosted by Google Code