You are on page 1of 28

FAN 2.

4 Hyper-V Installation
By Mark Achel Gagalac | October 11, 2014
0 Comment
FAN 2.4 Hyper-V Installation. FAN or Fully Automated Nagios is the easiest way to install nagios
in my humble opinion. I’ve been using nagios for years and I could say its the best opensource
network monitoring tool available as of writing this blog. The official website of FAN can be
found here.

FAN integrated tools upon installation:


 Nagios: core monitoring application.
 Nagios plug-ins: plug-ins to monitor different equipments.
 Centreon: Web interface for Nagios (Centreon is one of the best for this purpose!)
 NagVis: advanced mapping (geographical, functional, by services…)
You can install FAN in a box or other virtualization application but in this tutorial I will show you
the step by step guide on how to install it on Hyper-V. The default installation of FAN in Hyper-V
has errors, We need to tweak some settings in able for it to run in this virtualization. Just in case
you dont know. Here is the error of the default installation of FAN in Hyper-V.

 switchroot: mount failed: No such file or directory


 Kernel panic – not syncing: Attempted to kill init!
Okay Lets start..

 Create a virtual guest using Hyper-V.


 Download the FAN stable version ISO here.
 Mount the ISO and specify the specs to be used in this operating system.

Recommended system requirements

 20-50 GB plus the required disk space recommended essentialy for /var. Disk space
needed by mysql and rrd files
 2 processors core or hyper-thread for each virtualized CPU.
 2 GB of RAM.
Power up the Virtual machine and begin the installation.
Choose a Language.
Select Keyboard Type.
Remove all partitions on selected drives and create default layout.
Accept the warning and proceed.
Select your Location and click on Next.
Setup the root password and click on Next.
Reboot after the installation. Do not unmount the installation ISO yet.
Enter the rescue environment by issuing the command;

 linux rescue
Select Language.
Select Keyboard Type.
Start up the network interface.
Continue..
Your system has been mounted under /mnt/sysimage
Enter the following commands to check the version of kernel installed.

 /mnt/sysimage
 cat /etc/grub/conf
This is the confusing part. Replace the kernel version by issuing this command;

 mkinitrd /boot/initrd-2.6.18-348.1.1.el5.img 2.6.18-348.1.1.el5 –preload hv_storvsc –


preload hv_vmbus –preload hv_utils -f
Thats 2 dashes before “preload”. 2 dashes. – – See screenshot below.
Eject the installation ISO from your Hyper-V Media Drive and reboot the machine by
issuing exitcommand 2 times.

The installation of FAN is now finished. Login as root with the password you specify during
installation.
Configure the network of your machine. Just in case you need to go back in this option. Just
issue thesetup command.
Edit your network card preferences.
Setup the Static IP configuration.
Edit the DNS configuration.
Save and Quit.
Restart the network interface and verify your IP address.

 service network restart


 ifconfig
Now open a browser in your network and start configuring the FAN

Default Web Access:


Address: http://ipaddressofyourFANserver/
The default credentials for Nagios, Centreon and Nagvis would be:
 username: nagiosadmin
 password: nagiosadmin
By following the step by step instructions and the screenshots provided above, you now
have a Fully Automated Nagios installed in your network. Start adding devices and
monitor your network. Enjoy!

For frequently asked questions about how to configure FAN, You can visit their official
website about FAQ’s in here.

You might also like