帝國反抗君 - PowerOp

關於部落格
2006/11/29 網誌再次搬家,我在樂多網誌 http://blog.roodo.com/ystuan/ 候教
  • 17340

    累積人氣

  • 0

    今日人氣

    0

    訂閱人氣

貼!在CentOS 4環境快速將OpenNMS 1.2.7升級至1.2.8

如果妳是第一次安裝,其實[筆記]在CentOS 4.2上安裝OpenNMS 1.2.7這篇所提到的步驟,除了套件的名稱改變之外,還是很有用的。(順帶一提,因為我都一直有用指令`yum -y update`更新CentOS的套件,現在我的系統已經是CentOS 4.3了。) 如果妳手邊已經裝了1.2.7,要升級到1.2.8只要去下載相關檔案即可。我除了下載這三個檔案:
opennms-1.2.8-1_centos4.i386.rpm opennms-docs-1.2.8-1_centos4.i386.rpm opennms-webapp-1.2.8-1_centos4.i386.rpm
還順便OpenNMS的FTP下載了:
rrdtool-1.0.50-2.centos4.i386.rpm
在直接貼出指令還執行結果之前,來個重點提示: 1. 使用rpm -Uvh安裝的時候,請同時安裝opennms的三個rpm檔,不然會有循環相依性的問題 2. 套件都安裝好之後,還要重新執行底下兩個安裝指令:
$OPENNMS_HOME/bin/install -disU $OPENNMS_HOME/bin/install -y -w $CATALINA_HOME/webapps -W $CATALINA_HOME/server/lib
其中第二個指令又跟我說找不到 $CATALINA_HOME,所以直接用/var/tomcat4代換即可
$OPENNMS_HOME/bin/install -y -w /var/tomcat4/webapps -W /var/tomcat4/server/lib
升級搞定之後,立刻就可以看到自由軟體:網管軟體OpenNMS推出1.2.8版介紹的RRD "zoom"的效果喔! 好了,囉唆這麼多,直接把結果貼出來吧! [root@localhost opennms]# rpm -Uvh rrdtool-1.0.50-2.centos4.i386.rpm Preparing... ########################################### [100%] 1:rrdtool ########################################### [100%] [root@localhost opennms]# [root@localhost opennms]# rpm -Uvh opennms*1.2.8* warning: opennms-1.2.8-1_centos4.i386.rpm: V3 DSA signature: NOKEY, key ID 4c4cbbd9 Preparing... ########################################### [100%] 1:opennms ########################################### [ 33%] - moving *.sql.rpmnew files (if any)... done - checking for old update files... done *** Installation complete. You must still run the installer and *** make a few other changes before you start OpenNMS. See the *** install guide and release notes for details. 2:opennms-docs ########################################### [ 67%] 3:opennms-webapp ########################################### [100%] [root@localhost opennms]# [root@localhost opennms]# service opennms status /etc/init.d/opennms: OpenNMS not configured. /opt/OpenNMS/etc/configured does not exist. You need to run the installer -- see the install guide for details. [root@localhost opennms]# $OPENNMS_HOME/bin/install -disU ============================================================================== OpenNMS Installer Version $Id: Installer.java 3056 2006-03-26 19:39:16Z djgregor $ ============================================================================== Configures PostgreSQL tables, users, and other miscellaneous settings. - checking database version... 7.4 - Full version string: PostgreSQL 7.4.13 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) * using 'opennms' as the PostgreSQL user for OpenNMS * using 'opennms' as the PostgreSQL password for OpenNMS * using 'opennms' as the PostgreSQL database name for OpenNMS - using SQL directory... /opt/OpenNMS/etc - using create.sql... /opt/OpenNMS/etc/create.sql - using iplike module... /opt/OpenNMS/lib/iplike.so - checking database for old backup tables... NONE - checking for rows that violate constraints... NONE - creating tables... - checking table "serverMap"... UPTODATE - checking table "serviceMap"... UPTODATE - checking table "distPoller"... UPTODATE - checking table "node"... UPTODATE - checking table "ipInterface"... UPTODATE - checking table "snmpInterface"... SCHEMA DOES NOT MATCH - differences: - column "snmpifspeed" is different - creating temporary table... done - creating new 'snmpinterface' table... done - transforming data into the new table... DONE - optimizing table snmpinterface... DONE - completed updating table... - checking table "service"... UPTODATE - checking table "ifServices"... UPTODATE - checking table "events"... UPTODATE - checking table "outages"... UPTODATE - checking table "vulnerabilities"... UPTODATE - checking table "vulnPlugins"... UPTODATE - checking table "notifications"... UPTODATE - checking table "usersNotified"... UPTODATE - checking table "assets"... UPTODATE - creating tables... DONE - creating sequences... - checking "nodeNxtId" minimum value... 30 - removing sequence "nodeNxtId"... REMOVED - creating sequence "nodeNxtId"... OK - checking "serviceNxtId" minimum value... 32 - removing sequence "serviceNxtId"... REMOVED - creating sequence "serviceNxtId"... OK - checking "eventsNxtId" minimum value... 1818 - removing sequence "eventsNxtId"... REMOVED - creating sequence "eventsNxtId"... OK - checking "outageNxtId" minimum value... 859 - removing sequence "outageNxtId"... REMOVED - creating sequence "outageNxtId"... OK - checking "notifyNxtId" minimum value... 1 - removing sequence "notifyNxtId"... REMOVED - creating sequence "notifyNxtId"... OK - checking "vulnNxtId" minimum value... 1 - removing sequence "vulnNxtId"... REMOVED - creating sequence "vulnNxtId"... OK - creating sequences... DONE - creating indexes... - creating index "server_name_idx"... EXISTS - creating index "servicemap_name_idx"... EXISTS - creating index "serviceMap_ipaddr_idx"... EXISTS - creating index "node_id_type_idx"... EXISTS - creating index "node_label_idx"... EXISTS - creating index "ipinterface_nodeid_ipaddr_ismanaged_idx"... EXISTS - creating index "ipinterface_ipaddr_ismanaged_idx"... EXISTS - creating index "ipinterface_ipaddr_idx"... EXISTS - creating index "ipinterface_nodeid_ismanaged_idx"... EXISTS - creating index "ipinterface_nodeid_idx"... EXISTS - creating index "snmpinterface_nodeid_ifindex_idx"... OK - creating index "snmpinterface_nodeid_idx"... OK - creating index "snmpinterface_ipaddr_idx"... OK - creating index "ifservices_nodeid_ipaddr_status"... EXISTS - creating index "ifservices_nodeid_status"... EXISTS - creating index "ifservices_nodeid_idx"... EXISTS - creating index "ifservices_serviceid_idx"... EXISTS - creating index "ifservices_nodeid_serviceid_idx"... EXISTS - creating index "events_uei_idx"... EXISTS - creating index "events_nodeid_idx"... EXISTS - creating index "events_ipaddr_idx"... EXISTS - creating index "events_serviceid_idx"... EXISTS - creating index "events_time_idx"... EXISTS - creating index "events_severity_idx"... EXISTS - creating index "events_log_idx"... EXISTS - creating index "events_display_idx"... EXISTS - creating index "events_ackuser_idx"... EXISTS - creating index "events_acktime_idx"... EXISTS - creating index "outages_svclostid_idx"... EXISTS - creating index "outages_svcregainedid_idx"... EXISTS - creating index "outages_nodeid_idx"... EXISTS - creating index "outages_ipaddr_idx"... EXISTS - creating index "outages_serviceid_idx"... EXISTS - creating index "outages_regainedservice_idx"... EXISTS - creating index "vulnerabilities_nodeid_idx"... EXISTS - creating index "vulnerabilities_ipaddr_idx"... EXISTS - creating index "vulnerabilities_severity_idx"... EXISTS - creating index "vulnerabilities_port_idx"... EXISTS - creating index "vulnerabilities_protocol_idx"... EXISTS - creating index "vulnplugins_plugin_idx"... EXISTS - creating index "notifications_ipaddr_idx"... EXISTS - creating index "notifications_serviceid_idx"... EXISTS - creating index "notifications_eventid_idx"... EXISTS - creating index "notifications_respondtime_idx"... EXISTS - creating index "notifications_answeredby_idx"... EXISTS - creating index "userid_notifyid_idx"... EXISTS - creating indexes... DONE - inserting initial table data for "distPoller"... EXISTS - checking if database "opennms" is unicode... ALREADY UNICODE - checking for stale iplike references... REMOVED - checking for stale eventtime.so references... CLEAN - adding iplike database function... OK - adding PL/pgSQL call handler... EXISTS - adding PL/pgSQL language module... EXISTS - adding stored procedures... - getManagedOutageForIntfInWindow.sql... EXISTS - getManagedServiceCountForIntf.sql... EXISTS - getOutageTimeInWindow.sql... EXISTS - getManagePercentAvailIntfWindow.sql... EXISTS - getManagedServiceCountForNode.sql... EXISTS - getManagedOutageForNodeInWindow.sql... EXISTS - getPercentAvailabilityInWindow.sql... EXISTS - getManagePercentAvailNodeWindow.sql... EXISTS Installer completed successfully! [root@localhost opennms]# [root@localhost opennms]# $OPENNMS_HOME/bin/install -y -w $CATALINA_HOME/webapps -W $CATALINA_HOME/server/lib ============================================================================== OpenNMS Installer Version $Id: Installer.java 3056 2006-03-26 19:39:16Z djgregor $ ============================================================================== Configures PostgreSQL tables, users, and other miscellaneous settings. * using 'opennms' as the PostgreSQL user for OpenNMS * using 'opennms' as the PostgreSQL password for OpenNMS * using 'opennms' as the PostgreSQL database name for OpenNMS - using Top-level web application directory... Exception in thread "main" java.io.FileNotFoundException: Top-level web application directory does not exist at "/webapps". Use the -w option to specify another location. at org.opennms.install.Installer.verifyFileExists(Installer.java:1356) at org.opennms.install.Installer.verifyFilesAndDirectories(Installer.java:1329) at org.opennms.install.Installer.install(Installer.java:202) at org.opennms.install.Installer.main(Installer.java:2450) [root@localhost opennms]# $OPENNMS_HOME/bin/install -y -w /var/tomcat4/webapps -W /var/tomcat4/server/lib ============================================================================== OpenNMS Installer Version $Id: Installer.java 3056 2006-03-26 19:39:16Z djgregor $ ============================================================================== Configures PostgreSQL tables, users, and other miscellaneous settings. * using 'opennms' as the PostgreSQL user for OpenNMS * using 'opennms' as the PostgreSQL password for OpenNMS * using 'opennms' as the PostgreSQL database name for OpenNMS - using Top-level web application directory... /var/tomcat4/webapps - using Tomcat server library directory... /var/tomcat4/server/lib - using OpenNMS webapps directory... /opt/OpenNMS/webapps - Checking for old opennms webapp directory in /var/tomcat4/webapps/opennms... OK - Checking for old opennms context in /var/tomcat4/webapps/../conf/server.xml... OK - Install OpenNMS webapp... - /var/tomcat4/webapps/opennms.xml exists, removing... REMOVED - creating link to /var/tomcat4/webapps/opennms.xml... DONE - /var/tomcat4/server/lib/log4j.jar exists, removing... REMOVED - creating link to /var/tomcat4/server/lib/log4j.jar... DONE - /var/tomcat4/server/lib/castor-0.9.3.9.jar exists, removing... REMOVED - creating link to /var/tomcat4/server/lib/castor-0.9.3.9.jar... DONE - /var/tomcat4/server/lib/castor-0.9.3.9-xml.jar exists, removing... REMOVED - creating link to /var/tomcat4/server/lib/castor-0.9.3.9-xml.jar... DONE - /var/tomcat4/server/lib/opennms_core.jar exists, removing... REMOVED - creating link to /var/tomcat4/server/lib/opennms_core.jar... DONE - /var/tomcat4/server/lib/opennms_services.jar exists, removing... REMOVED - creating link to /var/tomcat4/server/lib/opennms_services.jar... DONE - /var/tomcat4/server/lib/opennms_web.jar exists, removing... REMOVED - creating link to /var/tomcat4/server/lib/opennms_web.jar... DONE - Installing OpenNMS webapp... DONE Installer completed successfully! [root@localhost opennms]# [root@localhost opennms]# service opennms status opennms is running [root@localhost opennms]#
相簿設定
標籤設定
相簿狀態