Setup Icinga Monitoring Tool on CentOS 7 / RHEL 7
Icinga is an open source computer system and network monitoring application. It was originally created as a fork of the Nagios system monitoring application in 2009.
Icinga is attempting to get past perceived short-comings in Nagios' development process, as well as adding new features such as a modern Web 2.0 style user interface, additional database connectors (for MySQL, Oracle, and PostgreSQL), and a REST API that lets administrators integrate numerous extensions without complicated modification of the Icinga core.
Before we go ahead, lets install the required packages for Icinga.
Disable SELinux.
Reboot once done.
Create icinga user and icinga-cmd group (allowing the external commands to be executed through the web interface) , add icinga and apache user to the part of icinga-cmd group.
Download latest Icinga source tarball.
Compile and Install Icinga:
Configure Icinga:
Sample configuration files have now been installed in the /usr/local/icinga/etc/ directory. These sample files should work fine for getting started with Icinga. You’ll need to make just one change before you proceed. Edit the /usr/local/icinga/etc/objects/contacts.cfg config file with your favorite editor and change the email address associated with the nagiosadmin contact definition to the address you’d like to use for receiving alerts.
Change the Email address field to receive the notification.
to
Move sample idoutils configuration files to Icinga base directory.
Create database for idoutils:
Configure Web Interface:
Create a icingaadmin account for logging into the Icinga web interface. Remember the password that you assign to this user – you’ll need it later.
Restart Apache to make the new settings take effect.
Download and Install Nagios Plugins:
Download Nagios Plugins to /tmp directory.
Compile and install the plugins.
Starting Icinga:
Verify the sample Icinga configuration files.
If there are no errors, start Nagios and Idoutils.
Start Icinga and Idoutils on system startup.
Access Web Interface:
Now access Icinga web interface using the following URL. You'll be prompted for the username (icingaadmin) and password you specified earlier.
www.hackthesec.co.in
Icinga is an open source computer system and network monitoring application. It was originally created as a fork of the Nagios system monitoring application in 2009.
Icinga is attempting to get past perceived short-comings in Nagios' development process, as well as adding new features such as a modern Web 2.0 style user interface, additional database connectors (for MySQL, Oracle, and PostgreSQL), and a REST API that lets administrators integrate numerous extensions without complicated modification of the Icinga core.
Before we go ahead, lets install the required packages for Icinga.
Disable SELinux.
Reboot once done.
Create icinga user and icinga-cmd group (allowing the external commands to be executed through the web interface) , add icinga and apache user to the part of icinga-cmd group.
Download latest Icinga source tarball.
Compile and Install Icinga:
Configure Icinga:
Sample configuration files have now been installed in the /usr/local/icinga/etc/ directory. These sample files should work fine for getting started with Icinga. You’ll need to make just one change before you proceed. Edit the /usr/local/icinga/etc/objects/contacts.cfg config file with your favorite editor and change the email address associated with the nagiosadmin contact definition to the address you’d like to use for receiving alerts.
Change the Email address field to receive the notification.
to
Move sample idoutils configuration files to Icinga base directory.
Create database for idoutils:
# systemctl start mariadb.service
# mysql -u root -p
MariaDB [(none)]> CREATE DATABASE icinga;
MariaDB [(none)]> GRANT USAGE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> quit
Import Database.Configure Web Interface:
Create a icingaadmin account for logging into the Icinga web interface. Remember the password that you assign to this user – you’ll need it later.
Restart Apache to make the new settings take effect.
Download and Install Nagios Plugins:
Download Nagios Plugins to /tmp directory.
Compile and install the plugins.
Starting Icinga:
Verify the sample Icinga configuration files.
If there are no errors, start Nagios and Idoutils.
Start Icinga and Idoutils on system startup.
Access Web Interface:
Now access Icinga web interface using the following URL. You'll be prompted for the username (icingaadmin) and password you specified earlier.
www.hackthesec.co.in
Great material, Thanks a lot.
ReplyDeleteThese are really great ideas in about blogging.
ReplyDeleteYou have touched some good points here. Any way keep
up wrinting.
I am truly grateful to the owner of this web page who has shared this fantastic post at at this
ReplyDeletetime.
It's going to be end of mine day, however before
ReplyDeleteend I am reading this great article to improve my knowledge.
Your method of telling everything in this piece of writing is in fact fastidious, all be capable of effortlessly be
ReplyDeleteaware of it, Thanks a lot.