In this tutorial, we will show you how to install Zenoss on CentOS 6. For those of you who didn’t know, Zenoss is a free and open-source monitoring solution similar to Nagios. Zenoss Core provides a web interface that allows system administrators to monitor availability, inventory/configuration, performance, and other events. The main advantage of Zenoss is that you don’t need to install any software on the client-side for monitoring.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Zenoss on centos 6.
Install Zenoss on CentOS 6
Step 1. First, Install Java and make sure JAVA_HOME is set appropriately.
Download the latest Oracle-Sun Java RPM from Java Downloads and transfer it to your server.
wget -O jre-6u31-linux-x64-rpm.bin \ http://javadl.sun.com/webapps/download/AutoDL?BundleId=59622 chmod +x ./jre-6u31-linux-x64-rpm.bin ./jre-6u31-linux-x64-rpm.bin export JAVA_HOME=/usr/java/default
Check and verify Java version:
Step 2. Disable SELinux.
Disable enforcing mode permanently by editing the
Step 3. Install the Zenoss Dependencies Repository.
This RPM installs Zenoss Dependency Repository. It will help us resolve all of the dependencies required to install and run Zenoss.
rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm
Step 4. Install Latest MySQL Server.
We can install MySQL Community Server and Zenoss Core on the same host or we can install them on separate hosts. In my case, I am using the Same Host. Do Not set the MySQL root password.
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
Install the packages with the command:
yum -y --nogpgcheck localinstall MySQL*
Make sure to set the following parameters in your /etc/my.cnf file after the MySQL installation.
#nano /etc/my.cnf [mysqld] max_allowed_packet=16M innodb_buffer_pool_size=256M innodb_additional_mem_pool_size=20M
Start MySQL daemon and to configure it to start automatically on reboot:
/etc/init.d/mysql start chkconfig mysql on
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 ''
Step 5. Install Zenoss using YUM.
wget http://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.5/zenoss_core-4.2.5-2108.el6.x86_64.rpm yum localinstall zenoss_core-4.2.5-2108.el6.x86_64.rpm
Now Start the following Services:
/etc/init.d/memcached start ; chkconfig memcached on /etc/init.d/rabbitmq-server start ; chkconfig rabbitmq-server on /etc/init.d/snmpd start ; chkconfig snmpd on /etc/init.d/zenoss start ; chkconfig zenoss on
Important: When you install Zenoss core rpm as shown in the above step, you might get lot of missing dependencies messages. You have to install all of those missing packages one by one.
Step 5. Access Zenoss via a web browser.
Congratulations! You have successfully installed Zenoss. Thanks for using this tutorial for installing Zenoss on centos 6 systems. For additional help or useful information, we recommend you to check the official Zenoss web site.