Nagios installation example (VM image)(depreciated)
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:
Nagios 3.5.1 with configuration files |
---|
VirtualBox program https://www.virtualbox.org/ v. 4.3.8 r92456 is used to start the virtual machine
Starting
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
After installing the distributive, a virtual machine .ova must be imported in VirtualBox.
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.
Next, start the virtual machine.
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.
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:
$ ifconfig eth0
Obtained IP addresses can be used to connect to the Nagios web interface. Enter this address into your browser. If the network is properly configured, the authorization form appears in your web browser. Account to login is standard for Nagios: nagiosadmin/nagiosadmin
A typical form of Nagios interface:To turn off the virtual machine use the following command
$ 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.
Sending e-mail notifications carried out by MTA Postfix http://www.postfix.org/
To send notifications, you must edit the e-mail address in the Nagios settings file objects/contacts.cfg:
objects/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 ******
}
Settings for Vutlan master units are in /etc/nagios/objects/schosts.cfg file
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 Contribute → Administration in the left panel of the Nagios interface. The current account to log in for Nagios interface is: nagiosadmin/nagiosadmin
Learn more about working with Nagios: http://library.nagios.com/library/products/nagioscore/manuals/