<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Icinga%3A_UBUNTU_20.04_instalsi_Icinga2</id>
	<title>Icinga: UBUNTU 20.04 instalsi Icinga2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Icinga%3A_UBUNTU_20.04_instalsi_Icinga2"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Icinga:_UBUNTU_20.04_instalsi_Icinga2&amp;action=history"/>
	<updated>2026-04-20T16:13:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Icinga:_UBUNTU_20.04_instalsi_Icinga2&amp;diff=61513&amp;oldid=prev</id>
		<title>Onnowpurbo: /* Pranala Menarik */</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Icinga:_UBUNTU_20.04_instalsi_Icinga2&amp;diff=61513&amp;oldid=prev"/>
		<updated>2020-05-11T06:32:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Pranala Menarik&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:32, 11 May 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l207&quot;&gt;Line 207:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 207:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Icinga]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Icinga]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[SNMP]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Icinga:_UBUNTU_20.04_instalsi_Icinga2&amp;diff=61512&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: https://computingforgeeks.com/how-to-install-icinga2-monitoring-tool-on-ubuntu-18-04-lts/    Icinga 2 is an open source, scalable and extensible monitoring tool which...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Icinga:_UBUNTU_20.04_instalsi_Icinga2&amp;diff=61512&amp;oldid=prev"/>
		<updated>2020-05-11T06:09:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: https://computingforgeeks.com/how-to-install-icinga2-monitoring-tool-on-ubuntu-18-04-lts/    Icinga 2 is an open source, scalable and extensible monitoring tool which...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: https://computingforgeeks.com/how-to-install-icinga2-monitoring-tool-on-ubuntu-18-04-lts/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Icinga 2 is an open source, scalable and extensible monitoring tool which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting. Icinga 2 can monitor large, complex environments across multiple locations and has a web interface called Icinga Web 2&lt;br /&gt;
&lt;br /&gt;
With Icinga 2  you can monitor:&lt;br /&gt;
&lt;br /&gt;
    Server resources – RAM usage, CPU load, disk usage&lt;br /&gt;
    Network services –  HTTP, HTTPS, SMTP, IMAP, POP3, NNTP, ping e.t.c&lt;br /&gt;
    Network devices – Routers and switches&lt;br /&gt;
&lt;br /&gt;
Features of Icinga 2&lt;br /&gt;
&lt;br /&gt;
These are the top features which Icinga 2 provides:&lt;br /&gt;
&lt;br /&gt;
    Performance-oriented: Icinga 2 has a multithreaded design, it can run thousands of checks each second without any sign of CPU strain.&lt;br /&gt;
    Distributed Architecture: IFor large and complex environments do a distributed setup with high availability.&lt;br /&gt;
    REST API: Icinga 2 provides a RESTful API which enables you to update your configurations on the fly or show live information about current problems on your custom dashboards.&lt;br /&gt;
    Rule-based Configuration: Monitoring as code with dynamic configurations. Apply rules to hosts and services to create a continuous monitoring environment.&lt;br /&gt;
    Alerting: You get instant notifications when problems occur via email, text message or mobile message applications.&lt;br /&gt;
    Icinga 2 has native support for  Graphite and InfluxDB. You can easily send performance data gathered directly to the third party tools.&lt;br /&gt;
    Icinga 2 supportNagiosGrapher, PNP4Nagios, and InGraph addons&lt;br /&gt;
