Topic: Monitoring

Nagios Automation 0


Let’s learn about automated nagios,which is pre-build ready with nagios,frontend and database installed monitoring for you…

What is “Fully Automated Nagios”?

Fully Automated Nagios (FAN) is a Linux distribution based on CentOS that comes pre-built with some of the most commonly used tools with Nagios. FAN comprises of a CentOS Linux distribution, Nagios Core, Centreon and Nagvis. All these tools are available in a pre-built iso image that can be downloaded from the official FAN website. FAN makes the configuration of Nagios very simple by using the Centreon Graphical User Interface

What is Nagios?

Nagios is a free open-source Monitoring System that can be used to monitor your Network and Server infrastructure. Nagios gives System Administrators the ability to notify support teams with service alerts automatically. System parameters such as CPU, Load, Memory, Processes, Disk Usage and System Logs can all be monitored. Nagios can monitor local hosts and remote hosts. Nagios can be used to monitor various platforms such as Linux, Unix and Microsoft’s Windows.

What is Centreon?

Centreon is a piece of software that provides a feature rich dashboard that allows administrators to easily configure software such as Nagios. Centreon provides a dashboard where you can add hosts, select system parameters to be monitored, create alerts and produce graphs with ease. No more manual configuration of files is necessary. In this example, we are using Centreon to configure our Nagios monitoring solution.

What is Nagvis?

Nagvis is a visualization add-on for Nagios. Nagvis can be used to display a visual representation (icons, maps, pictures) of your Nagios data, thus allowing you to display a quick overview of your servers, data centres or computer rooms.

Download FAN (Fully Automated Nagios)

Download Fully Automated Nagios
From the above link, you must choose either a 32-bit or 64-bit version of the software. Once you have downloaded this software, you can either use the iso image directly to install into a virtualized environment such as VirtualBox or VMWare or you can choose to burn the iso image to a CD/DVD and then install directly onto a physical server or PC.

System Requirements

System requirements are dependant on whether you choose to use a standalone server installation or use a distributed server installation.
Minimum system requirements:
4 GB free disk space
1 GB of RAM.
1 processor core
Recommended system requirements
20 GB plus the required disk space recommended essentially for /var. Disk space needed by mysql and rrd files
2 processors core or hyper-thread for each virtualized CPU.
2 GB of RAM.

FAN Installation Guide

To install FAN, simply follow the steps below. In this example, I am using a 64-bit version and I am using Oracle’s VirtualBox software.

Installing Fully Automated Nagios

To start the installation process, place your iso image in the target systems optical drive or make your iso image available to your Virtualization software. If you are booting from a CD/DVD, you may need to alter the BIOS boot order. You will need to set this to boot from CD/DVD first. This is normally done by pressing the specified function key at system start-up.
In the example that follows I have opted for a Standalone Server Installation.

FAN – Fully Automated Nagios

At this initial screen you can choose which components you wish to install. Simply enter you choice as specified. In this example I am installing the standalone version.
FAN Initial Boot Screen

Choose Installation Language

From this next screen you need to select you language that you wish to use for this installation. In the example, I have selected “English”. Once you have made your selection, click “OK” to continue with the installation.
FAN - Select Installation Language

Choose Keyboard Type

At this screen simply choose your keyboard type. In this example, “UK” has been chosen. Once you have made your selection, click “OK” to continue with the installation.
FAN - Select Keyboard Type

Warning Message

At the following screen simply click “YES” to initialize your hard drives. Depending on your installation type (Physical/Virtual), you may not see this warning.
FAN - Initialize Disk Message

Select Partitioning Options

At this screen you need to select a partitioning option. Several are available to choose from:
Default: Use free space on selected drives and use default layout
remove all partitions on selected drives and create default layout
remove all linux partitions on selected drives and create default layout
create custom layout
In this example I have chosen the “Default” option. From this screen, you may also choose to create a custom disk partition layout. You can also view the “Release Notes”. Once you have made your selection, click “Next” to continue with the installation.
FAN - Default Partitioning Layout

Choose your Geo-Graphic Location

