Documentati On: 1: Installing Virtual Box
Documentati On: 1: Installing Virtual Box
on
Hi ,
Following document will comprise all the aspects of NAGIOS
its requirements, installations, use, additional software or
hardware if required and problem faced.
Now just go for Virtual box 4.0 for windows host because you
have window as a host machine.
Here you have to allocate the memory for virtual hard disk. The
memory selected should be 10-15 GB. 8GB is minimum but
more memory should be allocated.
Now Virtual machine has been created and is allocated with all
the initial requirements.
you will encounter a run wizard click next you will encounter
the screen below
10: In this window click where arrow is shown and trace where
the setup (First if more than one) is on the hard disk and click
next
12 : keep clicking next and select English until you get into this
click basic storage device and click next if you see a screen
like following click reinitialise all.
This will fix all the problems occurred,
13: Now name your local host it is advisable to keep the default
and click next now select your time zone SELECT ASIA
COLKATA.
14: now chose your password in next window and click next to
see this window
Here of all the options you have to select the default options ie
Replace existing Linux systems although you can select any of
them as per need. Now again click next
15: On clicking next a popup will come which shows to make
some change click edit the files and click next.
17: If you have a single installation file it will start other wise it
will ask your permission just click CONTINUE, And
installation will start.
20: set the time and in next screen do let “DO NOT SEND MY
PROFILE “clicked.
1: Write
su-
and give your admin password.
NOTE : These will not work with Red hat Enterprise Linux as
we have to pay for these packags .
3: Create a new nagios user account and give it a password by
the commands –
/usr/sbin/useradd -m nagios
passwd nagios
/usr/sbin/groupadd nagcmd
mkdir ~/downloads
cd ~/downloads
wget
http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-
3.2.3.tar.gz
wget
http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagi
os-plugins-1.4.11.tar.gz
7: go to download
cd ~/downloads
cd nagios-3.2.3
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
11: Customize Configuration using commands although this can
be done later if required so it you can leave this step.
12.1:: Install the Nagios web config file in the Apache conf.d
directory.
make install-webconf
nagios-plugins-1.4.11
13.2:: Compile and install the plugins.
./configure --with-nagios-user=nagios
--with-nagios-group=nagios
make
make install
chkconfig nagios on
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
getenforce
setenforce 0
16 : Now you are done with the installation restart the system
17: Open your browser ,You should now be able to access the
Nagios web interface at the URL below. You'll be prompted for
the username (nagiosadmin) and password you specified earlier.
http://localhost/nagios/
7. Type
cd /media/VBOXADDITIONS_4.0.0_69151/
Exit the terminal and restart the system to see the changes.
1. Go to settings in VirtualBox.
2. Now select Shared Folders and click on the Add Shared
Folder (or press Ins)
Select other and select the path for the folder to be shared with
the linux guest machine. (let us say we have shared a folder
named sharedhost and check the box auto mount in present.
#mkdir /mnt/sharedguest
6. Now type:
This line you have to enter every time you login into the system.
Else we can add this line to rc.local file so that it initializes on
every restart.
For that type:
#gedit /etc/rc.local
now add
before
touch /var/lock/subsys/local
it should look like this
now restart the machine and check the mnt > sharedguest.