Versions Compared

Key

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

VM image in an open format .ova with the operating system CentOS 6.5 and Nagios 3.5.1, configured for integration with Vutlan equipment, you can download on the ftp:

Image Modified

Nagios 3.5.1 with configuration files

CentOS-6.5-i386-nagios3.ova

VirtualBox programm program https://www.virtualbox.org/ v. 4.3.8 r92456 is used to start the virtual machine

Starting

  1. To run the virtual machine under Windows, you must download and install: http://download.virtualbox.org/virtualbox/4.3.10/VirtualBox-4.3.10-93012-Win.exe

  2. After installing the distributive, a virtual machine .ova must be imported

...

  1. in VirtualBox.

  2. Before starting the virtual machine, check the network settings. Type of connection of the network adapter: "Network Bridge". In this case, the IP address of the virtual machine must be issued dynamically.

  3. Next, start the virtual machine.

  4. After downloading CentOS Linux prompts the console. Accounts login: user / guest, root / guest. Work under the root is not recommended. System management is also possible via SSH.

  5. Next, you need to find out the current IP address of the NIC of the virtual machine from the DHCP server, or directly through the virtual machine console with a command:

    Code Block
    languagetext
    $ ifconfig eth0


  6. Obtained IP

...

  1. addresses can be used to connect to the Nagios web interface. Enter this address into your browser. If the network is properly configured,

...

  1.  the authorization form appears

...

  1. in your web browser. Account to login is standard for Nagios: nagiosadmin/nagiosadmin

    A typical form of Nagios interface:

    Image Modified
  2. To turn off the virtual machine use the following command

    Code Block
    languagetext
    $ sudo halt

Virtual machine possibilities

To enhance the Nagios system possibilities it is also installed the following packages:

  • Net-SNMP - designed to work with SNMP PDU;

  • pnp4nagios - display graphs for monitoring data;

  • SNMPTT -  SNMP Trap PDU data translator;

  • check_vutlan.pl - vutlan sensor plugin; 

  • submit_check_result - SNMP Trap PDU passive check script;

  • skycontrolsms.sh- script to send SMS through GSM modem for versions up to 2.3.3 Interface;

  • vutlansms_v2.sh - script to send SMS through GSM modem for versions of the interface 2.4.0 and higher.

Allocation of resources in the Nagios system file:

  • settings: /etc/nagios;

  • resources (web interface, etc.): /usr/share/nagios

  • plugins: /usr/lib/nagios/plugins

Allocation of configuration files in version controlled via configuration files is standard for Nagios distributive.

...

To send notifications, you must edit the e-mail address in the Nagios settings file objects/contacts.cfg:

objects/contacts.cfg
Code Block
title
languagetextobjects/contacts.cfg
define contact{
        contact_name                    nagiosadmin             ; Short name of user
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
        alias                           Nagios Admin            ; Full name of user
        email                           nagios@localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
        pager                           +329999999999           ; <<***** CHANGE THIS TO YOUR PHONE NUMBER ******
}

...

To manage configuration files through the web interface is possible in a version with pre-installed NagiosQL. Switch to administration is possible through the menu Contibute->Administation in menu Contribute → Administration in the left panel of the Nagios interface. The current account to login log in for Nagios interface is: nagiosadmin/nagiosadmin

...