Telegram- 👇 😉
-
. WIKIMERIONET
Merion Mertics , ,

CRM

4

OpenNMS - , , . SNMP JMX (Java Management Extensions). Java .

OpenNMS

OpenNMS , Linux Windows - . , , Postgres.


OpenNMS

  • Debian 9.0 , Ubuntu 16.04 LTS ;
  • OpenJDK 11 Development Kit;
  • 2 CPU, 2 RAM, 20 .

, OpenNMS Horizont Debian Ubuntu.


1. Java-OpenJDK 11 Ubuntu

OpenJDK Java 11 :

$ sudo apt-get install openjdk-11-jdk

, Java

$ java -version
java -version

. /etc/profile .

export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64

, /etc/profile.

$ source /etc/profile

2. OpenNMS Horizon Ubuntu

OpenNMS Horizon, /etc/apt/sources.list.d/opennms.list GPG , apt :

$ cat  EOF | sudo tee /etc/apt/sources.list.d/opennms.list
deb https://debian.opennms.org stable main
deb-src https://debian.opennms.org stable main
EOF
$ wget -O - https://debian.opennms.org/OPENNMS-GPG-KEY | apt-key add -
$ apt update

- OpenNMS (opennms-core opennms-webapp-jetty) (jicmp6 jicmp, postgresql postgresql-libs).

$ sudo apt install opennms

tree, , - OpenNMS /usr/share/opennms

$ cd /usr/share/opennms
$ tree -L 1
tree -L 1

: , OpenNMS

$ sudo apt-mark hold libopennms-java libopennmsdeps-java opennms-common opennms-db

3. PostgreSQL

Debian Ubuntu Postgres, .

, , :

$ sudo systemctl status postgresql
sudo systemctl status postgresql

postgre opennms .

$ sudo su - postgres
$ createuser -P opennms
$ createdb -O opennms opennms
createdb -O opennms opennms

postgres :

$ psql -c "ALTER USER postgres WITH PASSWORD 'YOUR-POSTGRES-PASSWORD';"
  postgres

OpenNMS Horizon . .

$ sudo vim /usr/share/opennms/etc/opennms-datasources.xml

jdbc-data-source name="opennms"
 database-name="opennms"
 class-name="org.postgresql.Driver"
 url="jdbc:postgresql://localhost:5432/opennms"
 user-name="opennms-db-username"
 password="opennms-db-user-passwd" /
jdbc-data-source name="opennms-admin"
 database-name="template1"
 class-name="org.postgresql.Driver"
 url="jdbc:postgresql://localhost:5432/template1"
 user-name="postgres"
 password="postgres-super-user-passwd" /
/usr/share/opennms/etc/opennms-datasources.xml

.


4. OpenNMS Horizon

OpenNMS, Java. , Java /usr/share/opennms/etc/java.conf :

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

, , /opt/opennms/etc/libraries.properties, :

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

OpenNMS systemd, :

$ sudo systemctl start opennms
$ sudo systemctl enable opennms
$ sudo systemctl status opennms
sudo systemctl status opennms

ufw, 8980

$ sudo ufw allow 8980/tcp
$ sudo ufw reload

5. - OpenNMS

- OpenNMS.

http://SERVER_IP:8980/opennms

http://FDQN-OF-YOUR-SERVER:8980/opennms

- admin/admin

  - OpenNMS

  OpenNMS

. "adminChange Password", "User account self-service" "Change Password".

, , "Submit". .

, , OpenNMS Horizon -, , OpenNMS.