hi guys and welcome to this session on Nagios installation by intellipaat
Nagios monitors your entire IT infrastructure and makes sure that
everything is working properly it is a key component of DevOps lifecycle and
it's a must for divorce certification so today we talk about how you can install
Nagios on your system but before we get into all of that please subscribe to our
channel to never miss an update from intellipaat also guys
we do provide end-to-end certification training on DevOps so if you are
interested please check out the course details given in the description below
now let's get into the session let me quickly jump on to my AWS management
console to basically launch a server over there right so here's my AWS
management console where I'll go into running instances I'll click on run
launch an instance select the operating system that I want which is Ubantu
select each out microbe because in that case we'll be unfallen to Freetail then
go to security group select the security group which is open for so for me it's
this one you can also select a security group if you have already created or
create a security group which basically should have all the ports open to the
host that are basically going to connect to Nagios right and if not all
ports specifically the port's that Nagios work on they should be enabled on
that right so once you select the desired security group just select your
keeper and click on launch instance so while the instance is being launched let
us label this instance as Nagios - 1 all right now my instance is being launched
so let us go to our running instances and while this is being launched at me
just quickly open my putty tool so here is where I'm gonna enter my IP address
so let me just refresh it so it has started running let's copy the IP
address go to my putty tool paste the IP address click on open and let's see
what happens now so I click on yes so my instance is ready it asked me for the
login all right so here I am the first thing that I'm gonna do is I'm going to
update the machine using sudo apt-get update so my machine is now getting
updated numbers what I've done is I've already noted down some commands
to help us install Nagios so here they are right so we have a beta the machine
the next step is to install the required software's which would support running
nagios so the software's will now get installed so let us give it this time
for it to install the software
all right so my software's are installed a next step would be to add a user for
nagios so I've done that let's add a group also for nagios that is also done
next step is to do a little modification to the group and user so basically we've
added this user to this group that's done now let's download the Nagios core
file file is downloaded now let's unzip this, file file is unzipped now let's go
inside this version so you're inside the directory now and now let's configure
all these files with the metrics of the user name and the command that you're
gonna pass with that right so it's configured now let's build this project
using the meet command so the project is now being built now once it's built it
will start installing it using sudo make install so this might take awhile so
let's wait
all right so my files have been built now let's install them files have been
installed now let's install the additional things as well such as
command install in it and install config alright so they are installed now let's
go ahead and do some modification to our apache website add the user for apache
alright so this is done now our next step would be to install the required
plugins for nagios to work as expected so plugins basically give us the
advantage of additional features which get attached Nagios once we install the
plugins alright so install the never inside
Nagios plugins folder let's configure it with the user names and now let's build
the project
all right so my files have been configured now let's build them built
and now let's install them alright so they have been installed now let's make
some changes to our apache software let's configure a password for nagios
password would be this past this command and now let's restart apache a new
Apache to with restart now let's create the Nagio service and let's copy this
code from over here save the file now let's enable the Nagios service so that
it gets started by even an early start and finally let's start nagios now so
the nagios service is now started guys now what we can do is we can go to the
IP address of my server with slash Nagios not last the username and the
password the user name would be Nagios - admin and the password would be this
right Nagios happen without the - all right right so now we have successfully
installed Nagios on our server guys and this is
how the GUI looks like and if you have a look at the hosts so right now it is
monitoring itself because who localhost is listed over here and the status is up
right everything seems fine ok this is how Nagios looks like on the GUI side
right in a next session we are going to discuss different components that nagios
has your going to dive a little deeper into you know the Nagios hood and
see what kind of different things we have under it right so see you in the
next session guys have a great day and good bye so this brings us to the end of
this session if you have any queries please leave a comment down below and we
will reach out to you immediately also guys please subscribe to our channel to
never miss an update from intellipaat thank you