Monitorizare cu OPENNMS

Pentru opennms se adaugă în sources:opennms

cat << EOF | sudo tee /etc/apt/sources.list.d/opennms.list
# contents of /etc/apt/sources.list.d/opennms.list
deb http://debian.opennms.org stable main
deb-src http://debian.opennms.org stable main
EOF

sa fim siguri ca este cine zice, instalam cheia:

wget -O – http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add –

ne apucam de instalare:

apt-get update
apt-get -y install postgresql

dam drepturi

vim /etc/postgresql/9.1/main/pg_hba.conf

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# OpenNMS change: configure local, IPv4 and IPv6 connections made from localhost to not require authentication

# "local" is for Unix domain socket connections only
local   all             all                                     trust # the default method is peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust # the default method is md5
# IPv6 local connections:
host    all             all             ::1/128                 trust # the default method is md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5

~# /etc/init.d/postgresql restart
[ ok ] Restarting PostgreSQL 9.1 database server: main.

instalam java7

apt-get -y install openjdk-7-jre

verificam ca s-a instalat

java -version

~# java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-1)
OpenJDK Server VM (build 20.0-b12, mixed mode)

apt-get -y install openjdk-7-jdk

și instalam opennms

apt-get -y install opennms

ca sa nu facă automat update și sa strice tot, ii comentam liniile din:

vim /etc/apt/sources.list.d/opennms.list

punem opennms sa găsească java

/usr/share/opennms/bin/runjava -s

cream baza de date opennms

sudo /usr/share/opennms/bin/install -dis

trebuie sa zică la sfârșit: Installer completed successfully!
instalam IPLIkE

sudo /usr/sbin/install_iplike.sh

trebuie sa zică la sfârșit: CREATE FUNCTION
verificam conexiunea cu baza de date:

psql -U postgres –host=localhost opennms

va intra într-un prompt de genul: opennms=# de unde vom ieși cu comanda: \q
pornim opennms:

/etc/init.d/opennms start

deschidem site-ul
http://ad.re.sa.ip:8980/opennms/
ne autentificam cu user și parola admin
în dreapta sus după autentificare dam click pe admin și schimbam parola default


 

Ultimele știri monitorizare:

    No feed items found.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *