
Adding a collector
19
a. Log in as root, or as a user with superuser privileges.
b. Change to enforcing in permissive mode (avoiding the need to reboot) with the following command:
/bin/echo 0 > /selinux/enforce
c. Disable enforcing mode permanently by editing the /etc/selinux/config file with the following command:
/bin/sed -i.bak -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
2. Enable network traffic through required ports.
• To enable traffic through specific ports, refer to Appendix B, "Required ports".
• To enable traffic through all ports, enter the following commands.
IPv4: service iptables stop; chkconfig iptables off
IPv6: service ip6tables stop; chkconfig ip6tables off
Note
You may open all ports at this time, and then close unneeded ports later.
3. Determine whether OpenJDK Java is installed.
rpm -qa | grep openjdk
Remove it if necessary.
yum -y remove openjdk-package-name
4. Download the self-installing RPM of Oracle Java SE Runtime Environment 6u45 from the Java SE 6 Downloads
page. The file to download is jre-6u45-linux-x64-rpm.bin.
5. Enter the following commands to install and verify the JRE.
chmod +x ./jre-6u45-linux-x64-rpm.bin
./jre-6u45-linux-x64-rpm.bin
echo "export JAVA_HOME=/usr/java/default/bin" >> /etc/profile
java -version
6. Install the Zenoss dependencies repository.
RHEL/CentOS 5: rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el5.noarch.rpm
RHEL/CentOS 6: rpm -Uvh http://deps.zenoss.com/yum/zenossdeps-4.2.x-1.el6.noarch.rpm
7. Clean up yum caches.
yum clean all
8. Install Libxslt, Memcached, Net-SNMP, Redis, and RRDtool.
yum -y install libxslt memcached net-snmp net-snmp-utils redis rrdtool-1.4.7
9. Install Nagios plugins.
yum -y install nagios-plugins nagios-plugins-dig nagios-plugins-dns \
nagios-plugins-http nagios-plugins-ircd nagios-plugins-ldap nagios-plugins-tcp \
nagios-plugins-ntp nagios-plugins-perl nagios-plugins-ping nagios-plugins-rpc
10.Configure required services to start when the host starts, and start the services:
Kommentare zu diesen Handbüchern