2007-05-13

Install OpenNMS 1.3.2 on OpenSuse 10.2 system (The simplest version )

1>Install dependence packages
zliu3:~yast -i rrdtool
zliu3:~yast -i postgresql
zliu3:~ # rpm -qa |grep rrdtool
rrdtool-1.2.15-25
zliu3:~ # rpm -qa |grep postgresql
postgresql-8.1.5-13
postgresql-libs-8.1.5-13
postgresql-contrib-8.1.5-13
postgresql-pl-8.1.5-15
postgresql-server-8.1.5-13
rcpostgresql start
copy jdk/tomcat 5.5 package files to /opt
cd /opt
tar xzvf jdk1.5.tar.gz
tar xzvf tomcat5.5.tar.gz
export JAVA_HOME=/opt/jdk1.5.0_09
export OPENNMS_HOME=/opt/opennms
export CATALINA_HOME=/opt/apache-tomcat-5.5.20
export PATH=$PATH:$JAVA_HOME/bin
java -version
$CATALINA_HOME/bin/startup.sh
Test Tomcat 5.5 http://Ip_address:8080/
vi /var/lib/pgsql/data/postgresql.conf
# - Connection Settings -
max_connections = 256

vi /var/lib/pgsql/data/pg_hba.conf
[refer to install guide]
#local all all ident sameuser
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust

rcpostgresql restart

2>Install and configure OpenNMS
Copy OpenNMS rpm packages to /root
rpm -ivh opennms*
$OPENNMS_HOME/bin/runjava -s
$OPENNMS_HOME/bin/install -dis
$OPENNMS_HOME/bin/install -y -w $CATALINA_HOME/conf/Catalina/localhost
$CATALINA_HOME/bin/shutdown.sh
$CATALINA_HOME/bin/startup.sh
/etc/init.d/opennms start
/etc/init.d/opennms -v status
OpenNMS.Eventd : running
OpenNMS.Trapd : running
OpenNMS.Dhcpd : running
OpenNMS.Actiond : running
OpenNMS.Capsd : running
OpenNMS.Notifd : running
OpenNMS.Scriptd : running
OpenNMS.Rtcd : running
OpenNMS.Pollerd : running
OpenNMS.PollerBackEnd : running
OpenNMS.Collectd : running
OpenNMS.Threshd : running
OpenNMS.Discovery : running
OpenNMS.Vacuumd : running
OpenNMS.EventTranslator: running
OpenNMS.PassiveStatusd : running

Test OpenNMS login page http://ip_address:8080/opennms

没有评论:

发表评论