&lt;br /&gt;
Install Icinga2 on Ubuntu 18.04 LTS&lt;br /&gt;
&lt;br /&gt;
With the introduction and features covered, let’s start the actual installation of  Icinga2 on Ubuntu 18.04 LTS server.&lt;br /&gt;
Step 1: Update your system&lt;br /&gt;
&lt;br /&gt;
Run the commands below to update your system and get the latest packages&lt;br /&gt;
&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
sudo reboot&lt;br /&gt;
&lt;br /&gt;
Step 2: Install Apache and PHP&lt;br /&gt;
&lt;br /&gt;
Icinga 2 needs a web server and PHP installed on the hosting server. Run below commands to have everything setup.&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install php php-{xml,cli,opcache,gd,intl,readline,mysql,curl,mbstring,ldap,json}&lt;br /&gt;
&lt;br /&gt;
Install apache2 and libapache2-mod-php module.&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php&lt;br /&gt;
&lt;br /&gt;
Configure php timezone&lt;br /&gt;
&lt;br /&gt;
$ sudo vim /etc/php/7.2/apache2/php.ini&lt;br /&gt;
date.timezone = Africa/Nairobi&lt;br /&gt;
&lt;br /&gt;
Restart apache2 service&lt;br /&gt;
&lt;br /&gt;
sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
Step 3: Install and Configure the MariaDB database server&lt;br /&gt;
&lt;br /&gt;
Install MariaDB database on your Ubuntu 18.04 server using the link:&lt;br /&gt;
&lt;br /&gt;
Install MariaDB 10.3 on Ubuntu 18.04 and CentOS 7&lt;br /&gt;
&lt;br /&gt;
Once done with the installation, log in to the database as root user and create database and user.&lt;br /&gt;
&lt;br /&gt;
$ mysql -u root -p&lt;br /&gt;
&lt;br /&gt;
Create a database and user&lt;br /&gt;
&lt;br /&gt;
CREATE DATABASE icinga2_db;&lt;br /&gt;
GRANT ALL PRIVILEGES on icinga2_db.* to &amp;#039;icinga2_user&amp;#039;@&amp;#039;localhost&amp;#039; identified by &amp;#039;StrongPassword&amp;#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
quit&lt;br /&gt;
&lt;br /&gt;
Also, do the same for Icinga web 2.&lt;br /&gt;
&lt;br /&gt;
CREATE DATABASE icingaweb2_db;&lt;br /&gt;
GRANT ALL PRIVILEGES on icingaweb2_db.* to &amp;#039;icingaweb2_user&amp;#039;@&amp;#039;localhost&amp;#039; identified by &amp;#039;StrongPassword&amp;#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
&lt;br /&gt;
Step 4: Install Icinga2 and Icinga Web 2&lt;br /&gt;
&lt;br /&gt;
Start by importing repo GPG key:&lt;br /&gt;
&lt;br /&gt;
curl -sSL https://packages.icinga.com/icinga.key | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
Add apt repository&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;deb https://packages.icinga.com/ubuntu icinga-bionic main&amp;quot; | sudo tee /etc/apt/sources.list.d/icinga.list&lt;br /&gt;
&lt;br /&gt;
Run update of package list and install Icinga2 packages&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install icinga2 icingaweb2 icinga2-ido-mysql&lt;br /&gt;
&lt;br /&gt;
Answer yes when asked whether Icinga 2 should use MySQL&lt;br /&gt;
&lt;br /&gt;
Enable Icinga 2&amp;#039;s ido-mysql feature? YES&lt;br /&gt;
Configure database for icinga2-ido-mysql with dbconfig-common? NO&lt;br /&gt;
&lt;br /&gt;
Configure Icinga 2 Backend&lt;br /&gt;
&lt;br /&gt;
When done, enable ido-mysql and command features.&lt;br /&gt;
&lt;br /&gt;
sudo icinga2 feature enable command  ido-mysql&lt;br /&gt;
&lt;br /&gt;
Then restart icinga2 after making the change&lt;br /&gt;
&lt;br /&gt;
sudo systemctl restart icinga2.service&lt;br /&gt;
&lt;br /&gt;
Import database schema:&lt;br /&gt;
&lt;br /&gt;
mysql -u root icinga2_db -p &amp;lt; /usr/share/icinga2-ido-mysql/schema/mysql.sql&lt;br /&gt;
&lt;br /&gt;
Configure Icinga2 MySQL IDO with created database and user account&lt;br /&gt;
&lt;br /&gt;
sudo vim /etc/icinga2/features-enabled/ido-mysql.conf&lt;br /&gt;
&lt;br /&gt;
Make changes like below:&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * The db_ido_mysql library implements IDO functionality&lt;br /&gt;
 * for MySQL.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
