icinga monitoring tool

We will go over the installation of Icinga, an open source monitoring system. Icinga is quite powerful and flexible and although you can see the first results in less than 30 minutes, this is just the beginning of your journey into system monitoring. Configuring it to your needs can take a lot of work depending on the number of things to be monitored and the complexity of your environment. Once you become familiar with how it works and what it can do for you, you’ll never want to be without it.
Monitoring of network services (SMTP, POP3, HTTP, NNTP, ping, etc.)
Monitoring of host resources (CPU load, disk usage, etc.)
Monitoring of server components (switches, routers, temperature and humidity sensors, etc.)
Simple plug-in design that allows users to easily develop their own service checks,
Parallelized service checks.
Ability to define network host hierarchy using “parent” hosts, allowing detection of and distinction between hosts that are down and those that are unreachable.
Ability to define event handlers to be run during service or host events for proactive problem resolution.
Notification of contact persons when service or host problems occur and get resolved (via email, pager, or user-defined method).
Escalation of alerts to other users or communication channels.
Two optional user interfaces (Icinga Classic UI and Icinga Web) for visualization of host and service status, network maps, reports, logs, etc.
Icinga Reporting module based on open source Jasper Reports for both Icinga Classic and Icinga Web user interfaces
Capacity utilization reporting.
Performance graphing via add-ons such as PNP4Nagios, NagiosGrapher and InGraph.
We will go over the installation of Icinga, an open source monitoring system
Install epel repo
yum install -y epel-release
Installing Icinga
enable the add-repository feature and add the repository for Icinga with the below commands:
rpm –import http://packages.icinga.org/icinga.key
wget http://packages.icinga.org/epel/ICINGA-release.repo -O /etc/yum.repos.d/ICINGA-release.repo
yum makecache
Icinga 2 Installation
yum install icinga2
Make sure the service is up and running fine
systemctl status icinga2.service
systemctl enable icinga2.service
systemctl start icinga2.service
Default, Icinga2 enables the following features. But we can confirm the enabled settings by running this command as below:
icinga2 feature list
Installing Icinga2 plugin: Icinga2 will collect the service information based on the monitoring plugins. So, we need to install nagios plugin using below command:
yum install nagios-plugins-all
you need to install the IDO module which is crucial for the Icinga 2 web interface. It will export all configuration and status information into its database. Execute the following command:
yum install icinga2-ido-mysql
restart Icinga service
systemctl restart icinga2.service
Configure the MySQL database for Icinga.
mysql -u root -p
MariaDB [(none)]> CREATE DATABASE icinga;
MariaDB [(none)]> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO ‘icinga’@’localhost’ IDENTIFIED BY ‘icinga’;
MariaDB [(none)]> exit
Importing the Icinga 2 IDO schema into database
mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
Enabling the IDO MySQL module
icinga2 feature enable ido-mysql
For Systemd systems
systemctl restart icinga2.service
Installing Icinga Web: icinga2 feature enable command
systemctl restart icinga2.service
Before you can send commands to Icinga 2 using a web interface, you need to add the “apache” user to the icingacmd group
usermod -a -G icingacmd apache
we can install the Web interface plugin and configure it one by one
yum install icingaweb2 icingacli
Generate authentication token for later use in the web interface
icingacli setup token create
The newly generated setup token is: 1826XXXXXXXXXXXX
icingacli setup token show
Accessing Icinga
Icinga will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://www.neyash.com/icingaweb2/setup or and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Be the first to comment

Leave a Reply

Your email address will not be published.