Use OpenNMS for Ubuntu 16.04 for server monitoring - ste smart
SUBTOTAL :
featured linux ubuntu
Use OpenNMS for Ubuntu 16.04 for server monitoring

Use OpenNMS for Ubuntu 16.04 for server monitoring

featured linux ubuntu
Bréve Description:

Description du produit

OpenNMS is a free open source enterprise network monitoring Web application system that can be used to monitor infinite devices in a single instance. OpenNMS automatically detects and monitors services or nodes in your network. You can also add specific devices or services to monitor. OpenNMS is written in Java, so it can run on any platform.
OpenNMS comes with a set of features, some of which are as follows:
  1. Supports multiple operating systems, including Windows, Mac, Linux / Unix and Solaris.
  2. Performance Management and Fault Management.
  3. Send a notification via email.
  4. Provides customizable dashboards based on the Web.
  5. Ability to process 125,000 syslog messages per minute.
  6. Contains advanced configuration systems for adding devices to the management system.
In this tutorial, we will gradually guide the installation of OpenNMS on Ubuntu 16.04 servers.

prerequisites

  • Run the Ubuntu 16.04 server.
  • Set the sudo privilege on your server to a non-root user.
  • The static IP address 192.168.0.187 on your server is set.

getting Started

Let your system update to the latest stable version. You can do this by running the following command:
sudo apt-get update -y 
sudo apt-get upgrade -y
After updating the system, you will need to set the correct fully qualified domain name. You can do this by editing the / etc / hosts file:
sudo nano / etc / hosts
Add the following line:
192.168 . 0.187 server . Opennms . Local server
Next, open the / etc / hostname file:
sudo nano / etc / hostname
Add the following line:
server . opennms . local
When finished, save the files, and then restart the system to apply these changes.

1 Install PostgreSQL


OpenNMS requires PostgreSQL for database purposes. You can install PostgreSQL by running the following command:
sudo apt-get install postgresql -y
After installing PostgreSQL, you will need to allow users to access the database. PostgreSQL only allows you to connect if you log on to a local account name that matches the PostgreSQL user. Since OpenNMS runs as root, you need to change the configuration to allow the root user.
You can do this by editing the pg_hba.conf file.
sudo nano /etc/postgresql/9.5/main/pg_hba.conf
Find the following line:
local    all all                                          local 
host all all
127.0 . 0.1 / 32 md5
All All Host
:: 1 / 128 MD5
And change it as follows:
local    all all trust
host all all
127.0 . 0.1 / 32 trust
All All Host
:: 1 / 128 Trust
When finished, save and close the file, then restart the PostgreSQL service and use the following command to start it:
sudo systemctl restart postgresql 
sudo systemctl enable postgresql
When you are done, you can continue installing Java.

2 install Java

OpenNMS does not support Java 8, it is strongly recommended to use Java 7. To install Java 7, you need to add PPA to the apt source list. You can do this by running the following command:
sudo add-apt-repository ppa: webupd8team / java
Next, update your repository by running the following command:
sudo apt-get update -y
After updating the repository, you can install Java 7 by running the following command:
sudo apt-get install oracle-java7-installer -y
You can check the Java version using the following command:
sudo jave -version
You should see the following output:
Version the Java "1.7.0_101" the Java ( TM ) SE Runtime Environment ( Build 1.7 . 0_101 - B13 ) the Java HotSpot ( TM ) 64- - Bit Server VM ( Build 25.101 - B13 , Mixed the MODE )

Upon completion, you can proceed to the next step.

3 Install OpenNMS


By default, OpenNMS is not available in the Ubuntu default repository. Therefore, you need to add the OpenNMS repository to the /etc/apt/sources.list.d directory. You can do this by running the following command:
sudo nano /etc/apt/sources.list.d/opennms.list
Add the following line:
deb http : //debian.opennms.org stable main 
deb
- src http : //debian.opennms.org stable main
When finished, save the file, and then use the following command to add the OpenNMS key:
wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -
Now, use the following command to update the repository list:
sudo apt-get update -y
Once the repository is up to date, install OpenNMS by running the following command:
sudo apt-get install default-mta opennms -y
After the OpenNMS installation is complete, you will need to create a database for OpenNMS. You can do this by running the following command:
sudo / usr / share / opennms / bin / install -dis
You should see the following output:
OpenNMS Installer ================================================ ============================== Configures PostgreSQL the Tables , the Users , and OTHER Miscellaneous Settings . . . . - Running POST - Execution Phase
Removing backup / usr / share / opennms / etc / discovery - configuration . Xml . Zip
Finished in 0 seconds






Finally, use the following command to start the OpenNMS service:
sudo systemctl start opennms

4 Access OpenNMS

By default, OpenNMS runs on port 8980. Therefore, you need to allow port 8980 through the UFW firewall. By default, UFW is disabled on the system, so you need to enable it first. You can use the following command to enable it:
sudo ufw enable
Once the UFW firewall is enabled, you can allow port 8980 by running the following command:
sudo ufw allow 8980
You can now check the status of the UFW firewall by running the following command:
sudo ufw status
After configuring the UFW firewall, open the Web browser and enter the URL http://192.168.0.187:8980/opennms , you will see the following screen:
Now, using the username " admin " and the password " admin " login, you should see the following screen:
If you want to add a new server node for monitoring, click the Administration> Quick add node button and you should see the following screen:
Here, fill in all the necessary information, such as the requisition, IP address, node label, community string, device user name, device password, and then click the Settings button. You should see the following screen:
Next, click OK to continue, then go to Info> Node and find the node with its label name. Finally, click the tab button and you will see the status, notifications, and events of the node in the following screen:

in conclusion

Congratulations! You have successfully installed and configured OpenNMS on an Ubuntu 16.04 server. Now you can easily add more server nodes for monitoring. If you have any questions, please send me a message.


Thank you for your visite .. ☺

0 Reviews:

Post Your Review