How To Install Nagios 4.x Server/Client – Part 1

0
71
views
How To Install Nagios 4.x Server/Client - Part 1

 Nagios is an open source tool for monitoring servers. when there is a good number of the server then health checks and server monitoring is a headache and Nagios is a good solution for such environment. It’s a lovely Open Source monitoring tool and always keep you updated about server health.

If you are using Nagios you can monitor server host on a single platform on your web browser. whenever there is a warning occurring (your setup limit), it shows the warning and send it to you through mail/sms accordingly. It helps us to reduce downtime and business losses.

This post will help and instruct you to install Nagios4.0.1 from source (tarball) on RHEL 7.x/6.x/5.x, CentOS 7.x/6.x/5.x and Fedora 24-19 distributions. And its is really easy to setup and 100% effective and time-saving.

 Scenario:

Server IP: 192.168.1.188
Nagios: nagios-4.0.1 and nagios-plugins-1.5
Installation Directory: /usr/local/Nagios
Nagios will be accessible at http://IP/nagios or http://localhost/nagios
By default, Nagios Will monitor Your local machine (Disk Usage, CPU Load, Current Users, Total Processes, etc.)

Step 1: Install Required Packages For compilation

Step 2: Create Nagios User and Group

Create a new Nagios user and nagcmd group account and set a password.

Step 3: Download Nagios Core 4.4.3 and Nagios Plugin 2.2.1




Step 4: Extract Nagios Core and its Plugins

After Successful Extraction,remove These files if you want to

And Your Directory Will look Like this

Step 5: Configure Nagios Core

Sample Output

Now Make Final Hit to make it small (do not forget I am putting semicolon)

Step 6: Customizing Nagios Configuration

Step 7: Install and Configure Web Interface for Nagios

We have already installed Web Interface (make install-webconf) so need to run this but following are needed

Adding password for user nagiosadmin and restart Nagios and Apache

Step 8: Compile and Install Nagios Plugin

Step 8: Checking Configuration and Adding service at start up

For CentOS 6:

For CentOS 7:

Step 9: Checking Configuration and Adding service at start up

Login Using http://localhot/nagios or http://IP/nagios and provide the username “nagiosadmin” & YourPassword

Here You Can see The Host 

How To Install Nagios 4.x Server/Client - Part 1

See Services which are being Monitored

How To Install Nagios 4.x Server/Client - Part 1