A dedicated root server or vServer delivers your own website or app noticeably faster than shared hosting packages do. Many frameworks, such as Laravel, even require their own server to make optimal use of all features. The advantage of your own server lies in the freedom to manage the settings and the software you use completely yourself. These advantages are at the same time disadvantages, because compared to shared hosting the administration effort passes entirely to the owner. You are responsible for making sure your server works correctly and is secured as well as possible. Besides the right configuration, it is advisable to implement monitoring apps that, for example, send notifications when a service no longer works properly or perhaps even the whole server goes down.
There are various approaches to monitoring your own server. Let us first take a look at the simpler tools.
UptimeRobot

UptimeRobot is a free service that automatically sends pings to IP addresses or domains and sends an automated email if the target address cannot be reached. The service only checks whether the server in question sends a response, not whether the actual website is displayed correctly. A faulty WordPress installation that spits out error messages is therefore still marked as online by UptimeRobot.
htop for process monitoring

Another simple tool for monitoring your root server is called “htop”. The tool shows the processes currently running and sorts them by CPU usage by default. If your server responds unusually slowly to requests, for example, you can use htop to find out what is currently happening on your machine. Besides the CPU resources consumed, the amount of memory used by each process is also displayed. In the top left corner there are further details that quickly show how your server is doing right now. Unfortunately, htop does not offer an automatic reporting function, so it is not possible to send notifications automatically under high load.
Installation
sudo apt-get install htop
Logwatch

Among the monitoring tools that send notifications automatically and run directly on your own server, Logwatch is the simplest solution. On request, the program sends a summary of the most important logs to the administrator by email once a day. The report can be broken down in HTML format for a better overview. You can configure yourself which types of problems should be recorded and transmitted. You can find more information in the official documentation directly at Ubuntu.
Installation
sudo apt-get install logwatch
NetData Performance Monitoring

If you want to keep an eye on the performance of several servers, NetData is a good choice. The tool offers a well-made interface that shows the current load of each server. If you like, it can send automated warnings when a monitored process fully maxes out the server. The interface can also show processor load, free memory, network load or the number of running processes at a glance.
Nagios 4

Nagios is one of the best-known monitoring tools and can monitor not only servers but also the network infrastructure of a company. So nothing stands in the way of using it as a monitoring tool for a Linux server. Nagios is set up as a server / client. On your computer, for example, the Nagios server runs and fetches information from its configured clients (your root server or vServer). For Windows, Nagios offers a VM image, for example, which can be run directly. On the root server you then still need to install the matching software, open ports on the firewall and establish a connection between your Nagios server and the client. The configuration takes some time, but afterwards it saves you a lot of time, especially when managing several servers. For use with just a single server, Nagios can quickly be too complex.
Setting up clients to be monitored is simplified in Nagios by the configuration wizard, but it still requires experience with Linux. The configuration wizard supports Digital Ocean, Amazon EC2, the Microsoft Azure cloud, Docker or the Google Cloud. Installation on clients does not work at the push of a button, though. Nagios can also be used to monitor your home server.
If you are interested in monitoring, you should download Nagios XI directly, for example as a VM image, and try it out.




