Professional Documents
Culture Documents
Copyright 2012 Zenoss, Inc., 275 West St. Suite 204, Annapolis, MD 21401, U.S.A. All rights reserved.
Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc. in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc. or the third-party owner. Flash is a registered trademark of Adobe Systems Incorporated. Java, MySQL, Oracle, and the Oracle logo are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of VMware, Inc. Red Hat and Red Hat Enterprise Linux are registered trademarks of Red Hat, Inc., in the U.S. and other countries. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 01-072012-4.2-v08
1. Installation Considerations .................................................................................................................. 1 1.1. Which Installation Should You Choose? ................................................................................... 1 1.2. Hardware Requirements .......................................................................................................... 1 1.2.1. Deployments Up to 1000 Devices .................................................................................. 1 1.2.2. Deployments Over 1000 Devices ................................................................................... 1 1.2.3. Other Considerations .................................................................................................... 1 1.3. File System Configuration ........................................................................................................ 1 1.4. Post-Installation Performance Tuning Tasks .............................................................................. 2 2. Installing for RHEL 5 or CentOS 5 ...................................................................................................... 3 2.1. Requirements .......................................................................................................................... 3 2.2. Tasks ...................................................................................................................................... 3 2.2.1. Configure Your Firewall ................................................................................................. 3 2.2.2. Remove Outdated Packages ......................................................................................... 4 2.2.3. Install Oracle Java ........................................................................................................ 4 2.2.4. Install and Configure RRDtool ....................................................................................... 4 2.2.5. Install and Configure MySQL Community Server ............................................................ 5 2.2.6. Enable EPEL Repository Access ................................................................................... 5 2.2.7. Install RabbitMQ ........................................................................................................... 6 2.3. Install Zenoss Core ................................................................................................................. 6 2.3.1. Download the Installation Files ...................................................................................... 6 2.3.2. Install the RPM ............................................................................................................. 6 2.3.3. Start and Configure memcached and snmpd .................................................................. 6 2.3.4. Start the System and Install Core ZenPacks .................................................................. 7 2.4. Getting Started ........................................................................................................................ 7 2.4.1. Set the Administrative Password and Create a User ....................................................... 8 2.4.2. Add Devices ................................................................................................................. 8 2.4.2.1. Adding Devices Manually ................................................................................... 9 2.4.2.2. Discovering Devices ........................................................................................... 9 3. Installing for RHEL 6 or CentOS 6 .................................................................................................... 11 3.1. Requirements ........................................................................................................................ 11 3.2. Tasks .................................................................................................................................... 11 3.2.1. Configure Your Firewall ............................................................................................... 11 3.2.2. Remove Conflicting and Outdated Packages ................................................................ 12 3.2.2.1. Remove Conflicting Messaging Systems ........................................................... 12 3.2.2.2. Remove Old MySQL Versions .......................................................................... 12 3.2.3. Install Oracle Java ...................................................................................................... 12 3.2.4. Install and Configure RRDtool ..................................................................................... 13 3.2.5. Install and Configure MySQL Community Server .......................................................... 13 3.2.6. Enable EPEL Repository Access ................................................................................. 14 3.2.7. Install RabbitMQ ......................................................................................................... 14 3.3. Install Zenoss Core ............................................................................................................... 14 3.3.1. Download the Installation Files .................................................................................... 14 3.3.2. Install the RPM ........................................................................................................... 14 3.3.3. Start and Configure memcached and snmpd ................................................................ 15 3.3.4. Start the System and Install Core ZenPacks ................................................................. 15 3.4. Getting Started ...................................................................................................................... 15 3.4.1. Set the Administrative Password and Create a User ..................................................... 16 3.4.2. Add Devices ............................................................................................................... 17 3.4.2.1. Adding Devices Manually ................................................................................. 17 3.4.2.2. Discovering Devices ......................................................................................... 17 4. Installing the Virtual Appliance .......................................................................................................... 19 4.1. System Requirements ............................................................................................................ 19 4.2. Prerequisite Tasks ................................................................................................................. 19 4.3. Installing the Appliance .......................................................................................................... 19 4.4. Converting the Virtual Appliance to ESX ................................................................................. 19 5. Performance Tuning ......................................................................................................................... 26 5.1. Packing the ZODB ................................................................................................................. 26 5.2. Editing Archived Event Data Storage Settings ......................................................................... 26
iii
5.3. Memory Caching ................................................................................................................... 5.4. Tuning MySQL ...................................................................................................................... 5.5. Increasing Maximum File Descriptors ..................................................................................... 6. Upgrading ........................................................................................................................................ 6.1. Overview and Prerequisites .................................................................................................... 6.1.1. Upgrade Paths ........................................................................................................... 6.1.2. Before Upgrading ........................................................................................................ 6.1.2.1. Back Up Data Files .......................................................................................... 6.1.2.2. Migrate Events (3.2.x to 4.2) ............................................................................. 6.1.2.3. Ensure ZenPack Compatibility .......................................................................... 6.1.3. Verify Prerequisites ..................................................................................................... 6.1.4. After Upgrading .......................................................................................................... 6.2. Upgrading RHEL / CentOS RPMs .......................................................................................... 6.3. Upgrading the Zenoss Virtual Appliance ................................................................................. 7. Removing an Instance ...................................................................................................................... 7.1. Before You Begin .................................................................................................................. 7.2. Remove an RPM Installation ..................................................................................................
26 26 27 28 28 28 28 28 28 28 28 29 29 29 31 31 31
iv
Appliance
Note
Zenoss recommends that you use a hardware-based RAID 1 (mirroring) drive subsystem to protect against data loss.
Installation Considerations
If possible, create a separate, non-journaled partition for $ZENHOME/perf (for RPM, /opt/zenoss/perf). For more information about file system performance tuning and increasing RRD performance, browse to: http://oss.oetiker.ch/rrdtool-trac/wiki/TuningRRD
2.1. Requirements
Ensure that your system meets all hardware requirements, and that you have correctly configured your operating system and hard drive partitions. In addition, make sure that: You have disabled SELinux The /opt/zenoss directory is not a symbolic link to another location The umask is set to 022 (masks write permissions for group and others) The /home/zenoss directory exists as the zenoss user home directory, and is writable by root
2.2. Tasks
Before installing Zenoss Core, you must: Configure your firewall Remove outdated packages Install and configure software repositories, prerequisite software, and additional packages
The following table lists prerequisite software required to install Zenoss Core. Prerequisite Oracle Java RRDtool MySQL Community Server RabbitMQ Nagios Plugins Erlang 1.4.7 or later 5.5.25 or later 2.8.4 or later 1.4.15 or later R12B Version 1.6 Update 31 or later. (1.7 is not supported.)
Protocol
Description
SNMP Traps
Alternatively, you can choose to disable your firewall. For IPv4, use these commands:
service iptables stop chkconfig iptables off
2. Change mode:
chmod +x ./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
2. Disable automatic access to the RPMforge YUM repository: a. Edit the /etc/yum.repos.d/rpmforge.repo file. b. Change the value of "enabled" in the [rpmforge] stanza:
enabled = 0
3. Install RRDtool:
yum -y --enablerepo=rpmforge install rrdtool-1.4.7
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 ''
3. Disable automatic use of the EPEL repository: a. Edit the /etc/yum.repos.d/epel.repo file. b. Change the value of "enabled" in the [ epel ] stanza:
enabled = 0
3. If RabbitMQ is configured with a non-standard node name, then add the following line to the /etc/rabbitmq/rabbitmq-env.conf file. (If you have just installed RabbitMQ, then this step is not needed.)
NODENAME=Name
4. Run these commands to start the rabbitmq-server daemon and configure it to start automatically on reboot:
service rabbitmq-server start chkconfig rabbitmq-server on
Note
If you are using Internet Explorer to view the interface, and you have restricted the browser to trusted sites, then a warning message may appear. To prevent this, add your Zenoss Core installation to the Trusted zone. These Microsoft articles provide more information on setting up trusted sites: Pre-Windows 7: http://support.microsoft.com/kb/174360 Windows sites 7: http://windows.microsoft.com/en-US/windows7/Security-zones-adding-or-removing-web-
Using this wizard, you will: Change the admin password Set up an initial user Add some devices to the system
From the first panel of the wizard, click Get Started! to begin. The Step 1: Set up Initial Users panel appears.
Note
The admin account has extended privileges, and its use should be limited. Be sure to record the admin password and store it securely. 2. In the Create your account area, set up your Zenoss Core user account. Most of the time, you will use this account to perform management tasks. Enter a unique user name, password, and email address. 3. Click Submit. The Step 2: Specify or Discover Devices to Monitor panel appears.
Note
For more information about setting credentials, refer to Zenoss Core Administration. 4. To add the devices, click Submit. Zenoss Core models the devices in the background.
Note
You can bypass device addition through the wizard. Click Skip to the dashboard to go directly to the Zenoss Core Dashboard. Later, you can add devices by following the steps outlined in Zenoss Core Administration.
2. For each network or IP range in which you want Zenoss Core to discover devices, enter an address or range. For example, you might enter a network address in CIDR notation: 10.175.211.0/24
or as a range of IP addresses: 10.175.211.1-50 3. If you want to enter multiple addresses or ranges, click +. For each network, you must enter a netmask or IP range. 4. For each network or IP range, specify the Windows, SSH, or SNMP credentials you want Zenoss Core to use on the devices it discovers. You can enter only one of each. Zenoss Core attempts to use the same credentials on each device it discovers within the networks or IP ranges specified. 5. Click Discover. Zenoss Core schedules jobs to discover devices in the networks and IP ranges you specified. (To see job status, navigate to Advanced > Settings, and then select Jobs in the left panel.) When discovery completes, a notification message appears in the Messages portlet on the Dashboard.
Note
You can bypass device discovery through the wizard. Click Skip to the dashboard to go directly to the Zenoss Core Dashboard. Later, you can discover devices by following the steps outlined in Zenoss Core Administration.
10
3.1. Requirements
Ensure that your system meets all hardware requirements, and that you have correctly configured your operating system and hard drive partitions. In addition, make sure that: You have disabled SELinux The /opt/zenoss directory is not a symbolic link to another location The umask is set to 022 (masks write permissions for group and others) The /home/zenoss directory exists as the zenoss user home directory, and is writable by root
3.2. Tasks
Before installing Zenoss Core, you must: Configure your firewall Remove conflicting and outdated packages Install and configure software repositories, prerequisite software, and additional packages
The following table lists prerequisite software required to install Zenoss Core. Prerequisite Oracle Java RRDtool MySQL Community Server RabbitMQ Nagios Plugins Erlang 1.4.7 or later 5.5.25 or later 2.8.4 or later 1.4.15 or later R12B Version 1.6 Update 31 or later. (1.7 is not supported.)
11
Protocol
Description
SNMP Traps
Alternatively, you can choose to disable your firewall. For IPv4, use these commands:
service iptables stop chkconfig iptables off
2. Change mode:
chmod +x ./jre-6u31-linux-x64-rpm.bin
12
4. Update JAVA_HOME. Add the following line to the end of the /etc/profile file:
export JAVA_HOME=/usr/java/default
2. Disable automatic access to the RPMforge YUM repository: a. Edit the /etc/yum.repos.d/rpmforge.repo file. b. Change the value of "enabled" in the [rpmforge] stanza:
enabled = 0
3. Install RRDtool:
yum -y --enablerepo=rpmforge-extras install rrdtool-1.4.7
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
13
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 ''
3. Disable automatic use of the EPEL repository: a. Edit the /etc/yum.repos.d/epel.repo file. b. Change the value of "enabled" in the [ epel ] stanza:
enabled = 0
3. If RabbitMQ is configured with a non-standard node name, then add the following line to the /etc/rabbitmq/rabbitmq-env.conf file. (If you have just installed RabbitMQ, then this step is not needed.)
NODENAME=Name
4. Run these commands to start the rabbitmq-server daemon and configure it to start automatically on reboot:
service rabbitmq-server start chkconfig rabbitmq-server on
14
Note
If you are using Internet Explorer to view the interface, and you have restricted the browser to trusted sites, then a warning message may appear. To prevent this, add your Zenoss Core installation to the Trusted zone. These Microsoft articles provide more information on setting up trusted sites: Pre-Windows 7: http://support.microsoft.com/kb/174360 Windows sites 7: http://windows.microsoft.com/en-US/windows7/Security-zones-adding-or-removing-web-
15
Using this wizard, you will: Change the admin password Set up an initial user Add some devices to the system
From the first panel of the wizard, click Get Started! to begin. The Step 1: Set up Initial Users panel appears.
Note
The admin account has extended privileges, and its use should be limited. Be sure to record the admin password and store it securely. 2. In the Create your account area, set up your Zenoss Core user account. Most of the time, you will use this account to perform management tasks. Enter a unique user name, password, and email address. 3. Click Submit. The Step 2: Specify or Discover Devices to Monitor panel appears.
16
Note
For more information about setting credentials, refer to Zenoss Core Administration. 4. To add the devices, click Submit. Zenoss Core models the devices in the background.
Note
You can bypass device addition through the wizard. Click Skip to the dashboard to go directly to the Zenoss Core Dashboard. Later, you can add devices by following the steps outlined in Zenoss Core Administration.
17
2. For each network or IP range in which you want Zenoss Core to discover devices, enter an address or range. For example, you might enter a network address in CIDR notation: 10.175.211.0/24 or as a range of IP addresses: 10.175.211.1-50 3. If you want to enter multiple addresses or ranges, click +. For each network, you must enter a netmask or IP range. 4. For each network or IP range, specify the Windows, SSH, or SNMP credentials you want Zenoss Core to use on the devices it discovers. You can enter only one of each. Zenoss Core attempts to use the same credentials on each device it discovers within the networks or IP ranges specified. 5. Click Discover. Zenoss Core schedules jobs to discover devices in the networks and IP ranges you specified. (To see job status, navigate to Advanced > Settings, and then select Jobs in the left panel.) When discovery completes, a notification message appears in the Messages portlet on the Dashboard.
Note
You can bypass device discovery through the wizard. Click Skip to the dashboard to go directly to the Zenoss Core Dashboard. Later, you can discover devices by following the steps outlined in Zenoss Core Administration.
18
Note
If this message does not appear, then you may need to change the VMware player network connection option from Bridged to NAT. 5. Log in as user root. The default root password is zenoss. 6. Open a new Web browser, and then enter the URL that appears in the login screen. The Setup Wizard appears.
19
Note
You can delete all other files in the uncompressed folder, leaving only the new vmdk file. 4. Start your vSphere standalone client; or, in the case of ESX 4.0, open ESX Web Access. 5. Go to Inventory and find the ESX server where the .vmdk file is located. 6. Create a virtual machine, following these steps: a. Right-click the ESX server, and then select New virtual machine. The Configuration panel appears.
b. On the Configuration panel, select the Custom option, and then click Next. The Name and Location panel appears.
20
c. Enter a name for the new virtual machine, choose the location of the virtual machine in your inventory, and then click Next. The Datastore panel appears.
d. Select the datastore where the appliance .vmdk file was converted with vmkfstools, and then click Next. The Virtual Machine Version panel appears.
21
e. Select Virtual Machine Version 7, and then click Next. The Guest Operating System panel appears.
f.
Select the guest operating system version appropriate for the architecture of the downloaded appliance (Red Hat Enterprise Linux 5 or 6 (64-bit)), and then click Next. The CPUs panel appears.
22
g. Select the number of virtual processors (by default, 1), and then click Next. The Memory panel appears.
h. Select the amount of RAM for the virtual machine (by default, 2GB), and then click Next. The Network panel appears.
23
i.
Adjust the Virtual NIC according to our ESX configuration. Be sure to select the right adapter (E1000 for 64-bit appliances). Click Next. The SCSI Controller panel appears.
j.
Select a SCSI controller (by default, LSI Logic Parallel), and then click Next. The Select a Disk panel appears.
24
k. Select the Use an existing virtual disk option, and then click Next. The Select Existing Disk panel appears.
l.
Click Browse to browse to your datastore. Select .vmdk, and then click OK.
m. Click Next, and then click Finish. n. Start the virtual machine. VMware also ships a conversion tool, VMware vCenter Converter, that can convert the appliance to a proper ESX VM. For more information about this tool, go to: http://www.vmware.com/products/converter
25
Note
Performance tuning procedures assume an RPM installation. If you are using an alternate installation method, details (such as path information) likely will differ.
26
Performance Tuning
where Number represents a number in excess of the anticipated number of open files needed by Zenoss Core (for example, 10240). 3. Save and close the configuration file. 4. Verify the new setting with this command:
sysctl fs.file-max
Note
Alternatively, you can edit the /etc/security/limits.conf file and add the line:
zenoss - nofile Number
27
Chapter 6. Upgrading
6.1. Overview and Prerequisites
Use the instructions in this chapter to upgrade your Zenoss Core instance. Depending on your installation type, follow the instructions in one of these sections to upgrade: RHEL or CentOS RPMs Zenoss Virtual Appliance
28
Upgrading
Prerequisite RabbitMQ Nagios Plugins Erlang 2.8.4 or later 1.4.15 or later R12B
Version
Note
Procedures for installing prerequisite software are outlined in the tasks section of the chapter titled "Installing for RHEL 5 or CentOS 5."
where Version is the current version of Zenoss Core. 4. Start the memcached daemon and configure it to start automatically on reboot:
service memcached start chkconfig memcached on
where Version is the current version of Zenoss Core. 8. Log in to your Zenoss Core instance to confirm correct operation. 9. Delete the browser cache on each user machine used to access Zenoss Core. (For example, if using Firefox, press Ctrl-Shift-R to clear your cache.)
29
Upgrading
1. Back up your Zenoss data files. 2. Install the libraries with the following command:
yum -y install libgomp libgcj liberation-fonts
3. Download the Zenoss Core software. 4. Shut down your existing Zenoss instance. Use this command:
service zenoss stop
where Version is the current version of Zenoss Core. 6. Start the system to complete the upgrade:
service zenoss start
where Version is the current version of Zenoss Core. 8. Delete your browser cache. (For example, if using Firefox, press Ctrl-Shift-R to clear your cache.)
30
2. As root, enter the following command, where Components is one or more components listed in the order identified by the response to Step 1:
rpm -e Components
For example, if you are removing a Zenoss Core installation, enter a command similar to:
rpm -e zenoss-core-zenpacks zenoss
3. Then enter:
rm -rf /opt/zenoss userdel zenoss
31