1.
Introduction
ZENOSS is an
award-winning open source IT monitoring product that offers visibility over the
entire IT stack, from network devices to applications. Features include
automatic discovery, inventory via CMDB, availability monitoring,
easy-to-read performance graphs, sophisticated alerting, an easy-to-use
web portal, and much, much more.
2.
Installation
Steps for ZenosS Core
Basic Pre-requisites for System:
Ø
Internet Connection
Ø
disabled SELinux
Ø
/opt/zenoss
directory is not a symbolic link to another location
Ø
umask is
set to 022 (masks write permissions for group and others)
Ø
/home
directory is writable by root, or the /home/zenoss
directory exists as the zenoss user home directory
Ø
DNS is accessible
3. Pre-request for Installation of ZENOSS.
3.1 Before Installation of ZenosS
3.1.1.
Configure
the Firewall
firewall can be configured and
alternatively it can be turned off. So we choose to turn off the firewall for
time being.
For IPv4, use these commands:
service iptables stop
chkconfig iptables off
For IPv6, use these commands:
service ip6tables stop
chkconfig ip6tables off
3.1.2 Remove the Out Dated Package from the System
Zenoss Core requires at least MySQL
5.5.25, and supports later versions through 5.5.31. If you have older versions
of MySQL installed, you must first remove those installations. Current data
will be lost.
As skipping this step results into a
outdated package installed on your server and if you try to upgrade the MySQL
server to the version mentioned above without removing the old packages, system
will throw an error that MySQL is already present.
1. Stop the MySQL service:
service mysqld stop
2. List the MySQL packages currently
installed:
rpm -qa | grep -i mysql
3. Remove all listed packages:
yum erase Package1 Package2 ...
4. If your version of MySQL is earlier
than 5.5.25, delete the MySQL directory:
rm -rf /var/lib/mysql
If your version of MySQL is 5.5.25 or a
more recent version, DO NOT deletes the MySQL directory.
3.1.3
Remove the Conflicting Messaging System.
Zenoss Core relies on the RabbitMQ
messaging system. Newer versions of CentOS include alternative messaging systems
(Matahari and Qpid). We must remove these messaging systems to run Zenoss Core.
1. Use the following commands to
determine if Matahari or Qpid packages are installed on system:
rpm -qa | egrep -i "matahari|qpid"
2. Remove all listed packages:
yum
erase Package1 Package2 ...make all
3.1.4 Install Oracle on System.
1. Zenoss Core is not compatible with
OpenJDK Java. To determine whether it is installed, enter the following
command: rpm -qa | grep openjdk
To remove OpenJDK Java, log in as root,
and enter the following command:
yum -y remove openjdk-package-name
Download
the latest self-installing RPM of Oracle Java SE Runtime Environment 6u31 from
the Java SE 6 Downloads page. The file to download is jre-6u31-linux-x64-rpm.bin.
Note :
Now to download the packages from the external
network, check for the network connectivity otherwise you will face following
kind of errors :
>>>
Could
not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
error was14: PYCURL ERROR 7 - "Failed to connect to
2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again You could try using --skip-broken to work around the problem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again You could try using --skip-broken to work around the problem
<<<
Resolution
:
So you need to set the http proxy using
the export http_proxy command.
For e.g.
----------------------------------------------
export http_proxy=http://username:password@proxy.co.in:8080
----------------------------------------------
Alternative
method manually down load the JRE rpm and copy it to the respective zenoss
repository location on the system
2. Change mode:
chmod +x ./jre-6u31-linux-x64-rpm.bin
3. Install Oracle JRE:
./jre-6u31-linux-x64-rpm.bin
Or
rpm –i jre-6u31-linux-x64-rpm.bin
4. Update JAVA_HOME. Add the following
line to the end of the /etc/profile file:
export JAVA_HOME=/usr/java/default/bin
5. Verify the correct installed version
(1.6 Update 31):
java –version
If you face any issue like as mention below :
Error :
-------------------------
Fresh install pre steps
Tue Jul 30 19:17:32 IST
2013
Linux IBM64BIT 2.6.32-220.el6.x86_64 #1
SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
Please update the JRE with the latest version of the JRE.
Example : rpm –U
jre-7.0-linux-x64-rpm.bin
Please
confirm that the JRE in the PATH is Oracle's version.
Command:
echo
$JAVA_HOME
3.1.5 Disable SELinux.
Zenoss
Core is not compatible with Security-Enhanced Linux (SELinux) in enforcing
mode. Follow these steps to disable enforcing mode on the Zenoss Core host.
1. Log
in as root, or as a user with super user privileges.
2.
Disable enforcing mode temporarily (avoiding the need to reboot) with the
following command:
/bin/echo
0 > /selinux/enforce
3.
Disable enforcing mode permanently by editing the /etc/selinux/config file
with the following command:
/bin/sed
-i.bak -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
3.1.6
Download and install the ZenosS Dependency repository
Upgrade
the repository for Zenoss dependencies:
RHEL/CentOS
5: rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el5.noarch.rpm
RHEL/CentOS
6: rpm –Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm
3.2 Installation and Configuration of MySql Server
Install MySQL Community Server and
Zenoss Core on the same host or we can install them on separate hosts.
Follow these steps to download,
install, and configure MySQL Community Server:
1. Download the following Red
Hat/Oracle Enterprise Linux (x86, 64-bit) RPM Packages from mysql.com/:
• Client Utilities
• MySQL Server
• Shared components
2. Install the packages with the
command:
yum -y --nogpgcheck localinstall MySQL*
Important: When MySQL installation
completes, it displays a message similar to "PLEASE REMEMBER TO SET A
PASSWORD FOR THE MySQL root USER !" followed by directions to perform this
task.
Do not set the MySQL root user password
at this point in the installation process. You must install Zenoss Core before
performing this task.
3. Create a file named /etc/my.cnf
file, and then add the following lines:
[mysqld]
max_allowed_packet=16M
innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M
4. Run these commands to start the
mysql daemon and to configure it to start automatically on reboot:
service mysql start
chkconfig --add mysql
chkconfig --level 2345 mysql on
5. Configure MySQL for Zenoss Core
installation. Do not add a space between the single quotes in the following
commands:
mysqladmin -u root password ''
mysqladmin -u root -h localhost password ''
4. Installation for ZENOSS.
Down
load the Installation rpm from the
mention location
Install rpm of ZenosS
RHEL/CentOS
5:
yum -y --nogpgcheck localinstall zenoss_core-version.el5.x86_64.rpm
|
RHEL/CentOS 6
yum -y --nogpgcheck localinstall zenoss_core-version.el6.x86_64.rpm
|
Configure required services to start when the host
starts, and start the services:
for svc in memcached rabbitmq-server snmpd
do
chkconfig $svc on
service $svc start
done
|
When the Zenoos Successfully installed,
you will see the below message on the console output .
Or you can verify all process related to zenoss are running
by using the ps command.
[root@IBM64BIT log]# service zenoss status