library &amp;quot;db_ido_mysql&amp;quot;&lt;br /&gt;
&lt;br /&gt;
object IdoMysqlConnection &amp;quot;ido-mysql&amp;quot; {&lt;br /&gt;
  user = &amp;quot;icinga2_user&amp;quot;,&lt;br /&gt;
  password = &amp;quot;StrongPassword&amp;quot;,&lt;br /&gt;
  host = &amp;quot;localhost&amp;quot;,&lt;br /&gt;
  database = &amp;quot;icinga2_db&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Restart icinga2 service after saving the changes&lt;br /&gt;
&lt;br /&gt;
sudo systemctl restart icinga2&lt;br /&gt;
&lt;br /&gt;
Configure Icinga2 on Web Interface&lt;br /&gt;
&lt;br /&gt;
You need to create a setup token for use on web configuration&lt;br /&gt;
&lt;br /&gt;
$ sudo icingacli setup token create&lt;br /&gt;
The newly generated setup token is: 75e269c261a15615&lt;br /&gt;
&lt;br /&gt;
Take note of the given token ID. On your web browser, open and the URL:&lt;br /&gt;
&lt;br /&gt;
http://serverdomain/icingaweb2 or http://server-ip-address/icingaweb2&lt;br /&gt;
&lt;br /&gt;
This should take you to configuration wizard page&lt;br /&gt;
&lt;br /&gt;
    Provide generated token ID and click Next. &lt;br /&gt;
    On the next page, select modules you want to enable and click Next.&lt;br /&gt;
    The next page will do a check if all PHP modules are installed.&lt;br /&gt;
    On the next page, select Authentication type, the default is MySQL&lt;br /&gt;
    Provide MySQL database settings&lt;br /&gt;
&lt;br /&gt;
    On Monitoring IDO Resource page, provide Icinga2 database settings configured earlier&lt;br /&gt;
    Please define below how you want to send commands to your monitoring instance.&lt;br /&gt;
&lt;br /&gt;
    Configure Monitoring Security&lt;br /&gt;
    Configure admin user&lt;br /&gt;
&lt;br /&gt;
g&lt;br /&gt;
&lt;br /&gt;
    Finish the setup to get the Login page. Enter admin account username and password created earlier.&lt;br /&gt;
&lt;br /&gt;
Configure Icinga 2 master node&lt;br /&gt;
&lt;br /&gt;
# icinga2 node wizard&lt;br /&gt;
Welcome to the Icinga 2 Setup Wizard!&lt;br /&gt;
&lt;br /&gt;
We will guide you through all required configuration details.&lt;br /&gt;
&lt;br /&gt;
Please specify if this is a satellite/client setup (&amp;#039;n&amp;#039; installs a master setup) [Y/n]: n                                                            &lt;br /&gt;
&lt;br /&gt;
Starting the Master setup routine...&lt;br /&gt;
&lt;br /&gt;
Please specify the common name (CN) [ubuntu-01]: icinga2-master&lt;br /&gt;
Reconfiguring Icinga...&lt;br /&gt;
Checking for existing certificates for common name &amp;#039;icinga2-master&amp;#039;...&lt;br /&gt;
Certificates not yet generated. Running &amp;#039;api setup&amp;#039; now.&lt;br /&gt;
Generating master configuration for Icinga 2.&lt;br /&gt;
Enabling feature api. Make sure to restart Icinga 2 for these changes to take effect.                                                                &lt;br /&gt;
Please specify the API bind host/port (optional):&lt;br /&gt;
Bind Host []: 0.0.0.0&lt;br /&gt;
Bind Port []:&lt;br /&gt;
&lt;br /&gt;
Done.&lt;br /&gt;
&lt;br /&gt;
Now restart your Icinga 2 daemon to finish the installation!&lt;br /&gt;
&lt;br /&gt;
sudo systemctl restart icinga2.service&lt;br /&gt;
&lt;br /&gt;
To generate a ticket for the client on the master node, use syntax&lt;br /&gt;
&lt;br /&gt;
# icinga2 pki ticket --cn &amp;#039;clientname&amp;#039;&lt;br /&gt;
&lt;br /&gt;
In our next article, we will cover the configuration of Icinga 2 clients to be monitored.&lt;br /&gt;
You can support us by downloading this article as PDF from the Link below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://computingforgeeks.com/how-to-install-icinga2-monitoring-tool-on-ubuntu-18-04-lts/&lt;br /&gt;
&lt;br /&gt;
==Pranala Menarik==&lt;br /&gt;
&lt;br /&gt;
* [[Icinga]]&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>