At this screen you need to select your location. This can be done by either clicking on the Map or selecting your time zone from the pull down menu. Once you have made your selection, click “Next” to continue.
FAN - select your location

Root Password

From this screen you need to supply a “root” password to be used for administering this system. Once you have entered your password, click “Next” to continue.
FAN - Enter root password

Installation in Progress……

Your FAN installation is now taking place. A slide show will now display some of the included monitoring software included within this installation image. Progress of the installation is indicated by the progress bar at the bottom of the screen.
FAN - Installation in Progress

Installation Complete

Congratulations, your installation is now complete. You will need to remove any media from your drives before rebooting your system.
FAN - Installation Complete, Please reboot system

Configuring your Network Interface

Once your system has rebooted, an interactive menu is displayed where you can configure your network. To configure the network, simply choose the “Network Configuration” option and click on “Run Tool”. Here you will be able to supply your network information such as IP address, Gateway and Subnet mask. If you don’t make a selection within a 30 second period, the screen will close and you will be taken to a command line. If you still need to configure your network settings, simply run the following command:
You will now be displayed a network configuration menu.
FAN - Network Configuration

Edit Devices

From this menu, select your network interface and press “Enter”.
FAN - Edit Devices

Network Interface Parameters

From this menu you can choose to either use a “DHCP” configuration or manually configure a static IP address. In the example, a “DHCP” configuration has been selected.
Once you have made your selections, click “OK”. Now select “Edit DNS Configuration”.
FAN - Network Interface Parameters

Configuring DNS and Hostname Parameters

From this menu you can supply a hostname for your system and specify which DNS servers to use for name resolution. Now click on “OK”. You will now be taken to a command line where you can login with your “root” account”. Once you have logged in, I normally carry out a reboot of the system to make sure the hostname is picked up and the IP address is also picked up.
To reboot from the command line, simply issue the following reboot command: shutdown -r now
FAN - Network Interface Parameters

Login Screen

If all has gone well, you should now see a screen similar to the one below. Now you can login with your root password.
FAN - Root Login Screen

Determine IP Address

If you are using DHCP, you will need to find your IP address that has been allocated. To do this you can issue the command:
ip a s
This command will display your IP address, you may also have used the “ifconfig” command.
In this example, we have been given the IP address of ““. It is this IP address that we need to enter into a web browser.
FAN - Display IP address command

Display FAN – Home page

Once you have identified your IP address, this can now be entered into a web browser of your choice. In the example, I am using Mozilla Firefox, however, you can use any modern browser to access your configuration screens.
FAN - Display IP address command
Now we can look at configuring some basic monitoring using Centreon in next article.

Dlightdaily : “ Post your valuable comments below to know more for nagios / fully automated nagios “ !

Opensource Network Monitoring 0



What  is  Nagios ?

Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.

First launched in 1999.

Nagios is officially sponsored by Nagios Enterprises

Nagios monitors your entire IT infrastructure to ensure systems, applications, services, and business processes are functioning properly.

In the event of a failure, Nagios can alert technical staff of the problem, allowing them to begin remediation processes before outages affect business processes, end-users, or customers



Nagios Features & Capabilities


  1. Comprehensive Monitoring

  2. Problem Remediation

  3. Reporting

  4. Extendable Architecture

  5. Vibrant Community

  6. Visibility & Awareness

  7. Proactive Planning

  8. Multi-Tenant Capabilities

  9. Stable, Reliable, and Respected Platform

  10. Customizable Code




Capabilities to monitor applications, services, operating systems, network protocols, system metrics and infrastructure components with a single tool.

Event handlers allow automatic restart of failed applications and services.

Availability reports ensure SLAs are being met.

Hundreds of community-developed addons extend core Nagios functionality.

Over 1 million+ users worldwide.

Active community mailing lists provide free support.

Over 10 years of active development.

Scales to monitor thousands of nodes.

Failover capabilities ensure non-stop monitoring of critical IT infrastructure components.

Free Open Source Monitoring Software.

Full access to source code.

Released under the GPL license

Hundreds of community-developed addons(Nagios-plugins) extend Nagios’ core functionality.

Centralized view of entire monitored IT infrastructure.

