Linux: Installation of OpenNMS on Debian Lenny


Install OpenNMS 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:

  1. Install SUN JDK 1.6
    aptitude install sun-java6-jdk
  2. 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
  3. Import PGP-key of the OpenNMS project
    wget -O – http://debian.opennms.org/OPENNMS-GPG-KEY | apt-key add -
  4. Install OpenNMS packages
    apt-get update ; apt-get install opennms
  5. 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
  6. Create DB for OpenNMS
    sudo -u postgres createdb -U postgres -E UNICODE opennms
  7. Install OpenNMS
    export OPENNMS_HOME=/usr/share/opennms ; /usr/share/opennms/bin/install -dis
  8. Run OpenNMS
    /etc/init.d/opennms start
  9. Run a browser and type in the address line: http://<your_servername>:8980/opennms/. Login/Password: admin.
Bookmark and Share

Related Posts

, , , , , , , , , ,

  1. No comments yet.
(will not be published)
  1. No trackbacks yet.