Monday, February 28, 2011

Install OpenNMS with postgreSQL 9 on CentOS 5.5

  1. yum install yum-fastestmirror
  2. rpm -Uvh http://yum.opennms.org/repofiles/opennms-repo-stable-rhel5.noarch.rpm
  3. wget http://www.pgrpms.org/9.0/redhat/rhel-5-x86_64/pgdg-centos-9.0-2.noarch.rpm
  4. rpm -i pgdg-centos-9.0-2.noarch.rpm
  5. yum install postgresql90-server postgresql90-devel
  6. /etc/init.d/postgresql-9.0 initdb
  7. vi /var/lib/pgsql/9.0/data/pg_hba.conf, to change ident to trust for all local, IPv4, and IPv6.
  8. vi /var/lib/pgsql/9.0/data/postgresql.conf to modify work_mem, vacuum_cost_delay, wal_buffer, checkpoint_segment, etc to meet your need.
  9. /etc/init.d/postgresql-9.0 restart
  10. createdb -U postgres opennms
  11. wget http://sourceforge.net/projects/opennms/files/IPLIKE/stable-2.0/iplike-2.0.0.tar.gz
  12. tar xfz iplike-2.0.0.tar.gz
  13. cd iplike-2.0.0
  14. ./configure --with-pgsql=/usr/pgsql-9.0/bin/pg_config
  15. make
  16. make install
  17. /usr/local/sbin/install_iplike.sh
  18. psql -U postgres -h localhost -d opennms -c '\df+ iplike|head'
  19. yum install opennms --nogpgcheck
  20. /opt/opennms/bin/runjava -s
  21. /opt/opennms/bin/install -dis
  22. /etc/init.d/opennms start
The OpenNMS page is at http://localhost:8980/opennms/login.jsp. Both initial user name and password are admin.

No comments: