2014年1月26日 星期日

[研究] Zenoss Core 4.2.4 安裝 (core-autodeploy.sh)(CentOS 6.5 x64)

[研究] Zenoss Core 4.2.4 安裝 (core-autodeploy.sh)(CentOS 6.5 x64)

2014-01-26

Zenoss (Zenoss Core)是一套開放原始碼的應用軟體,是基於Zope (一個用python寫成的放原始碼網頁應用伺服器)的伺服器和網路管理平台。它是在GPL 2.0的授權證下釋出的。Zenoss Core提供了一個網頁介面,允許系統管理員監控像是可用性,詳細目錄或組態,性能還有事件。它組合了許多開放原始碼專案來達成基於網頁的使用者介面的目的。使用SNMP (Simple Network Management Protocol)、SSH等協定而不需要額外安裝agent。

基本上都是Python寫的,這個管理平台提供了服務器、網絡設備、OS和應用的事件管理、可用管理、和性能管理。Zenoss 能運行於Linux, FreeBSD 和 Mac OS X;它也可以作為一個Zenoss 虛擬應用運行在VMplayer 裡。

官方網站
http://www.zenoss.com/
社群網站
http://www.zenoss.org/

下載
http://community.zenoss.org/community/downloadhttp://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.4/zenoss_core-4.2.4.el6.x86_64.rpm
http://sourceforge.net/projects/zenoss/files/zenoss-4.2/zenoss-4.2.4/4.2.4-1897/zenoss_core-4.2.4-1897.el6.x86_64.rpm/download
http://sourceforge.net/projects/zenoss/files/
http://sourceforge.net/projects/zenoss/files/zenoss-4.2/zenoss-4.2.4/4.2.4-1897/
目前最新 4.2.4-1897 是 2013年10月15日釋出

安裝參考
http://community.zenoss.org/docs/DOC-13419#d0e1019
http://community.zenoss.org/community/documentation
http://wiki.zenoss.org/Install_Zenoss

安裝

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-x64.rpm"  -O  jre-7u51-linux-x64.rpm
rpm -ivh jre-7u51-linux-x64.rpm
alternatives --install /usr/bin/java  java  /usr/java/jre1.7.0_51/bin/java  100
alternatives --set  java /usr/java/jre1.7.0_51/bin/java
echo 'export JAVA_HOME=/usr/java/jre1.7.0_51' >> /etc/profile
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile
#echo 'export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar' >> /etc/profile
echo 'export CLASSPATH=/usr/java/jre1.7.0_51/lib/amd64/libjawt.so' >> /etc/profile
source /etc/profile
java -version

yum -y remove mysql-libs
yum -y install wget
wget --no-check-certificate https://github.com/zenoss/core-autodeploy/tarball/4.2.4 -O auto.tar.gz
tar xzvf auto.tar.gz
cd zenoss-core-autodeploy-*
./core-autodeploy.sh

實際情況

[root@localhost zenoss-core-autodeploy-9342e87]# ./core-autodeploy.sh
Welcome to the Zenoss Core auto-deploy script!

This auto-deploy script installs the Oracle Java Runtime Environment (JRE).
To continue, please review and accept the Oracle Binary Code License Agreement
for Java SE.

Press Enter to continue.


Do you accept the Oracle Binary Code License Agreement for Java SE?Y

Install continues....
Ensuring Zenoss RPMs are not already present
Disabling SELinux...
Attempting to remove existing OpenJDK...
error: Failed dependencies:
        jre >= 1.5.0 is needed by (installed) libreoffice-ure-1:4.0.4.2-9.el6.x86_64
        libjawt.so()(64bit) is needed by (installed) libreoffice-core-1:4.0.4.2-9.el6.x86_64
        libjawt.so(SUNWprivate_1.1)(64bit) is needed by (installed) libreoffice-core-1:4.0.4.2-9.el6.x86_64
Command failure: rpm -e java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64

因為某些 libreoffice 軟體使用到 OpenJDK,導致無法移除,所以把 libreoffice 移除

rpm -e libreoffice-calc  libreoffice-core  libreoffice-draw  libreoffice-graphicfilter  libreoffice-impress  libreoffice-langpack-en  libreoffice-langpack-zh-Hans  libreoffice-langpack-zh-Hant  libreoffice-math  libreoffice-opensymbol-fonts  libreoffice-pdfimport  libreoffice-ure  libreoffice-writer  libreoffice-xsltfilter

[root@localhost zenoss-core-autodeploy-9342e87]# ./core-autodeploy.sh
Welcome to the Zenoss Core auto-deploy script!

This auto-deploy script installs the Oracle Java Runtime Environment (JRE).
To continue, please review and accept the Oracle Binary Code License Agreement
for Java SE.

Press Enter to continue.

Do you accept the Oracle Binary Code License Agreement for Java SE?y
Install continues....
Ensuring Zenoss RPMs are not already present
Disabling SELinux...
Attempting to remove existing OpenJDK...
Downloading zenoss_core-4.2.4-1897.el6.x86_64.rpm...
--2014-01-25 22:45:25--  http://downloads.sourceforge.net/project/zenoss/zenoss-4.2/zenoss-4.2.4/4.2.4-1897/zenoss_core-4.2.4-1897.el6.x86_64.rpm

...(略)

Zenoss installation completed.
Securing configuration files...
Zenoss Core 4.2.4-1897 install completed successfully!

Please visit http://127.0.0.1:8080 in your favorite Web browser to complete
setup.

NOTE: You may need to disable or modify this server's firewall to access port
8080. To disable this system's firewall, type:

# service iptables save
# service iptables stop
# chkconfig iptables off

Alternatively, you can modify your firewall to enable incoming connections to
port 8080. Here is a full list of all the ports Zenoss accepts incoming
connections from, and their purpose:

        8080 (TCP)                 Web user interface
        11211 (TCP and UDP)        memcached
        514 (UDP)                  syslog
        162 (UDP)                  SNMP traps


If you encounter problems with this script, please report them on the
following wiki page:

http://wiki.zenoss.org/index.php?title=Talk:Install_Zenoss

Thank you for using Zenoss. Happy monitoring!
[root@localhost zenoss-core-autodeploy-9342e87]#

用瀏覽器連上 http://localhost:8080/






(完)

相關

十大優秀開源網絡管理工具
http://forum.icst.org.tw/phpbb/viewtopic.php?t=16080

[研究] Zenoss Core 4.2.4 安裝 (core-autodeploy.sh)(CentOS 6.5 x64)
http://shaurong.blogspot.com/2014/01/zenoss-core-424-core-autodeployshcentos.html

[研究] Zenoss 3.1.0 x86 VMware VM 安裝
http://shaurong.blogspot.com/2014/01/zenoss-310-x86-vmware-vm.html

[研究] Zenoss Core 4.2.4 安裝 (CentOS 6.5 x64)
http://shaurong.blogspot.tw/2014/01/zenoss-core-424-centos-65-x64.html

[研究] Zenoss 3.1 安裝 (CentOS 6.0 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=20293

[研究] Zenoss 2.5.2 (Zenoss Core) 網路管理工具 安裝 (CentOS 5.4 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18023

[研究] Zenoss 2.3.0 快速安裝程式(Fedora 9)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=16084

沒有留言:

張貼留言