How to Install OpenNMS Horizon Network Monitoring System on Debian



How to Install OpenNMS Horizon Network Monitoring System on Debian

How to Install OpenNMS Horizon Network Monitoring System on Debian

OpenNMS is a free, open-source, and one of the most powerful network monitoring and network management platforms used for monitoring remote devices from a central location. It supports many functionalities including, Provisioning, Services Monitoring, Event managing, chart support, and more. OpenNMS uses SNMP and JMX and gathers information from remote systems. It runs on Linux and Windows operating systems and provides a web-based interface to easy monitoring.

In this tutorial, I will show you how to install OpenNMS on Debian 11.

Useful Links:
VPS/VDS – https://www.mivocloud.com/

WARNING – ANGLED BRACKETS AREN’T ALLOWED IN DESCRIPTION SO BE ATTENTIVE TO THE VIDEO IN NANO EDITOR

Commands Used:
apt-get install default-jdk -y
java –version
apt-get install curl gnupg2 wget -y

nano /etc/apt/sources.list.d/opennms.list
deb https://debian.opennms.org stable main
deb-src https://debian.opennms.org stable main

wget -O – https://debian.opennms.org/OPENNMS-GPG-KEY | apt-key add –
apt-get update -y
apt-get install opennms -y
systemctl start postgresql

su – postgres
createuser opennms
psql -c “ALTER USER opennms WITH PASSWORD ‘password’;”
createdb -O opennms opennms
psql -c “ALTER USER postgres WITH PASSWORD ‘securepassword’;”
exit

nano /usr/share/opennms/etc/opennms-datasources.xml
sudo -u opennms /usr/share/opennms/bin/runjava -s
sudo -u opennms /usr/share/opennms/bin/install -dis
systemctl start opennms
systemctl enable opennms
systemctl status opennms
ss -antpl | grep 8980
apt-get install nginx -y

nano /etc/nginx/conf.d/opennms.conf
server {
listen 80;
server_name opennms.example.com;
access_log /var/log/nginx/opennms.access.log;
error_log /var/log/nginx/opennms.error.log;

location /

{
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-OpenNMS-Server-URL https://nms.hacc.edu/;
proxy_pass http://server-ip:8980;

}
}

nginx -t
systemctl restart nginx
systemctl status nginx