Install Collector


List of Contents

Manual Installation

Create mach_collector_home directory first and copy the downloaded package.

[mach@localhost ~]$ mkdir mach_collector_home
[mach@localhost ~]$ cp 
machcollector-3.5.0.826b8f2.community-LINUX-X86-64-release.tgz
 mach_collector_home/
[mach@localhost ~]$ cd mach_collector_home/
[mach@localhost ~/mach_collector_home]$ 
tar -zxvf machcollector-3.5.0.826b8f2.community-LINUX-X86-64-release.tgz

bin/
bin/machregex
bin/machcollectord
bin/machcollector
bin/machcollectoradmin
collector/
collector/sign/
collector/apache_access.tpl
collector/samples/
collector/samples/test.rgx
collector/samples/test.tpl
collector/samples/test.log
collector/preprocess/
collector/preprocess/custom.py
collector/preprocess/skip.py
collector/preprocess/replace.py
collector/preprocess/pypyodbc_sample.py
collector/preprocess/trace.py
collector/custom.tpl
collector/syslog.tpl
collector/machbase.tpl
collector/regex/
collector/regex/meta.rgx
collector/regex/syslog.rgx
collector/regex/nxlog.rgx
collector/regex/machbase.rgx
collector/regex/unparse.rgx
collector/regex/apache_error.rgx
collector/regex/apache_access.rgx
conf/
doc/
meta/
trc/
webadmin/
webadmin/flask/
webadmin/flask/Python/
webadmin/flask/Python/*  Omitted

The contents of Python folder are not described here.

When you unzip the file, directories below will be created.

[mach@localhost ~/mach_collector_home]$ ls -al
total 60372
drwxrwxr-x  9 mach mach     4096 Jun 27 23:58 .
drwx------ 20 mach mach     4096 Jun 27 23:40 ..
drwxrwxr-x  2 mach mach     4096 Jun 27 23:31 bin
drwxrwxr-x  6 mach mach     4096 Jun 27 23:31 collector
drwxrwxr-x  2 mach mach     4096 Jun 27 23:31 conf
drwxrwxr-x  2 mach mach     4096 Jun 27 23:31 doc
-rw-r--r--  1 mach mach 61783606 Jun 27 23:41 
machcollector-3.5.0.9ffc36a.official-LINUX-X86-64-release.tgz

drwxrwxr-x  2 mach mach     4096 Jun 27 23:31 meta
drwxrwxr-x  2 mach mach     4096 Jun 27 23:31 trc
drwxrwxr-x  3 mach mach     4096 Jun 27 23:31 webadmin
[mach@localhost ~/mach_collector_home]$

Table 1. Description of directories

Name of directory Description
bin Executable file
collector Configuration sample of a collector
conf Configuration file
doc License file
lib Various library
msg Warning and error message of a collector
webadmin Python package

Set Environment Variable

It specifies executable paths and dynamic libraries. For bash, add the scripts below in .bashrc file.

export MACHBASE_COLLECTOR_HOME=/home/machbase/machbase_home
export PATH=$MACHBASE_COLLECTOR_HOME/bin:$PATH
export LD_LIBRARY_PATH=$MACHBASE_COLLECTOR_HOME/lib:$LD_LIBRARY_PATH

To apply the changes, run the command below.

source .bashrc

It specifies the port number that the collector manager uses.

export MACH_COLLECTOR_PORT=9999

If MACH_COLLECTOR_PORT is not specified, the specified value in PORT_NO from MACH_COLLECTOR_HOME/conf/machcollector.conf file will be used.
When the two environment variables above are set, the collector manager is now ready to use. The explanation and examples are described in the next chapter.

results matching ""

    No results matching ""