Install Zenoss on CentOS 6 64bit Rumi, September 27, 2015September 27, 2015 Minimal Hardware Requirements: Small Deployments (1 to 250 Monitored Devices) 4GB RAM 2 CPU Cores 1x 300GB, 10K RPM Drive Medium Deployments (250 to 500 Monitored Devices) 8GB RAM 4 CPU Cores 1x 300GB, 10K RPM Drive Large Deployments (500 to 1000 Monitored Devices) 16GB – 32GB RAM 8 CPU Cores 1x 300GB, 15K RPM Drive Disable SELinux and IPtables For this guide SELinux and IPtables were completely disabled and CentOS 6 was up-to-date! Add DNS FQDN Entry and NTP Sync To ensure proper resolving FQDN entries in DNS or /etc/hosts must exist and please configure NTP time synchronization for services to run properly. Install Following Packages Install the following packages to make your life a bit easier – especially if you are on CentOS 6 minimal install [root@centos1 ~]# yum install openssh-clients wget vim-enhanced Install Zenoss Dependencies Repository This RPM installs Zenoss Dependency Repository. It will help us resolve all of the dependencies required to install and run Zenoss. [root@centos1 ~]# rpm -ivh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm 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 Alternatively, you can download Java from here- https://www.java.com/en/download/manual.jsp 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 '' Download and Install Latest Zenoss RPM Download latest Zenoss RPM to your server and install it via “yum” to resolve dependencies. [root@centos1 ~]# wget http://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.5/zenoss_core-4.2.5-2108.el6.x86_64.rpm [root@centos1 ~]# yum localinstall zenoss_core-4.2.5-2108.el6.x86_64.rpm Start Zenoss for the First Time Zenoss first run might take some time. Zenoss has to populate the database and install ZenPacks, please be patient… [root@centos1 ~]# /etc/init.d/zenoss start Zenoss not initialized. Performing first-boot initialization… Fresh install pre steps Checking RRDtool version >= 1.4.7: [ OK ] 1.4.7 Dropping database: zodb_session Creating database: zodb_session Applying schema version: 1 Applying schema version: 2 Applying schema version: 3 Dropping database: zodb Creating database: zodb Applying schema version: 1 Applying schema version: 2 Applying schema version: 3 Creating database: zenoss_zep Applying schema version: 1 Applying schema version: 2 Applying schema version: 3 Applying schema version: 4 Applying schema version: 5 Applying schema version: 6 make zope instance. Loading initial Zenoss objects into the Zeo database (this can take a few minutes) Zenoss initialization complete. Daemon: zeneventserver starting… Waiting for zeneventserver to start……………….. 2014-07-08 10:09:33,487 INFO zen.ZPLoader: Loading /opt/zenoss/ZenPacks/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg/ZenPacks/zenoss/ApacheMonitor/objects/objects.xml 2014-07-08 10:09:33,589 INFO zen.AddToPack: End loading objects 2014-07-08 10:09:33,589 INFO zen.AddToPack: Processing links … … Zenpacks were installed. Restarting zenoss. Daemon: zredis stopping… already stopped Daemon: zenprocess stopping… already stopped Daemon: zencommand stopping… already stopped Daemon: zenperfsnmp stopping… already stopped Daemon: zenmodeler stopping… already stopped Daemon: zentrap stopping… already stopped Daemon: zenactiond stopping… already stopped Daemon: zenstatus stopping… already stopped Daemon: zensyslog stopping… already stopped Daemon: zenping stopping… already stopped Daemon: zeneventd stopping… already stopped Daemon: zenjobs stopping… already stopped Daemon: zenhub stopping… already stopped Daemon: zenrrdcached stopping… already stopped Daemon: zopectl daemon manager not running Daemon: zeneventserver stopping… Daemon: zeneventserver starting… Waiting for zeneventserver to start…….. Daemon: zopectl . daemon process started, pid=10380 Daemon: zenrrdcached starting… Daemon: zenhub starting… Daemon: zenjobs starting… Daemon: zeneventd starting… Daemon: zenping starting… Daemon: zensyslog starting… Daemon: zenstatus starting… Daemon: zenactiond starting… Daemon: zentrap starting… Daemon: zenmodeler starting… Daemon: zenperfsnmp starting… Daemon: zencommand starting… Daemon: zenprocess starting… Daemon: zredis starting… Daemon: zenpython starting… Daemon: zenjmx starting… Fresh install post step --2014-07-08 10:19:06-- http://centos1.geekpeek.net:8080/zport/dmd/DeviceLoader/loadDevice?deviceName=centos1.geekpeek.net&devicePath=/Server/Linux Resolving centos1.geekpeek.net... 192.168.10.32 Connecting to centos1.geekpeek.net|192.168.10.32|:8080... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: “/dev/null” 0K ………. 61.2 =2m56s 2014-07-08 10:22:34 (61.2 B/s) – “/dev/null” saved [10772] Zenoss installation completed. DEBUGGING: If starting Zenoss fails with “Failed starting rabbitmq — exiting!” please add a line to /etc/hosts with the IP address of the Zenoss server and FQDN and try starting Zenoss again! If when you visit web URL only see HTML only output something went wrong at the first time Zenoss run. Please remove Zenoss “yum remove zenoss-4.2.5-2108.el6.x86_64”, reinstall RPM “yum localinstall zenoss_core-4.2.5-2108.el6.x86_64.rpm” and run Zenoss again for the first time. UPDATE: Thanks to GeekPeek.Net visitor Sujith if you are having problems when accessing the login page for the first time (HTML only view) you can get it resolved by using script from the link HERE. Make Services Start at Boot [root@centos1 ~]# chkconfig mysqld on [root@centos1 ~]# chkconfig zenoss on [root@centos1 ~]# chkconfig postfix on Client Configuration There are a few things we will configure to give us a useful environment for Zenoss to manage. We will configure two “client” machines that the Zenoss machine will monitor. Our clients will be running Ubuntu 12.04 on small VPS instances. SNMP Client Configuration On one of the Ubuntu installations, we will install an SNMP daemon, which will allow Zenoss to gather information about the client. On one client, type the following command: sudo apt-get update sudo apt-get install snmpd After installation, we need to configure the daemon. First, we will go to the configuration directory and move the default configuration file: cd /etc/snmp/ sudo mv snmpd.conf snmpd.conf.bak Now, we can create a new, simplified configuration file as root: sudo nano snmpd.conf Copy and paste the following line into the configuration file: rocommunity public Save and close the file. Now that we have configured the SNMP daemon, we need to restart the service to implement our changes: sudo service snmpd restart The client will now respond to polling requests. SSH Client Configuration For the other client, we will allow Zenoss to run information gathering commands remotely via SSH. We do the configuration for this on the Zenoss machine, not the SSH client machine. Begin by logging into the zenoss user and creating an RSA key: su - zenoss ssh-keygen -t rsa Press “enter” to accept the defaults and use no passphrase. Next, we will copy the SSH key to our SSH client computer. Change the username and IP address to reflect your SSH client machine’s configuration: ssh-copy-id username@SSH.Client.IP.Address You will be asked to authenticate with the remote machine via password, and then it will add your key to the remote server. Test your ability to log in without a password by typing: ssh username@SSH.Client.IP.Address If you are successful, type “exit” to get back to the Zenoss machine: Type “exit” again to get back to the root shell: exit Src: https://www.digitalocean.com/community/tutorials/installing-and-configuring-zenoss-on-a-centos-virtual-private-server http://idroot.net/tutorials/how-to-install-zenoss-on-centos-6/ Install Zenoss Monitoring Server on CentOS 6 Administrations Configurations (Linux) CentOSZenoss