This mini tutorial explains how to install OpenNMS on Debian in Linux. OpenNMS is an opensource enterprise network management tool. It allows to monitor critical services on remote machines and collects the information of remote nodes by using SNMP.
I have tried to cover the installation of OpenNMS on Debian Lenny in a few steps:

- Install SUN JDK 1.6
aptitude install sun-java6-jdk - Add to /etc/apt/sources.list
echo ‘deb http://debian.opennms.org stable main’ > /etc/apt/sources.list.d/opennms.list
echo ‘deb-src http://debian.opennms.org stable main’ >> /etc/apt/sources.list.d/opennms.list - Import PGP-key of the OpenNMS project
wget -O – http://debian.opennms.org/OPENNMS-GPG-KEY | apt-key add - - Install OpenNMS packages
apt-get update ; apt-get install opennms - PostgreSQL Configuration
Edit a file /etc/postgresql/8.3/main/pg_hba.conf. Replace the lines:
local all all ident sameuser
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
на
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
Edit a file /etc/postgresql/8.3/main/postgresql.conf:
listen_addresses = ‘localhost’ # what IP address(es) to listen on;
Reboot PostgreSQL
/etc/init.d/postgresql-8.3 restart
- Create DB for OpenNMS
sudo -u postgres createdb -U postgres -E UNICODE opennms - Install OpenNMS
export OPENNMS_HOME=/usr/share/opennms ; /usr/share/opennms/bin/install -dis - Run OpenNMS
/etc/init.d/opennms start - Run a browser and type in the address line: http://<your_servername>:8980/opennms/. Login/Password: admin.



Recent Comments