Overview :
Zenoss is an open source real time monitoring tool and comes under GNU General Public License (GPL) version 2. It provides a web interface that allows system administrators to monitor availability, inventory/configuration, performance, and other events.
Most Common Features :
- Application, Network and Systems Monitoring and Management
- Alerting and Automatic Remediation
- System Log Monitoring and Event Management
- Automated Inventory Discovery and Change Tracking
- Data Collection via SNMP, SSH, WMI, JMX and Syslog
- 200+ Community Extensions (ZenPacks)
- Virtual and Cloud Infrastructure Monitoring and Management
- Reporting
- Alerting via Email and SNMP
- Integration with Configuration Management Tools
- VMware ESXi monitoring
Installation & Configuration in CentOS 6.X / RHEL 6.X
Step:1 Install Oracle JAVA
As Zenoss Core is not compatible with OpenJDK Java ,so we have to install oracle Java. Download the self-installing RPM of Oracle Java SE Runtime Environment 6u31 from the Java SE 6 Downloads page. The downloaded file will be “jre-6u31-linux-x64-rpm.bin”
Assign the execute permission
# chmod +x jre-6u31-linux-x64-rpm.bin
Now execute the binary using below Command
# ./jre-6u31-linux-x64-rpm.bin
Now define the JAVA path , edit the file /etc/profile , add below line at the end
export JAVA_HOME=/usr/java/default/bin
Now run the below command to set java path on the fly
# source /etc/profile
Check & Verify Java Version
# java -version
Step:2 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.
Disable enforcing mode temporarily (avoiding the need to reboot) with the following command:
# setenforce 0
Disable enforcing mode permanently by editing the /etc/selinux/config
SELINUX=disabled
Step:3 Install the Zenoss Dependencies Repository
# rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm
Step:4 Install and Configure MySQL Community 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
Now install above downloaded package using below command :
# yum -y --nogpgcheck localinstall MySQL*
Now 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
Now Time to start mysql service using below command
# /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 Download & Install the Zenoss Core installation file
Method:1
Use this url to download zenoss core installation file : ‘http://community.zenoss.org/community/download’
Method:2
# wget http://citylan.dl.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.4/zenoss_core-4.2.4.el6.x86_64.rpm
Now Install the Zenoss using below command :
# yum -y --nogpgcheck localinstall zenoss_core-4.2.4.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
Step:6 Now Access web interface of Zenoss.
Open the web broswer , type below url & follow the instructions
http://<Zenoss-Server-ip>:8080
Click on Set Up Users & set the admin password
Finally Zenoss Dashboard will look like below , From where we can add our servers and other devices to be monitored.