<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nurul Abser on Medium]]></title>
        <description><![CDATA[Stories by Nurul Abser on Medium]]></description>
        <link>https://medium.com/@twit2abser?source=rss-b6784122ae92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MEeY3T9P3GghR1VgdYleLg.jpeg</url>
            <title>Stories by Nurul Abser on Medium</title>
            <link>https://medium.com/@twit2abser?source=rss-b6784122ae92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:38:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@twit2abser/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Icinga 2 Configuration: Add Host and Services]]></title>
            <link>https://medium.com/icinga-server-and-application-remote-monitoring/icinga-2-configuration-add-host-and-services-204a2062d5cb?source=rss-b6784122ae92------2</link>
            <guid isPermaLink="false">https://medium.com/p/204a2062d5cb</guid>
            <category><![CDATA[tomcat]]></category>
            <category><![CDATA[services]]></category>
            <category><![CDATA[host]]></category>
            <category><![CDATA[nagios]]></category>
            <category><![CDATA[icinga2]]></category>
            <dc:creator><![CDATA[Nurul Abser]]></dc:creator>
            <pubDate>Sat, 03 Jun 2017 15:36:12 GMT</pubDate>
            <atom:updated>2017-06-03T15:36:12.614Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Add Command:</strong></h4><p>Once we installed Nagios Plugins, we have many plugins available in /usr/local/nagios/plugins directory.</p><p>We will create a command based on those available plugins or we can create our own plugin. Create a command in commands.conf file.</p><p>See a sample command below.</p><p>// commands.conf</p><p>// Tomact Service check command</p><p>object CheckCommand &quot;Tomcat_App&quot; {</p><p><strong>import</strong> &quot;plugin-check-command&quot;</p><p>command = [PluginDir + &quot;/check_tcp&quot;]</p><p>arguments = {</p><p>&quot;-p&quot; = &quot;$tcp_port$&quot;</p><p>&quot;-H&quot; = &quot;$tcp_address$&quot;</p><p>}</p><p>}</p><h4>Create a Service:</h4><p>Now we can define a service associated to the command “Tomcat_App”</p><p>apply Service &quot;Tomcat_App&quot; {</p><p>check_command = &quot;Tomcat_App&quot;</p><p>assign where host.vars.app_type == &quot;Tomcat&quot;</p><p>}</p><h4>Add service to host:</h4><p>Add our desired host configuration inside the hosts.conf file. Below you see a sample host configuration.</p><p>object Host &quot;Server-1-Tomcat-Service&quot; {</p><p>// import host template. We created our custom template and not using generic host template</p><p><strong>// import</strong> &quot;generic-host&quot;</p><p><strong>import</strong> &quot;tomcat-server-host&quot;</p><p>// associated command</p><p>check_command = &quot;Tomcat_App&quot;</p><p>// host IPV4 address</p><p>address = &quot;13.228.28.25&quot;</p><p>// virtual host information</p><p>vars.http_vhosts[&quot;Tomcat app running on port 9080&quot;] = {</p><p>// applicatin port</p><p>http_port = 9080</p><p>// URI of the virtual host</p><p>http_uri = &quot;/elogadmin&quot;</p><p>}</p><p>// custome variables</p><p>vars.host_group = &quot;MyApp&quot;</p><p>vars.app_type = &quot;Tomcat&quot;</p><p>}</p><p>Now we have done our configuration to monitor an application running on tomcat server. Now you need to restart the Icinga2 server.</p><pre># service icinga2 restart</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=204a2062d5cb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/icinga-server-and-application-remote-monitoring/icinga-2-configuration-add-host-and-services-204a2062d5cb">Icinga 2 Configuration: Add Host and Services</a> was originally published in <a href="https://medium.com/icinga-server-and-application-remote-monitoring">Icinga Server and application remote monitoring without client installation.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Icinga2 Master]]></title>
            <link>https://medium.com/icinga-server-and-application-remote-monitoring/setup-icinga2-master-1d45c0c61cdc?source=rss-b6784122ae92------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d45c0c61cdc</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[icinga2]]></category>
            <category><![CDATA[node-wizard]]></category>
            <category><![CDATA[setup-master]]></category>
            <dc:creator><![CDATA[Nurul Abser]]></dc:creator>
            <pubDate>Sat, 03 Jun 2017 15:34:12 GMT</pubDate>
            <atom:updated>2017-06-03T15:34:12.334Z</atom:updated>
            <content:encoded><![CDATA[<p>icinga2 node wizard command lets you to setup Icinga2 master/client depends on your requirements.</p><p>In the below command execution, only answer the first question with “<strong>n</strong>” and for rest of the option just hit <strong>Enter</strong></p><pre># icinga2 node wizard<br>Welcome to the Icinga 2 Setup Wizard!</pre><pre>We&#39;ll guide you through all required configuration details.</pre><pre>Please specify if this is a satellite setup (&#39;n&#39; installs a master setup) [Y/n]: n<br>Starting the Master setup routine...<br>Please specify the common name (CN) [icinga2-master.local]: icinga2-master.local<br>Checking for existing certificates for common name &#39;icinga2-master.local&#39;...<br>Certificates not yet generated. Running &#39;api setup&#39; now.<br>information/cli: Generating new CA.<br>information/base: Writing private key to &#39;/var/lib/icinga2/ca/ca.key&#39;.<br>information/base: Writing X509 certificate to &#39;/var/lib/icinga2/ca/ca.crt&#39;.<br>information/cli: Generating new CSR in &#39;/etc/icinga2/pki/icinga2-master.local.csr&#39;.<br>information/base: Writing private key to &#39;/etc/icinga2/pki/icinga2-master.local.key&#39;.<br>information/base: Writing certificate signing request to &#39;/etc/icinga2/pki/icinga2-master.local.csr&#39;.<br>information/cli: Signing CSR with CA and writing certificate to &#39;/etc/icinga2/pki/icinga2-master.local.crt&#39;.<br>information/cli: Copying CA certificate to &#39;/etc/icinga2/pki/ca.crt&#39;.<br>Generating master configuration for Icinga 2.<br>information/cli: Adding new ApiUser &#39;root&#39; in &#39;/etc/icinga2/conf.d/api-users.conf&#39;.<br>information/cli: Enabling the &#39;api&#39; feature.<br>Enabling feature api. Make sure to restart Icinga 2 for these changes to take effect.<br>information/cli: Dumping config items to file &#39;/etc/icinga2/zones.conf&#39;.<br>information/cli: Created backup file &#39;/etc/icinga2/zones.conf.orig&#39;.<br>Please specify the API bind host/port (optional):<br>Bind Host []: Enter<br>Bind Port []: Enter<br>information/cli: Created backup file &#39;/etc/icinga2/features-available/api.conf.orig&#39;.<br>information/cli: Updating constants.conf.<br>information/cli: Created backup file &#39;/etc/icinga2/constants.conf.orig&#39;.<br>information/cli: Updating constants file &#39;/etc/icinga2/constants.conf&#39;.<br>information/cli: Updating constants file &#39;/etc/icinga2/constants.conf&#39;.<br>information/cli: Updating constants file &#39;/etc/icinga2/constants.conf&#39;.<br>Done.</pre><p><strong>Restart Icinga2:</strong></p><pre># service icinga2 restart</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d45c0c61cdc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/icinga-server-and-application-remote-monitoring/setup-icinga2-master-1d45c0c61cdc">Setup Icinga2 Master</a> was originally published in <a href="https://medium.com/icinga-server-and-application-remote-monitoring">Icinga Server and application remote monitoring without client installation.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Icinga 2 Master Server Installation]]></title>
            <link>https://medium.com/icinga-server-and-application-remote-monitoring/icinga-2-master-server-installation-1781325ed6ca?source=rss-b6784122ae92------2</link>
            <guid isPermaLink="false">https://medium.com/p/1781325ed6ca</guid>
            <category><![CDATA[nagios]]></category>
            <category><![CDATA[icinga2]]></category>
            <category><![CDATA[server-monitoring]]></category>
            <dc:creator><![CDATA[Nurul Abser]]></dc:creator>
            <pubDate>Sat, 03 Jun 2017 15:14:31 GMT</pubDate>
            <atom:updated>2017-06-03T15:14:31.121Z</atom:updated>
            <content:encoded><![CDATA[<p>First we need a server. We can have free EC2 micro instance from Amazon. For this installation process I am using a Ubuntu server on EC2.</p><p>Lets login to the server and prepare it.</p><p>Follow below steps to complete Icinga 2 Master server and Icinga 2 Web portal installation. On this installation, I used a Ubuntu server. Please check <a href="https://docs.icinga.com/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/getting-started">Icinga Get Started</a> for other OS installation</p><h4>1.1 Add the Icinga repository to your package management configuration</h4><p>First of all, you need to add Icinga repository. Run below commands one after another.</p><pre># wget -O - <a href="https://packages.icinga.com/icinga.key">https://packages.icinga.com/icinga.key</a> | apt-key add -</pre><pre># echo &#39;deb <a href="https://packages.icinga.com/debian">https://packages.icinga.com/debian</a> icinga-jessie main&#39; &gt;/etc/apt/sources.list.d/icinga.list</pre><pre># apt-get update</pre><h4>1.2 Install Icinga 2</h4><pre># apt-get install icinga2</pre><h4>1.3 Install Nagios Plugins</h4><pre># apt-get install nagios-plugins</pre><h4>1.4 Add icinga2 to systemctl</h4><pre># systemctl enable icinga2</pre><h4>1.5 Install and Configure MySQL and Apache</h4><p><strong>Install MySQL server</strong></p><pre># apt-get install mysql-server mysql-client</pre><p><strong>Install MySQL and IDO modules for MySQL</strong></p><pre># apt-get install mysql-server mysql-client</pre><pre># apt-get install icinga2-ido-mysql</pre><p><strong>Setup MySql database</strong></p><p>Login to mysql server with user root and the password (created during the previous step)</p><pre># mysql -u root -p</pre><p>Create Icinga DB and set permissions.</p><pre>mysql&gt;  CREATE DATABASE icinga;</pre><pre>mysql&gt;  GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO &#39;icinga&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;icinga&#39;;</pre><pre>mysql&gt; quit</pre><p><strong>Import the Icinga 2 IDO schema</strong></p><pre># mysql -u root -p icinga &lt; /usr/share/icinga2-ido-mysql/schema/mysql.sql</pre><p><strong>Enable icinga2 ido-mysql feature</strong></p><pre># icinga2 feature enable ido-mysql</pre><p><strong>Restart icinga2</strong></p><pre># service icinga2 restart</pre><p><strong>Install Apache Web Server</strong></p><pre># apt-get install apache2</pre><p><strong>Enable command pipe</strong></p><pre># icinga2 feature enable command</pre><p><strong>Restart icinga2 again</strong></p><pre># service icinga2 restart</pre><p><strong>Add your webserver’s user to the group </strong><strong>icingacmd</strong> to enable sending commands to Icinga 2 through your web interface:</p><pre># usermod -a -G icingacmd www-data</pre><h4>1.6 Install Icinga Web 2</h4><p>Check Icinaga Web 2 details installation in the project <a href="https://github.com/Icinga/icingaweb2/blob/master/doc/02-Installation.md">Github page</a></p><p><strong>Installation requirements:</strong></p><ul><li>A web server, e.g. Apache or nginx</li><li>PHP &gt;= 5.3.0 w/ gettext, intl, mbstring and OpenSSL support</li><li>Default time zone configured for PHP in the php.ini file</li><li>LDAP PHP library when using Active Directory or LDAP for authentication</li><li>Icinga 1.x w/ IDO; Icinga 2.x w/ IDO feature enabled</li><li>The IDO table prefix must be icinga_ which is the default</li><li>MySQL or PostgreSQL PHP libraries</li><li>cURL PHP library when using the Icinga 2 API for transmitting external commands</li></ul><p><strong>Install Icinga Web 2:</strong></p><pre>apt-get install icingaweb2</pre><p>Now you can see Icinga web 2 from the URL :</p><pre>http:// &lt;Server IP or host&gt;/icingaweb2</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1781325ed6ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/icinga-server-and-application-remote-monitoring/icinga-2-master-server-installation-1781325ed6ca">Icinga 2 Master Server Installation</a> was originally published in <a href="https://medium.com/icinga-server-and-application-remote-monitoring">Icinga Server and application remote monitoring without client installation.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Business Continuity: You need a watchdog to monitor your application and services.]]></title>
            <link>https://medium.com/icinga-server-and-application-remote-monitoring/make-sure-your-application-and-services-are-running-properly-57a15a27a7a8?source=rss-b6784122ae92------2</link>
            <guid isPermaLink="false">https://medium.com/p/57a15a27a7a8</guid>
            <category><![CDATA[nagios-icinga]]></category>
            <dc:creator><![CDATA[Nurul Abser]]></dc:creator>
            <pubDate>Sat, 03 Jun 2017 04:31:26 GMT</pubDate>
            <atom:updated>2017-06-03T04:38:23.935Z</atom:updated>
            <content:encoded><![CDATA[<p>One small startup company build a web application for its client. It was running very well and both party was happy about it. Suddenly one day application failed to connect to its database server. Nobody knows about it until the client noticed that the application not working and screaming on a phone call to the customer support. Customer support doesn’t have any clue what was happened and what causing the problem.</p><p>This is very common story in our IT industry.</p><p>We can configure a monitoring system for our application and lets that watchdog barking to us when something disrupting our application service. More precisely that smart dog should smell the source of failure with cause.</p><p>Earlier days we used to use Nagios as that smart dog. But configuring Nagios was cumbersome. Icinga is the successor of Nagios and it is easier to configure and customise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57a15a27a7a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/icinga-server-and-application-remote-monitoring/make-sure-your-application-and-services-are-running-properly-57a15a27a7a8">Business Continuity: You need a watchdog to monitor your application and services.</a> was originally published in <a href="https://medium.com/icinga-server-and-application-remote-monitoring">Icinga Server and application remote monitoring without client installation.</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>