Search This Blog

Saturday, November 23, 2013

Nagios/Icinga Installation and Initial Configuration

<data:blog.title/> <data:blog.pageName/>

Nagios / Icinga are the core packages of an entire platform.  This installation will include add-on packages -- IDOUtils for MySQL database support and Nagvis for visualization -- but the article will focus primarily on installing Icinga.

Icinga Web CGI


Icinga has a default web-based interface that is very similar to Nagios.  However, there are add-on packages -- icinga-web and icinga-cgi -- that require a database.  The illustration below shows the installation command on Debian Wheezy.  During the installation, a series of pop-up screens will provide configuration prompts.  The first step is to install and configure the Postfix mail server and MySQL database server.  After those are installed, add Icinga, Icinga-Web, Icinga-IDOUtils (for database support) and Nagios-NRPE / Nagios Service Check Acceptor for remote host checks.   The video below illustrates a command-line installation.



The applications are now installed and operational -- accessible at http://<servername>/icinga.  The default installation includes a basic configuration for "localhost" at the loopback address 127.0.0.1.  However, there are several tasks to complete before the monitoring systems are functional.

1) Enable External Commands
  • sed -i -e 's/check_external_commands=0/check_external_commands=1/' /etc/icinga/icinga.cfg
  • dpkg-statoverride --update --add nagios www-data 2710 /var/lib/icinga/rw
  • dpkg-statoverride --update --add nagios nagios 751 /var/lib/icinga
  • service icinga restart
2)  Enable IDO2DB Database Functionality
3)  Supply a working Nagios-NRPE configuration file
4)  Modify the php.ini file's timezone settings for the Icinga-Web Instance Monitoring to work correctly

Icinga's web interface to external commands will now work properly.  Thus, a basic Icinga installation is now operational.  The video below demonstrate's these steps and also includes an initialization of the system by restoring configuration files that describe the network.




Subsequent articles shall describe additional Nagios / Icinga features and their configuration.

No comments :

Post a Comment