Install Zenoss 4.2.4 with CentOS 6.4 Minimal

Hello Everybody.

Long time ago I wrote the last post, sorry for that clip_image001[4]. Today I will explain how to install Zenoss 4.2.4 with CentOS 6.4 minimal distro.

Ok, let’s get start…

1- Download files.

First you need to download the next files:

Centos 6.4 Minimal Distro:

https://mega.co.nz/#!4J0w1AZA!aLcHITCxZYImzlAruLVtGmwpDy5VqM7qM15bm4HFRmE

Java:

https://mega.co.nz/#!BBMUFQwY!O0nTzkgFDuXDI1IYch2DrgjOG_Rag11Vy3T8lRt6S5U

RPM install Package of Zenoss:

https://mega.co.nz/#!lAsGmbpC!KFQiSDWHCdpNUGdNi8xqpE_-7YkKtJpkB_P1UJYUuD0

2 – install Java.

Well, when you done you need to install CentOS Linux in your server, if you don’t know how, you can search in Google “How to install CentOS” And That’s all!

After you install CentOS I recommend to update the OS with the next command:

# yum update

Go to the directory where you download the files in the firsT step. For these cases I always use /tmp, the Java Path or you can save it wherever you want.

# cd /your_download_directory

Then we have to assign the execute permission for the java install file:

# chmod +x jre-6u31-linux-x64-rpm.bin

Now execute the binary file with the next command:

# ./jre-6u31-linux-x64-rpm.bin

We need to define the Java Path, edit the file /etc/profile adding the line below:

export JAVA_HOME=/usr/java/default/bin

And execute this command:

# source /etc/profile

Check the Java version:

# java –version

clip_image002[4]

3 – Disable SELINUX and IPTABLES.

Disable SELINUX temporaly:

# setenforce 0

Disable SELINUX permanently editting /etc/selinux/config file:

Change:

SELINUX=enabled

For:

SELINUX=disabled

Disable iptables:

# /etc/init.d/iptables stop

Then execute this command to prevent iptables service starts with the SO:

# chkconfig iptables off

But if you don’t want to disable iptables, you just have to add the following rules:

# iptables -I INPUT 5 -p tcp --dport 8080 -j ACCEPT
# iptables -I INPUT 6 -p tcp --dport 11211 -j ACCEPT
# iptables -I INPUT 7 -p udp --dport 11211 -j ACCEPT
# iptables -I INPUT 8 -p udp --dport 514 -j ACCEPT
# iptables -I INPUT 9 -p udp --dport 162 -j ACCEPT
# service iptables save

4 – Install the Zenoss Dependencies Repository.

#  rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm

5 – Install and Configure MySQL Community Server.

We will install Zenoss And Mysql in the same Server and we won’t set password for Mysql root, so we need to do this:

# wget ftp://ftp.sunet.se/pub/databases/relational/mysql/Downloads/MySQL-5.5/MySQL-client-5.5.33-1.el6.x86_64.rpm

# wget ftp://ftp.sunet.se/pub/databases/relational/mysql/Downloads/MySQL-5.5/MySQL-server-5.5.33-1.el6.x86_64.rpm

# wget  ftp://ftp.sunet.se/pub/databases/relational/mysql/Downloads/MySQL-5.5/MySQL-shared-5.5.33-1.el6.x86_64.rpm

Then, remove mysql-libs

# yum –y remove mysql-libs

Now, install the download package with the next command:

# yum -y –nogpgcheck localinstall MySQL*

And create a file named /etc/my.cnf file, and add the lines below:

[mysqld]

max_allowed_packet=16M

innodb_buffer_pool_size=256M

innodb_additional_mem_pool_size=20M

And start mysql service:

# /etc/init.d/mysql start

Configure Mysql for Zenoss Core installation:

# mysqladmin -u root password ”

# mysqladmin -u root -h localhost password ”

6 – Install the Zenoss Core Installation File.

Go to your download directory:

# cd /your_download_directory

Then install Zenoss file:

# yum -y –nogpgcheck localinstall zenoss_core-4.2.4-1897.el6.x86_64.rpm

And start the following services:


# /etc/init.d/memcached start

# /etc/init.d/rabbitmq-server start

# /etc/init.d/snmpd start

# /etc/init.d/zenoss start

If you have troubles starting rabbitmq-server, edit /etc/hosts and add the following line:

127.0.0.1   zenoss.mydomain.com

When, zenoss.mydomain.com is the name and domain assigned to the server when you install CentOS 6.4.

7 – Add Services start with SO.

We need the services starts with the SO, so we need to set it with the next commands:

# chkconfig mysql on

# chkconfig memcached on

# chkconfig rabbitmq-server on

# chkconfig snmpd on

# chkconfig zenoss on

Then we can access to Zenoss via web browser and follow the steps:

http://mi-ip-server:8080

8 – Install vmware tools.

Like I had installed Zenoss Core as a virtual machines in vmware ESXI 5.1, I need to install vmware tools in this server, so we execute the following commands:

# yum -y install http://packages.vmware.com/tools/esx/5.1/repos/vmware-tools-repo-RHEL6-9.0.0-2.x86_64.rpm
# yum -y install vmware-tools-esx-nox
Well, that’s all! I hope it can help you! See you! 
SOURCES:
http://www.nextstep4it.com/categories/how-to/zenoss/
http://everythingshouldbevirtual.com/zenoss-4-2-4-centos-install

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s