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
Check and verify Java version:
Step 2. Disable SELinux.
Disable enforcing mode permanently by editing the /etc/selinux/config.
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.
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.
Start mysql daemon and to configure it to start automatically on reboot:
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.
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 web browser.
Congratulation’s! You have successfully installed zenoss. Thanks for using this tutorial for installting zenoss on centos 6 systems. For additional help or useful information, we recommend you to check the official zenoss web site.