Follow us:

  • Google play
  • Pheniix bootique

©2020 Pheniix All Rights Reserved – Privacy Policy- Terms of Service , TRADEMARK LEGAL NOTICE

Nagios (installation and configuration) Part #2

 

 

And Yet Another Weekend Post! (YAWP)

 

After we have been asked to continue writing about Nagios we decided to do so.
In this article, we will learn a lot about installation and configuration aspect of Nagios. If you still don't know what the #Nagios is, please read the first part first.

 

Before we jump into the installation part, there are some specific prerequisites which you have to fulfill.

 

Step (1)– Pre-requisites
 

Go to this URL - http://dl.fedoraproject.org/pub/epel/6/

 

 

 Here, you can have to click on i386 and you will be redirected to the following page.

 

 

 

Here you  see “epel-release-6-8.noarch.rpm”, now open the terminal and copy the location of the link in the terminal. This is the way how you can download the repository on your system. Then, you are done with the first step that was pre-requisites. Let us move to the second step now.

 

 

 

Step (2) – Installing Nagios, Nagios Plugins, and NRPE
 
 

Issue the following command on the terminal to install, Nagios plug-ins and NRPE (Nagios Resource Plug-in Executor), Apache and PHP. Apache is needed to monitor the recent web server status and PHP is required to process the dynamic content on your website.

 

 

 

 

 

In the next step, you should enable the Apache server with ‘chkconfig’ command as shown below in the screenshot. And once it is enabled start the Nagios and the Apache server with the ‘service’ command given below.

 

 

 

 

Now create the swap file and make minimum 1 GB space free with the ‘dd’ command as given below –

 

 

 

 

With the swap file, you can free up necessary space and shift it somewhere else to the hard drive. You can use “mkwsap” command to create the swap partitions and prepare the remote host for a swap area. The last command should be written like this as shown below

 

 

 

With the above command, only a temporary swap file is created. You can make the swap area permanent by adding it to the fstab file.

 

 

 

 

After executing this command, we are done with the second step. Now let us move to the third step i.e. how to configure Nagios to access the Web interface.

 

 

 

Step (3) – Configure Nagios to access the Web Interface
 
 

At this step, you need to first set the password for web interface by typing the following command over terminal –

 

 

 

Type the password again for the confirmation. Now open the web browser and type the local hostname in the address bar.  Here, you need to enter the username and the password that is just given by you. By default, the username is Nagios admin. You can change the username in the advanced settings option. Password would the same that we set earlier. In the end, press OK. It will show Nagios dashboard in front of you as shown below.

 

 

 

 

With these steps, you can monitor localhost only. If you are interested in monitoring the remote host then you need to install the NRPE.

 

 

 

 

 

TRADEMARK LEGAL NOTICE

All product names, logos, and brands are the property of their respective owners in Austria or other countries. All company, product and service names used in this website are for identification purposes only. Pheniix is not affiliated with or an official partner of Cisco, CompTIA,Dimension Data, VMware, Amazon, Microsoft, Certified Ethical Hacker, (ISC)², Juniper, Wireshark, Offensive Security,Google, GNS3, F5, Python, Linux, Java, OpenStack, Vagrant, Ansible, Docker, GIT, , Blockchain or other companies. Use of these names, logos, and brands does not imply endorsement. The opinions expressed in Pheniix are personal perspectives and not those of Cisco, Dimension Data or any other company. Pheniix runs as an independent blog.

 

 

 

 

Please reload</