Detailed status information available through web interface.

Fast detection of infrastructure outages.

Alerts can be delivered to technical staff via email or SMS.

Escalation capabilities ensure alert notifications reach the right people.

Scheduled downtime allows for alert suppression during infrastructure upgrades.

Multi-user access to web interface allows stake holders to view infrastructure status.

User-specific views ensures clients see only their infrastructure components.

Fully Automated Nagios: System Requirements
Configure Distributed Monitoring IN Fully Automated Nagios
Fully Automated Nagios Add Host Using Web Console
Fully Automated Nagios Inatallation Guide Step By Step
Fully Automated Nagios: Host and service config issue
Command To Update Fully Automated Nagios
How To Backup and Restore Fully Automated Nagios(FAN Nagios) with Configuration and All
How To Change Default Password For Fully Automated Nagios(FAN Nagios) Web Interface
Fully Automated Nagios Installation and Configuration Step By Step
Fully Automated Nagios ISO Download


Configure Distributed Monitoring IN Fully Automated Nagios 1


This feature is available since FAN 2.1. A distributed architecture is based on  :

  • 1 central monitoring servers
  • 1 database server
  • and several pollers monitors.

The central server consolidates all monitoring data and offers a user interface which also offers the possibility to monitor and manage the central server and the poller monitors.

The poller monitors send their check results to the database server. This type of setup permits distribution of checks – for any type of reason f.e. remote locations, DMZ, etc.

You need install minimun 2 FAN servers :

  • fan-database
  • fan-central, it may also be considered as fan-poller

But, we recommend to install 3 FAN servers :

  • fan-database
  • fan-central
  • fan-poller

Fully Automated Nagios Distributed Monitoring Configuration

Boot your image from CD or Boot from ISO Image (Download Fully Automated Nagios ISO)

Install Fan Central

To install FAN central

select : fan-central

To install FAN poller

select: fan-poller

To install FAN database

select: fan-database


Permit root login by ssh

We need to temporarily allow root to login via ssh on fan poller and database.

Connect to fan-poller and modify this file /etc/ssh/sshd_config

PermitRootLogin yes

Restart sshd service

# service sshd restart

Make the same operation on fan-database.

Configure FAN central

Connect to fan-central and run system-config-distributed-monitoring script

First configure acces fan-central to fan-database and answer questions

# system-config-distributed-monitoring
Choose an action to do (addpoller or configdatabase):configdatabase
Give me the IP address of database server :
Give me the root password of database server :
What's the IP address of fan-central (default :[enter] <== Modify if necessary
[INFO] You must enable root user to login by ssh to database server "" by ssh.
If this is not the case, edit /etc/ssh/sshd_config on database server and add "PermitRootLogin yes"
Do you want continu ? [y/n], default to [n]:y
Stopping ndo2db: done.
Starting ndo2db: done.
Stopping Centcore
Waiting for centcore to exit . done.
Starting Centcore
Stopping centreon data collector Collector : centstorage
Waiting for centstorage to exit . done.
Starting centstorage Collector : centstorage

Check Centreon on fan-central :

  • Connect to http://fan-central/centreon/
  • and try to login to nagiosadmin/nagiosadmin

Second add poller fan-poller into fan-central

# system-config-distributed-monitoring Choose an action to do (addpoller or configdatabase):addpoller
Give me the new Poller Name ? (no space) :fan-poller <== Add a description
Give me the IP address of "fan-poller" : <== Add the ip address
Give me the root password of "fan-poller" :
What's the IP address of fan-central (default :[enter] <== Modify if necessary
[INFO] You must enable root user to login by ssh to "fan-poller" by ssh.
If this is not the case, edit /etc/ssh/sshd_config on "fan-poller" and add "PermitRootLogin yes"
Do you want continu ? [y/n], default to [n]:y
Check if nagios user has a ssh key
Nagios user has a ssh key
Create a random password for nagios user on "fan-poller"
Copy ssh key to poller "fan-poller"
Add configuration poller in to centreon database
Stopping Centcore
Waiting for centcore to exit . done.
Starting Centcore

Disable root login by ssh

