May 6, 201115 yr Here are some notes while I installed OpenNMS on my CentOS 5.6 server. It's not as easy as I thought it would be but it's not horribly complicated either. Note: the CentOS 5 server was built just like in my previous forum with Webmin installed and I will reference Webmin for a few tasks. PreReq: CentOS 5.x Webmin Internet Connection su -c 'yum install yum-fastestmirror' wget 'http://yum.opennms.org/repofiles/opennms-repo-stable-rhel5.noarch.rpm'rpm -Uvh opennms-repo-stable-rhel5.noarch.rpm yum search opennms (should show OpenNMS as an available install option) su -c 'yum -y install postgresql-server' (installs the required postgresql server)http://server.com:10000Open and Log into webminBrowse to un-used modules - postgresql database serverclick on initialize databaseonce initialized, you will be displayed postgre SQL Databases and User, Groups and Permissions and under that you will find a Warning that the Perl module DBD::Pg is not installed... click on Click here to install it now and wait for message to say completedclick on PostgreSQL Database Server under Un-used ModulesClick on Allowed Hosts and each of the entries, click on them and change to No Authentication RequiredClick on Refresh Modules and now the PostgreSQL Database Server module will be located no longer under Un-used modules but now under ServersBack to the terminal /etc/init.d/postgresql restart (restart PostgreSQL Database Server) sudo -u postgres createdb -U postgres -E UNICODE opennms (should see CREATE DATABASE message if it was successful) wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586-rpm.bin (download java jdk.. note: this is for linux 32bit)Note: I had a really long file name so I ran this to fix that: mv "jdk-6u25-linux-i586-rpm.bin?e=1304868344&h=e4f0c7b5d81d6cdf4aa57cb508e589e4" jdk-6u25-linux-i586-rpm.bin sh jdk-6u25-linux-i586-rpm.bin -x (this should extract the rpm) sudo rpm -ivh jdk-6u25-linux-i586.rpm (will install it) sudo yum install opennms (installs opennms) su -c 'yum -y install iplike'su -c '/usr/sbin/install_iplike.sh' (installs iplike) su - postgres -c "psql -U postgres -h localhost -d opennms -c '\df+ iplike' | head" (verifies iplike got installed)NOTE: if you are having issues installing. Restart PostgreSQL Database and try again su -c '/opt/opennms/bin/runjava -s' su -c '/opt/opennms/bin/install -dis' /etc/init.d/opennms startsu -c 'chkconfig opennms on' NOTE: If you are getting FAILED you might have DHCP running on your server. run: chkconfig –-list | grep on and look for bootp, dnsmasqNOTE: to set the service to not start on bootup run: /sbin/chkconfig –level 0123456 dnsmasq off IF you are using IPTABLES you need to edit it nano /etc/sysconfig/iptables toward the bottom of that file where permitted TCP services are added -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8980 -j ACCEPT su -c '/sbin/service iptables restart' http://your-server-address:8980/opennms/ login: admin password: admin
May 6, 201115 yr Author I had issues starting opennms service and found it was because dnsmasq service (DHCP and DNS server) which I wasn't using. If I stopped the service manually then I could launch opennms but if I just removed it from chkconfig it still started somehow so I just ran yum remove dnsmasq and all the dependencies that used this is what scares me Removed: dnsmasq.i386 0:2.45-1.1.el5_3 Dependency Removed: NetworkManager.i386 1:0.7.0-10.el5_5.2 NetworkManager-glib.i386 1:0.7.0-10.el5_5.2 NetworkManager-gnome.i386 1:0.7.0-10.el5_5.2 evolution.i386 0:2.12.3-19.el5 evolution-connector.i386 0:2.12.3-11.el5 gnome-applet-vm.i386 0:0.1.2-1.el5 krb5-auth-dialog.i386 0:0.7-1 libvirt.i386 0:0.8.2-15.el5_6.4 libvirt-python.i386 0:0.8.2-15.el5_6.4 python-virtinst.noarch 0:0.400.3-11.el5 virt-manager.i386 0:0.6.1-13.el5.centos virt-viewer.i386 0:0.0.2-3.el5 xen.i686 0:3.0.3-120.el5_6.1
Create an account or sign in to comment