Nagios is a very popular server monitoring software application that’s been in development since 1999 and is still regularly updated. The server administrator who uses Nagios gains access to a wide variety of features such as SSH-enabled remote monitoring, network and host traffic monitoring, and a versatile plugin ecosystem. Nagios is free and open source under the GNU General Public License, version 2.
• 1 Remote server (Cloud Server or Dedicated Server) running CentOS 7.
The first step is to make sure that Selinux is disabled.
Once you’ve done that, you’ll need to install some basic prerequisite packages for Nagios.
Let’s install the Apache webserver and PHP.
We’ll be adding a Nagios user to our system, along with nagcmd, so that Nagios and Apache can be integrated together.
Now, we’ll proceed with the installation of Nagios proper. This requires that you download Nagios and the Nagios plugins from the official site.
Unzip the Nagios archive you downloaded and use the script inside to install the program.
Open the contact file in your favorite text editor and change the enclosed email address to your own.
# template which is defined elsewhere.
Now, set the password that you'll use to access Nagios.
After that, you can unzip and install the Nagios plugins from the second archive you downloaded.
Just to be safe, check that your config file has no errors.
The final step is to start up the Nagios and Apache daemons.
Feel free to change the login name to something more obfuscated.
Now that you know how to install Nagios on your system, you can use it as a quick and simple, yet full-featured, monitoring tool for any system under your purview. If you found this article helpful, feel free to share it with your friends and let us know in the comments below!