Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


This article is also available in the following languages: 
 
Child pages (Children Display)
Infrastructure monitoring programmprogram is preloaded with NMS Nagios plugins check for master modules and is provided as a virtual machine image in an open format ova 
The virtual machine image with the operating system CentOS 6.5 system and Nagios 3.5.1 is available:

Nagios 3.5.1 with control via a web interface (NagiosQL)


CentOS-6.5-i386-nagios3_091.ova
CentOS-6.5-i386-nagios3_091.md5

To deploy the system used the program VirtualBox https://www.virtualbox.org/ version 4.3.8 r92456

 

The composition of a virtual machine image

Nagios to empower the system also installed the following packages:

Nagios resources allocating  at file system:

  • settings: /etc/nagios (defined by the requirements package NagiosQL.);
  • resources: (web interface etc): /usr/share/nagios
  • plugins: /usr/lib/nagios/plugins
 

Procedure to start a virtual machine image

  1. To start a virtual machine under Windows, you must download and install it: http://download.virtualbox.org/virtualbox/4.3.10/VirtualBox-4.3.10-93012-Win.exe
  2. After installing the distribution must import a virtual machineova в VirtualBox by command File->Import appliance(Ctrl+I)
  3. Before starting the virtual machine, you must check the network settingsSettings->Network->Adaper1. Connection type Attached to for network adapter: "Bridget adapter" ("Сетевой мост"). The IP address for the virtual machine must be setup set up dynamically.
  4. Next, run a virtual machine Machine->Start or the corresponding icon.
  5. After loading CentOS Linux will prompt the console. Accounts to login: user / guest, root / guest Working under the 'root' user is not recommendedSystem control is also possible via SSH.
  6.  Next, you need to find out the current IP address of the network adapter on the DHCP virtual machine servereither directly through the virtual machine console command:
    Code Block
    languagetext
    $ ifconfig eth0

    where $ - shell prompt

  7. The resulting IP address can be used to connect to the web interface of Nagios. To do this, you must enter this address into your browserIf the network is properly configured in the Web browser appears authorization formAccount login for standard Nagios: nagiosadmin / nagiosadmin 

    Approximate form interface Nagios:

  8. For a normal shutdown of the virtual machine using the following commandThe centralized monitoring system will be halted.

    Code Block
    languagetext
    $ sudo halt


 

Manage centralized monitoring system

  1. To manage configuration files Nagios must switch to administration via the menu item Contibute-> Administation in the left panel web interface Nagios. Current account login is the same as for the web interface Nagios: nagiosadmin / nagiosadmin
  2. Management hosts available through Supervision-> Host:

     
    When you add a host record for the VUTLAN master modules, it can be placed in a group of hosts sc-hosts. The group sc-hosts are already bound services: 
    1) PING - check service availability of the host
    2) UPTIME - time service in the ON state
    3) VUTLAN Table of Elements Service - service to check the table of elements master module
    4) Trap1 - processing service ladder named Trap1;

  3. Management services available through Supervision-> Services

    Service settings and connection to the host (host groupperformed in service propertiesThe figure shows the connection of the validator element to the host test190 (list of hosts) through the ID of the element (-i 1002with the community SNMP (-C read) (sm.pole $ ARG1 $)
  4. Manage Alerts available through Alerting

    Add / Edit the current range are is available  through contact Alerting-> Contact data In the E-Mail addressAddress must specify the address of the administrator NMS

    Transmission of notification  provided MTA Postfix. Configuring Postfix is beyond the scope of this description.
  5. For notify by internal GSM modem module setup options for  notify-host-by-sms and notify-service-by-sms  command:


    change IP or hostname master-module with GSM modem by option '-H' and change password for this master module by option '-p'
    Select pager number by contact editing form as bellow:
  6. To apply the current configuration, you must perform its verification Tools->Nagios control->Check configuration files->Do It
    Then restart Nagios service by the command Tools->Nagios control->Restart Nagios->Do It


Using the centralized monitoring system

 
Monitoring data available through the web interface Nagios.

To access the hosts as necessary to use Current Status->Hosts
To access the serviceyou want to use as Current Status->Services
Example state of services on the host is shown in Figure

 
Host column contains the host name and host control buttons via a web interface (the icon of the document) and display performance data as graphs (graph icon
Service column contains the current state of the host. In Nagios, the following condition:
  • PENDING - object has not yet been questioned;
  • UNKNOWN - state of the object is not defined;
  • OK - object in the normal state;
  • WARNING - warning, the object in a state close to the critical;
  • CRITICAL - to in a critical state;

Status Information column contains a text description of the service.

 
Learn more about working with Nagios in the official documentationhttp://library.nagios.com/library/products/nagioscore/manuals/