{"id":2207,"date":"2014-03-12T16:10:52","date_gmt":"2014-03-12T21:10:52","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=2207"},"modified":"2022-12-12T06:55:51","modified_gmt":"2022-12-12T12:55:51","slug":"how-to-install-opennms-on-a-debian-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opennms-on-a-debian-vps\/","title":{"rendered":"How to Install OpenNMS on a Debian VPS"},"content":{"rendered":"
OpenNMS is an open source and enterprise grade network monitoring and network management platform maintained by the OpenNMS Group.<\/p>\n
This install guide will help you install OpenNMS on one of our Debian vps<\/a> plans.<\/p>\n <\/p>\n <\/p>\n Create a new ‘opennms.list’ file to the ‘\/etc\/apt\/sources.list.d\/’ directory on your\u00a0virtual server and add the OpenNMS repository:<\/p>\n Install the OpenNMS PGP key using the following command:<\/p>\n Make sure your server is up-to-date:<\/p>\n PostgreSQL, RRDTool and Java 7 are required for OpenNMS, so install them using the following commands:<\/p>\n Edit your ‘\/etc\/postgresql\/9.1\/main\/pg_hba.conf’ configuration file and replace the default authentication methods with the method ‘trust’ (assuming that the virtual server<\/a> is limited to users of the OpenNMS), i.e. change:<\/p>\n to:<\/p>\n Restart the PostgreSQL service for the changes to take effect:<\/p>\n Install OpenNMS using the following command:<\/p>\n Configure OpenNMS to use a specific JRE binary:<\/p>\n Create the OpenNMS Database:<\/p>\n Start OpenNMS by running:<\/p>\n Finally, open the\u00a0OpenNMS web user interface using your favorite browser:<\/p>\nvi \/etc\/apt\/sources.list.d\/opennms.list<\/pre>\n
deb http:\/\/debian.opennms.org stable main\r\ndeb-src http:\/\/debian.opennms.org stable main<\/pre>\n
wget -O - http:\/\/debian.opennms.org\/OPENNMS-GPG-KEY | sudo apt-key add -<\/pre>\n
sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n
sudo apt-get install postgresql rrdtool openjdk-7-jdk jrrd<\/pre>\n
local\u00a0\u00a0 all\u00a0\u00a0\u00a0\u00a0\u00a0 all peer\r\nhost\u00a0\u00a0\u00a0 all all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0127.0.0.1\/32\u00a0\u00a0\u00a0\u00a0\u00a0md5\r\nhost\u00a0\u00a0\u00a0 all all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0::1\/128 md5<\/pre>\n
local\u00a0\u00a0 all all trust\r\nhost\u00a0\u00a0\u00a0 all all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0127.0.0.1\/32 trust\r\nhost\u00a0\u00a0\u00a0 all all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0::1\/128 trust<\/pre>\n
sudo service postgresql restart<\/pre>\n
sudo apt-get install opennms<\/pre>\n
sudo \/usr\/share\/opennms\/bin\/runjava -S \/usr\/bin\/java<\/pre>\n
sudo su - postgres\r\ncreatedb -E UTF8 -T template0 -O postgres opennms\r\nexit\r\nsudo \/usr\/share\/opennms\/bin\/install -dis\r\nsudo \/usr\/sbin\/install_iplike.sh<\/pre>\n
sudo \/usr\/sbin\/service opennms start<\/pre>\n
http:\/\/<your-ip-address>:8980\r\nusername: admin\r\npassword: admin<\/pre>\n
\nFor security reason, change the default admin password by clicking on the ‘Change Password’ link at:<\/p>\nhttp:\/\/<your-ip-address>:8980\/opennms\/account\/selfService\/index.jsp<\/pre>\n