Connect to fan-poller and modify this file /etc/ssh/sshd_config

PermitRootLogin no

Restart sshd service

# service sshd restart

Make the same operation on fan-database.

Add a new poller

If you want to add a new poller :

  • Install a FAN poller
  • Permit root login by ssh
  • Run configure_distributed_monitoring script
# system-config-distributed-monitoring addpoller
  • Disable root login

On centreon 2.4.X, you may need to configure resources. Go to Configuration>Monitoring Engines>resources

Modify resources and link it on your poller.


Delete a poller

If you want to delete a poller,

Go to Centreon webui.

  • Delete Administration>Configuration>Nagios>NagiosCFG
  • Delete Administration>Configuration>Centreon>Ndomod
  • Delete Administration>Configuration>Centreon>Pollers

Go to Nagvis and delete the backend for the poller.

Manage snmp trap by on poller

Note: This feature is NOT available and stable into Centreon 2.1.13.


Fully Automated Nagios: System Requirements 0

fully automated nagios system requirements

minimum/recommended system requirements

Before you start to install and configure fan nagios , you should be aware about minimum/recommonded system requirement for fully automated nagios.

nagios system requirements




You can install FAN on VMware ESX 3.5 or vSphere 4.1, but it is not recommended for large perimeters (1000 hosts and 5000 services for example). However we recommend using one vCPU.

Reference: fan nagios website

Fully Automated Nagios Add Host Using Web Console 2

Fully Automated Nagios
Fully Automated Nagios Monitoring platform is ready now to monitor your first servers or network equipment . It is simple to start monitoring.
First Step : Need to Login into Centreon Web Console With Administrative Credentials.
For Example: 
                      Username  : nagios
                      Password   : nagios
Fully Automated Nagios

Figure: Fully Automated Nagios

Go to the Configuration > Hosts 

Fully Automated Nagios Add Host

                                                         Figure: Fully Automated Nagios Add Host


 >Go to  Hosts menu and click on Add button:
                         Fully Automated Nagios Add Host

Figure :   Fully Automated Nagios Add Host


Host Configuration :

 Fully Automated Nagios Add Host

Figure : Fully Automated Nagios Add Host

Compulsory Field:
Host Name:
IP Address:
Host Check Properties :
Define , Check Period,Check Command and Args (Arguments)
Check period you can choose 24×7 or whatever your workinghours.
In check command field you can choose whatever you need to check or monitor for that host.
Like CPU Command for Monitoring CPU Utilization
Memory Command for RAM/Memory Utilization and same like for Disk Utilization.
I will give you example below to understand clearly.
If you want to monitor CPU utilization of
IP Address: X.X.X.X
Check Period: 24×7
Check Command: Check_Centreon_CPU ( To understand command definition go through below definition)
(Definition below is only for understanding purpose)
Note: All arguments are not compulsory
Fully Automated Nagios Add Host

Figure : Fully Automated Nagios Add Host


Args: !1!$USER2$!80!90 (Default Value, It shows -w for warning level=80 and -c for critical level=90


Fully Automated Nagios Add Host

Figure : Fully Automated Nagios Add Host


By default Active Check Enabled.
In case of some scenario if you want to disable Active Check then you can choose = No
Passive check by default = Disabled,
You can enable it if require, If passive check is disabled
then you can not submit result manually.
Notification Enabled : Select Default
( By default notification is enabled)
Linked Contacts : Define one linked contacts ,
For example ” supervisor “
Notification Interval :
You say “0” x 60 Seconds
Notification Period : 24×7
Notification Options : Select as per your requirement
[ √ ]Down  [ √ ]Unreachable   [ √ ]Recovery   [ √ ]Flapping   [ √ ]Downtime Scheduled
First Notification Delay :
You can Select “0” x 60 Seconds
Basic configuration is over. By providing this much of information you can monitor your object.
Let’s move to more advance configuration.
Now Second Tab : Relation
In this section there is a four options,
1.Parent Host Groups
2.Parent Host Categories
3.Parent Host
4.Child Host
You can define any or all as per your requirement
you can configure value in 3rd and 4th Tab as per your requirement or choose default values.