The site for people who want to establish the Network Server with CentOS, Ubuntu, Fedora, Debian. Install your Operating System. Start with a freshly installed, Grade A supported Operating System on your server or VPS. CentOS and Ubuntu LTS are very popular.

There are many posts on the internet about people wanting to install a newer PHP release on their EL6 boxes. Most of these posts will tell you to either install the.

Install And Configure Nagios 4 On Cent. OS 7. Introduction. Nagios is an open source software that can be used for network and infrastructure monitoring.

Nagios will monitor servers, switches, applications and services. It alerts the System Administrator when something went wrong and also alerts back when the issues has been rectified. Features. Monitor your entire IT infrastructure; Identify problems before they occur; Know immediately when problems arise; Share availability data with stakeholders. Detect security breaches; Plan and budget for IT upgrades; Reduce downtime and business losses.

Scenario. In this tutorial i am going to use two systems as mentioned below. Nagios server: Operating system : Cent. OS 7 minimal server.

IP Address       : 1. Nagios client: Operating System : Cent.

Install Remi Repository Centos 7 Install

OS 7 minimal server. IP Address       : 1.

Prerequisites. Before installing Nagios, make sure that you’ve a properly installed and configured LAMP stack in your server. To install and configure LAMP server, refer the following link.

Also install the following prerequisites too. All commands should be run as root user. Create Nagios User And Group. Create a new nagios user account and give it a password: useradd - m nagios. Create a new nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group. G nagcmd nagios. usermod - a - G nagcmd apache.

Download Nagios And Plugins. Go to the nagios download page, and get the latest version. As of writing this, the latest version was 4. And, download nagios plugins too. Install Nagios And Plugins.

Install nagios: I tested this how- to on Cent. OS 7 minimal server, although it should work on all RHEL 7 and its clones like Scientific Linux 7 too. Go to the folder where you’ve downloaded nagios, and extract it using command: tar xzf nagios- 4. Change to the nagios directory, and run the following commands one by one from the Terminal to compile and install nagios. Install Nagios Web interface: Enter the following commands to compile and install nagios web interface. Create a nagiosadmin account for logging into the Nagios web interface.

Remember the password you assign to this account. You’ll need it while logging in to nagios web interface.

Restart Apache to make the new settings take effect. Winrar 4 20 Final Portable Preactivated Software. Install Nagios plugins: Go to the directory where you downloaded the nagios plugins, and extract it. Change to the nagios plugins directory: cd nagios- plugins- 2. Run the following commands one by one to compile and install it./configure - -with- nagios- user=nagios - -with- nagios- group=nagiosmake. We aren’t finished yet. Configure Nagios.

Nagios sample configuration files have now been installed in the /usr/local/nagios/etc directory. These sample files should work fine for getting started with Nagios. However, you’ll need to put your actual email ID to receive alerts. To do that, Edit the /usr/local/nagios/etc/objects/contacts. Find the following line and enter the email id. Here, I want to allow nagios administrative access from 1.

You will see there the no of hosts to be monitored by Nagios server. We haven’t added any hosts yet.

So it simply monitors the localhost itself only. Click on the particular host to display more details: Add Monitoring targets to Nagios server.

Now, let us add some clients to monitor by Nagios server. To do that we have to install nrpe and nagios- plugins in our monitoring targets. On Cent. OS/RHEL/Scientifc Linux clients: Add EPEL repository in your Cent. OS/RHEL/Scientific Linux 6.

To install EPEL on Cent. OS 7, run the following command: yum install epel- release. On Cent. OS 6. x systems, refer the following link.

Install “nrpe” and “nagios- plugins” packages in client systems: yum install nrpe nagios- plugins- all openssl. On Debian/Ubuntu clients: sudo apt- get install nagios- nrpe- server nagios- plugins. Configure Monitoring targets. Edit /etc/nagios/nrpe. Add your Nagios server ip address.

Finally restart nagios service. Wait for few seconds, and refresh nagios admin console in the browser and navigate to “Hosts” section in the left pane.

You will see the newly added client will be visible there. Click on the host to see if there is anything wrong or any alerts it has.

Click on the monitoring target (client) to view the detailed output: Similarly, you can define more clients by creating a separate config files “/usr/local/nagios/etc/servers” directory for each client. Define services. We have just defined the monitoring host. Now, let us add some services of the monitoring host. For example, to monitor the ssh service, add the following lines shown in bold in the “/usr/local/nagios/etc/servers/clients.

Add the following lines shown in bold: define host. Restart Nagios. systemctl restart nagios. Wait for few seconds, and check for the added services (i. Install Networker Client Solaris 10. Navigate to Services section on the left side bar, you’ll see the ssh service there. To know more about object definitions such as Host definitions, service definitions, contact definitions, please do visit here.

This page will explain you the description and format of all object definitions. Thats it. Cheers!