<?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 Robin O&#39;Brien on Medium]]></title>
        <description><![CDATA[Stories by Robin O&#39;Brien on Medium]]></description>
        <link>https://medium.com/@robinjohnobrien?source=rss-3a97047a6f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6eop7C80sNTqL6Bq5H_6HA.jpeg</url>
            <title>Stories by Robin O&amp;#39;Brien on Medium</title>
            <link>https://medium.com/@robinjohnobrien?source=rss-3a97047a6f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:11:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@robinjohnobrien/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[Startup School: Week 3]]></title>
            <link>https://medium.com/@robinjohnobrien/startup-school-week-3-a479d4f7c8ff?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a479d4f7c8ff</guid>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[self-reflection]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Mon, 28 May 2018 18:05:51 GMT</pubDate>
            <atom:updated>2018-05-28T18:05:51.110Z</atom:updated>
            <content:encoded><![CDATA[<p>Week 3 is well behind us now. I fell a bit behind on these retrospective posts. If you missed Week 2’s post, you can find it <a href="https://medium.com/@robinjohnobrien/startup-school-week-2-e260cfa07b34">here</a>.</p><blockquote>Victorious warriors win first and then go to war, while defeated warriors go to war first and then seek to win.</blockquote><blockquote>— Sun Tzu</blockquote><p>In week 3 we delved into business strategy. A business strategy is simply a plan chosen that if executed correctly can bring about the future one envisions. Now this might sound complex but it really is not. It is simply planning and marshalling all your available resources so that they can be utilised in the most efficient way possible.</p><p>A good business strategy will provide some answers to the some of the following questions. Where does my business compete? What unique value does my business bring to the table to ensure success in the market? What resources and capabilities do we have and are utilising that will allow the business to deliver value? How do we sustain the businesses ability to provide this value?</p><p>It is important to know that a strategy alone will not be the defining factor of success or your ability to beat the competition. This strategy needs to be executed correctly for these outcomes to come to pass.</p><p>Strategic planning can be a daunting task but there are many methodologies that can help. One such methodology is <em>Situation — Target — Path. </em>Evaluate your present situation, define a goal to achieve that covers your ideal state and then design the correct path that if followed will allow your business to reach this state. More methodologies can be found <a href="https://en.wikibooks.org/wiki/Business_Strategy/Overview_of_Strategic_Planning">here</a>.</p><p>At the core of each methodology is analysis. Making use of some analysis tools can help a great deal. In Startup School we have made use of SWOT analyses. Other techniques include <a href="https://en.wikipedia.org/wiki/Porter%27s_five_forces_analysis">Porter’s Five Forces Model</a>, PESTLE analyses and Scenario Planning.</p><p>Creating a strategic plan for your business is an important and valuable step for any founder. A strategic plan should include the following sections.</p><ul><li>Your business values</li><li>The purpose of your business</li><li>What your market is made up of (products, customers etc)</li><li>Your brand promise</li><li>Your companies unique value proposition</li><li>3 year target and goals associated goals</li><li>Your current theme</li><li>Your companies rhythms</li></ul><p>When starting to create the strategic plan, spend some time learning about what is needed, how to organise them all into a short 1 page document. Spend time analysing your business using some of the above tools.</p><p>Our main assignment this week was to create a strategic plan for our businesses. Initially, this felt like a tough problem, but once I got stuck in and fostered the correct mindset, the assignment turned out to be quite straight forward and rewarding in the end. The value a strategic plan can create, even early on in your companies journey, is immense.</p><p>Always remember to keep fostering your entrepreneurial mindset!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a479d4f7c8ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Startup School: Week 2]]></title>
            <link>https://medium.com/@robinjohnobrien/startup-school-week-2-e260cfa07b34?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e260cfa07b34</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[purpose]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Mon, 07 May 2018 21:20:26 GMT</pubDate>
            <atom:updated>2018-05-07T21:20:26.940Z</atom:updated>
            <content:encoded><![CDATA[<p>Week 2 is behind us now. So here is just a quick update on what we got up to. <br>In case you missed it, here is my commentary on <a href="https://medium.com/@robinjohnobrien/startup-school-week-1-47bd8e2d37d4">Week 1</a>.</p><blockquote>There’s enough on this planet for everyone’s needs but not for everyone’s greed</blockquote><blockquote>— Mahatma Gandhi</blockquote><p>This week touched on few interesting topics. Firstly, the idea of starting your business or running your existing business on top of a purpose. Companies are moving more and more towards defining their purpose and doing everything in their power to remain aligned with that purpose. Purpose driven businesses will have an organisational culture that is far stronger, more sustainable and scalable that other businesses that do not have a purpose or those that simply don’t stick to their defined purpose.</p><p>This has lead to companies seeing themselves as forces of good in the world and in turn are creating products and services that are meaningful. As a business, one of the key activities is to motivate your employees. Motivated employees will tend to work more productively, stay engaged and aligned to the values of the company. Profits have been used to try create this motivation, however, giving employees a purpose can create a much more meaningful work experience for your employees. This keeps them happy and productive and in a way profit becomes secondary.</p><p>I really enjoyed looking at how companies run on purpose can thrive. It is something I will without a doubt be implementing in my future businesses or roles where I am able to influence the business on this higher level.</p><p>Following on from the learnings about purpose, we were introduced to global and local challenges. These challenges are those ones that impact billions of people all around the world. We are all striving to solve these problems. Some examples are <em>climate change, food security </em>and <em>unemployment. </em>Solving these problems is not easy.</p><p>We are living in a time where technology is growing extremely rapidly. Leveraging this exponential growth is a way to bring about real change in the world. These technologies are decreasing in cost making new solutions much more affordable. By taking these technologies and empowering the people affected by the global challenges, solutions can be found. This is called <em>inclusive innovation. </em>Groups of people who have traditionally been excluded from technological advances are empower to design and create solutions to the problems that they face. This both aids directly to easing their situation but also enables them to grow both socially and economically.</p><p>Finishing off this week was the assignment. We had to apply the design thinking process to our ideas that are solving a particular problem. This meant starting with empathising with the people who are affected by the problem we are seeking to solve. This phase really allowed one to gain a deeper understanding of the challenge. Moving to the next phase, we had to define the problem. Clearly articulate what we are trying to solve. This leads to the ideation phase. Brainstorming as many potential soluttions as one can. Really understanding the problem helps make this a fun creative exercise. The main take away here is that no idea is too crazy. Take notes of them all. Who knows, at the rate technology is moving it might not be long before those ideas are possible.</p><p>The last two phases were prototype and test. For the sake of the assignment we just needed to touch on how we would create a prototype and follow through with testing.</p><p>Applying this kind of thinking really helps take people context and culture into account. It is also a very creative process. I encourage you to have a look at design thinking and how it can impact your business and product.</p><p>On to Week 3. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e260cfa07b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Startup School: Week 1]]></title>
            <link>https://medium.com/@robinjohnobrien/startup-school-week-1-47bd8e2d37d4?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/47bd8e2d37d4</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Sun, 22 Apr 2018 22:25:07 GMT</pubDate>
            <atom:updated>2018-04-22T22:25:07.048Z</atom:updated>
            <content:encoded><![CDATA[<p>Week 1 is officially over. What a week it has been!</p><p>For those of you who don’t know what I am talking about, have a look at my last post on <a href="https://medium.com/@robinjohnobrien/startup-school-week-0-18ce99318c7b">Startup School Week 0</a>, that will give you a bit an overview of what the course entails.</p><blockquote>You don’t learn to walk by following rules. You learn by doing and falling over.</blockquote><blockquote>— Richard Branson</blockquote><p>This weeks focus has been on <em>Developing an Entrepreneurial Mindset. </em>So what is an Entrepreneurial mindset? Carol Dweck speaks about a growth mindset. A growth mindset is one in which the holder views failure as an opportunity. This is the fundamental idea that all abilities can be developed over time. I believe this forms the basis of an Entreprenurial mindset.</p><p>Understanding that failure is not final is important in business. In the tech world this is vital. Phrases like <em>Time to Market </em>and <em>Fail fast</em> jump to mind. The tech space is fast moving, ever changing and filled with great companies and great people. This makes it challenging to succeed in this space. In order to create a successful company, the product needs to reach the hands of the users quickly. This often means running experiments. These can be features launched early or entire products launched quickly. Maintaining this speed means that at some point things are going to go south. Users may find the new feature holds little value to them or the product you have launched doesn’t quite fit the targeted market. This is fine if approached with a growth mindset.</p><p>Learning from failure is the only way to move forward. Failure itself can lead to new opportunities. There is immense value in getting the feedback early, even if it is negative feedback.</p><p>I was able to attend a talk by Kent Beck in Cape Town this year. His talk came to mind as I was working through this weeks content. Kent Beck spoke about his 3X model. This model states that there are 3 phases when taking an idea from conception through to success. The phases are eXplore, eXpand and eXtract. The exploration phase is what I feel leverages a growth mindset. The idea is to run many experiments quickly and see what works and what doesn’t. This gives you a great baseline on which to scale in the expand phase and ultimately extract value from in the last of the 3 phases.</p><p>However, simply failing and being strong enough to move on is not what I feel is important when looking at a growth mindset. Measuring the experiments and understanding why the idea failed is key. Learning from what you have tried means that in subsequent experiments you will have added knowledge and experience. Taking all the data from the successful attempts and the failed attempts really allows you to make data driven decisions.</p><p>Taking a growth mindset and adding the characteristics of an entrepreneur starts to define the entrepreneurial mindset. Entrepreneurs are just normal people who are drawn to opportunities. These opportunities are a way to create value in the world. Entrepreneurs are able to spot these and take risks in a manner that allows them to create and extract value. Entrepreneurs innovate in ways that can maximise this value creation. They are people who can act with flexibility when facing the countless challenges they will be faced with. But above all, entrepreneurs are perseverant. They push hard to create what they believe is the best way forward. This may be building a company around a concept that others believe won’t work, or may be an approach that no one has tried before in solving a particular problem.</p><p>Having a growth mindset and the ability to continually strive towards your goals in the face of what may feel like insurmountable challenges is what creates a great entrepreneur.</p><p>Mindsets are not fixed. These can be developed over time. One way to start changing your mindset is to start with introspection. What are you strengths? What are your weaknesses? What opportunities do these create? What threats do these reveal?</p><p>We were encouraged to do a SWOT analysis focused on ourselves within the bounds of an entrepreneur. This was a great exercise. I gathered a list of my strengths and weaknesses from a few people work and outside work. These were extra data points in my analysis. They allowed me to understand what people perceive are my strong points and what are my week points. I was able to compare this to my own ideas. The exercise was enlightening. I was able to understand myself better and how my strengths and weaknesses can be combined in a way that opens up opportunities and mitigates threats. I encourage every one to run through this exercise every so often. Have a look at how they change over time.</p><p>Introspection is a way to become comfortable with ones self. Once this happens we are empowered to make changes. We are not able to change if we are not aware that we need to change. This introspection can allow you to foster an entrepreneurial mindset over time.</p><p>So now we have the mindset, what next? This week we learnt about goals and creating habits.</p><p>Setting measurable goals allows one to create focus. Breaking up a large task into smaller achievable ones will help you not to feel overwhelmed. It will also allow you to avoid distractions that may slow down progress. In software development, we follow an agile methodology. In this methodology we make use of the concept of a sprint. This is basically goal setting for a week or two. Sprint progress can be tracked as the tasks get completed. Creating this focus is extremely important in a world that is constantly trying to distract us.</p><p>Fostering healthy habits is another part of being an entrepreneur. These habits can be setting goals or other ways to create focus. But these habits can also be a way to grow yourself and your business. Habits themselves are simply automated behaviour. They are things we stop thinking about and just do. When striving to be an entrepreneur we want habits that support our end goals.</p><p>When creating a habit we need to not look at the habit itself. We need to create predetermined and planned reactions to certain cues. Then add a reward if you carry out the planned action. Continue to repeat this and you start to form a habit. As entrepreneurs we must foster habits that help us reach success. These are unique to each person, their lifestyle and their own goals. Reflect on what you believe will help you move forward and create habits around these plans.</p><p>This week has been great. I have spent a good deal of time reflecting and really beginning to understand myself with a focus on entrepreneurship. It has reenforced the fact that I have an entrepreneurial mindset and that I posses many of the characteristics of successful entrepreneurs. I have also learnt that there are some characteristics I don’t posses but this is ok. Through more effort and focus I will be able to develop myself to a point where I do have all the characteristics.</p><p>I am looking forward to next weeks material and all the amazing things I am <em>YET </em>to learn.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47bd8e2d37d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Startup School: Week 0]]></title>
            <link>https://medium.com/@robinjohnobrien/startup-school-week-0-18ce99318c7b?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/18ce99318c7b</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[startup-school]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Tue, 10 Apr 2018 21:54:30 GMT</pubDate>
            <atom:updated>2018-04-10T21:54:30.684Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been presented with a great opportunity to be apart of <a href="https://startupschool.ac/">Startup School</a> sponsored by <a href="https://www.investec.com/">Investec</a>.</p><blockquote>Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.</blockquote><blockquote>— Albert Schweitzer</blockquote><p>Startup School is a 12 week online program aimed at supporting and encouraging the growth of the entrepreneurial ecosystem within South Africa. The topics covered range from building the entrepreneurial mindset, through to problem identification, marketing, sales and small business finance.</p><p>I have been a Software Engineer for over 6 years now and have been extremely fortunate to have had the opportunity to learn many different skills. These include full stack software development, operations and architecture. (To name just a few)</p><p>I am excited to be apart of Startup School and learn the intricacies of starting and running a startup. This is knowledge and mentorship that I feel will be extremely valuable in my future and in my current day job.</p><p>As part of the Orientation week, starting yesterday (9th April) we have to work through some modules that help us get used to the platform we have been given access to. This week we have setup our profiles, messaged the community introducing ourselves and setting goals we hope to achieve.</p><p>All the goals I have set will be measured on a weekly basis. Out the gate, I have set 6 goals that I feel should be easily attainable in my free time in the evenings after work and on weekends and the odd public holiday we have coming up later this month.</p><p>My goals are as follows:</p><ol><li>10 Hours of Startup School — For this goal I aim to spend 10 hours working through the content and completing all the assignments in a timely manner. The intent is to not fall behind on the content and maximise the amount of knowledge I gain during the course.</li><li>Additional resources — This goal is to ensure I read through the additional resources Startup School provides us each week. These are articles that add some extra information on the weekly topics.</li><li>Product development — I want to apply the knowledge I learn and spend time building out the idea outlined in my profile. I will attempt to spend at least 2 hours writing code and building out the product and device. More on the idea shortly.</li><li>Exercise — Staying healthy is extremely important. Even more so when my work and my hobbies involve a lot of time spent sitting behind a laptop screen. I will ensure that I get to the gym at least twice a week for at least a light workout to stretch out my muscles and get my heart rate up for a bit.</li><li>Community support — Startup School provides a discussion area where everyone involved in the program can chat about the content and get some assistance if need be. I want to assist as much as I can and help others when they are struggling with content or other aspects of their business. I enjoy helping and find it really rewarding.</li><li>Document my journey — Exactly what I am doing right now. I will write a short retrospective each week highlighting what I learnt while completing the weeks assignments and reading materials. I will also mention any thoughts I have during that time and any problems I faced or am currently facing.</li></ol><p>Achieving these goals and keeping track of them through out the course provides a great way to track progress and validate my learnings.</p><p>The idea I will use to apply the knowledge is a project I call SeeThru. It is an idea that my brother, a good friend and I have been playing around with for a while now. The aim is to create a smart device that can be dropped into a swimming pool that measures the current state of the water. The data will be packaged and provided to the user in a readable and understandable format to help reduce the effort of maintaining a pool. Data points can include pH of the water and the temperature. Users can be reminded and prompted to add chlorine and other chemicals to their pool in order to keep it nice and clear.</p><p>The idea will require me to learn more about microcontrollers and the IoT world and apply skills I already poses to create a web application and secure messaging channels. It also opens up future possibilities of predictive analytics via machine learning, automated dosing with chemicals and a community sharing insights into how they maintain their own pools.</p><p>I am so excited to learn. Learning is extremely important to me and I am very fortunate to be apart of this program.</p><p>Until next week!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18ce99318c7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Icinga 2: Master node (Part 4)]]></title>
            <link>https://medium.com/@robinjohnobrien/icinga-2-master-node-part-4-97014192b10?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/97014192b10</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[node-wizard]]></category>
            <category><![CDATA[icinga2]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[setup]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 13:01:59 GMT</pubDate>
            <atom:updated>2018-02-20T13:01:59.935Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Part 4 of the Icinga 2 setup guide. In <a href="https://medium.com/p/icinga-2-installation-part-1-648edd443ea8">Part 1</a> and <a href="https://medium.com/p/icinga-2-web-ui-part-2-b2a616209dfe">Part 2</a> we installed Icinga 2 and Icinga Web 2. In <a href="https://medium.com/p/icinga-2-web-ui-setup-part-3-9e85f3cdfc7c">Part 3</a> we went through each step of the configuration wizard. Now in Part 4 we will prepare the master Icinga 2 (the one we have installed in part 1) to accept remote nodes to monitor.</p><p>Lets begin.</p><h4>Firewall</h4><p>Icinga allows for connections on port <em>5665</em>. In order to allow remote nodes that we intend on monitoring, we need to allow traffic to this port through the firewall. Again, we will make use of <em>firewalld</em> but you are welcome to use what ever package you are familiar with. Do not forget to make the rules permanent otherwise on server reboot the port will be closed once again.</p><pre>$ firewall-cmd --add-port=5665/tcp<br>$ firewall-cmd --permanent  --add-port=5665/tcp</pre><h4>Node setup</h4><p>Now that we are able to receive connections, we need to configure the master node itself. This setup ensures communication will be secure but it also defines a few more details the master node needs in order to act as the master Icinga instance.</p><p>This setup comes in the form of a wizard. It has been created in such a way that it is very easy to understand. We will go through each step now.</p><p>To kick off the wizard, run the following on your master Icinga 2 server.</p><pre>$ icinga2 node wizard</pre><p>Once the wizard has begun, you will see the following output:</p><pre>Welcome to the Icinga 2 Setup Wizard!</pre><pre>We will guide you through all required configuration details.</pre><pre>Please specify if this is a satellite/client setup (&#39;n&#39; installs a master setup) [Y/n]:</pre><p>We are setting up the master node, so we need to input <strong><em>n </em></strong>now. Push enter to submit the response.</p><pre>Please specify if this is a satellite/client setup (&#39;n&#39; installs a master setup) [Y/n]: n</pre><pre>Starting the Master setup routine...</pre><pre>Please specify the common name (CN) [ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal]:</pre><p>The wizard now asks you to choose a common name for the master node. I usually stick to using its FQDN. In this case we will use the one supplied by AWS. This is not ideal as it can change. To solve this problem assign an Elastic IP to your instance and setup proper DNS entries with who ever manages your domain names.</p><p>In the above snippet we see that common name is contained within the square brackets. This means it is the default entry. Should we want the default, we can just push enter, which is what we will do in this case.</p><pre>Reconfiguring Icinga...</pre><pre>Checking for existing certificates for common name &#39;ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal&#39;...</pre><pre>Certificate &#39;/var/lib/icinga2/certs//ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal.crt&#39; for CN &#39;ip-xxx-xxx-xxx-xxx.eu-west-1.compute.internal&#39; already existing. Skipping certificate generation.</pre><pre>Generating master configuration for Icinga 2.</pre><pre>&#39;api&#39; feature already enabled.</pre><pre>Please specify the API bind host/port (optional):</pre><pre>Bind Host []:</pre><p>After hitting enter, the wizard will create a few certificates and enable the API feature if it has not been enabled already. In the snippet above we can see the certificate was already created and the API feature was already enabled.</p><p>Next we are asked for a bind host. This is optional so we will just push enter to move on.</p><pre>Bind Port []:</pre><p>Again, this is optional. Just push enter when asked for a bind port.</p><p>The wizard should now have completed. You will see output that looks something like the following:</p><pre>Done.</pre><pre>Now restart your Icinga 2 daemon to finish the installation!</pre><p>Restart Icinga 2 to let the changes take effect.</p><pre>$ systemctl restart icinga2</pre><h4>Final thoughts</h4><p>That concludes part 4. It was a really quick part however it gets everything ready for the subsequent steps.</p><p>We will also see that when adding nodes to monitor, the process is similar to what we have just done on the master Icinga 2 node.</p><p>Thank you for reading! I hope it was of some use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97014192b10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Icinga 2: Web UI Setup (Part 3)]]></title>
            <link>https://medium.com/@robinjohnobrien/icinga-2-web-ui-setup-part-3-9e85f3cdfc7c?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e85f3cdfc7c</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[icinga-web-2]]></category>
            <category><![CDATA[icinga2]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 11:11:33 GMT</pubDate>
            <atom:updated>2018-02-20T13:28:46.187Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to part 3 of my Icinga 2 guide. In this part we will configure Icinga Web 2. In <a href="https://medium.com/@robinjohnobrien/icinga-2-installation-part-1-648edd443ea8">part 1</a> we installed Icinga 2 and in <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-part-2-b2a616209dfe">part 2</a> we installed Icinga Web 2. Part 4 is available <a href="https://medium.com/p/icinga-2-master-node-part-4-97014192b10">here</a>.</p><p>I will assume you have run through part 1 and 2 and that you have freshly installed Icinga 2 and Icinga Web 2 instances.</p><p>Lets jump right in.</p><h4>Setup</h4><p>First up, open your browser of choice and head over to <em>http://&lt;ip-address&gt;/icingaweb2/setup </em>You will be presented with the following page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5n7yaNPGOZ53PyKnWFo_ig.png" /><figcaption>Icinga Web 2 Configuration Wizard</figcaption></figure><p>The page has an input field for a token. We generated this token in the previous guide. If you have forgotten it, it can be retrieved by running the following:</p><pre>$ icingacli setup token show</pre><p>Insert the token and click <em>next. </em>The next page will allow you to choose which modules you want to install. We will just stick to the monitoring modules. Feel free to add extras if you want to. Click <em>next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JlPK6lovUTTtUwozIvGPzQ.png" /><figcaption>Icinga Web 2 Configuration Wizard: Modules</figcaption></figure><p>Following the modules select page, we will be shown a busy requirements screen. This page shows us the status of the requirements needed for Icinga Web 2. Green means the requirements have been met, Yellow means they are not met but are not required and Red means that the requirement has not been met but needs to be rectified before we can continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFfrBf884ULuAcJt7qBgbQ.png" /><figcaption>Icinga Web 2 Configuration Wizard: Requirements</figcaption></figure><p>As we can see on the above screenshot, there are 2 issues we need to fix. The first is the timezone. I suggested the timezone change in the previous part, however it appears we changed it in the wrong place. This is different since the introduction of the new PHP requirements. We can go ahead and edit that file now to fix this requirement.</p><pre>$ vi /etc/opt/rh/rh-php71/php.ini</pre><p>Find and change the timezone line to look something like the following. Please have a look at part 2 if you want more information on changing the timezone.</p><pre>date.timezone = Africa/Johannesburg</pre><p>Once the timezone has been changed, we just need to restart the process to load the changes.</p><pre>$ systemctl restart rh-php71-php-fpm.service</pre><p>Next, lets turn our attention to the file that is not read and writable. This comes down to an issue with SELinux. Its quite a straight forward fix. We just need to execute the following:</p><pre>$ semanage fcontext -a -t httpd_sys_rw_content_t &#39;/etc/icingaweb2(/.*)?&#39;<br>$ restorecon -RFvv /etc/icingaweb2<br>$ /usr/sbin/setsebool -P httpd_can_network_connect 1</pre><p>This is a known issue, so it may be resolved in future versions. Refreshing the page should now show green when it was showing red. If you have any remaining red blocks, a quick web search should help you find the solution.</p><p>Clicking next, takes us to the authentication method screen. We will be using the database to store authentication data. Click next to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UgqbHktIln9YDWVXy9MLDQ.png" /><figcaption>Icinga Web 2 Configuration Wizard: Authentication</figcaption></figure><p>We now need to configure Icinga Web 2 to access the database. Here we will define a resource that Icinga Web 2 can make use of. Remember we installed PostgreSQL as our database, if you chose another please adjust the config accordingly. Please see the screen shot below for the configuration we will be using. Using the validate button will allow you to check if the data you inserted is in fact correct. When you are satisfied you have entered the correct details, you can click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E63SWeYczhjyYhCLYzjauw.png" /><figcaption>Icinga Web 2 Configuration Wizard: Database resource</figcaption></figure><p>The next screen ties the database with the authentication type we chose earlier. The default text here should be correct. Click next if you are happy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*okUReEFEqhVVuVbHqPKvKA.png" /><figcaption>Icinga Web 2 Configuration Wizard: Authentication backend</figcaption></figure><p>After we have set the Authentication backend, we will be configuring an admin user. It is quite important to select a strong password for this user. Perhaps generate one using a password manager such as LastPass or KeyPassX. You can go ahead and fill this in now and click next to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMepezGz7J0TSgADiS7adw.png" /><figcaption>Icinga Web 2 Configuration Wizard: Administration user</figcaption></figure><p>The next step is setting up application and logging settings. The defaults are fine but feel free to adjust as you see fit. The defaults will log to the database and show stack traces which is fine for our needs. Click next when you are ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SU_wsm4rRHdURm08BmQ-LA.png" /><figcaption>Icinga Web 2 Configuration Wizard: Application config.</figcaption></figure><p>You should now see a summary of what we have supplied Icinga Web 2 setup so far. Please take a moment to confirm that it looks correct for you setup. The summary of our setup is shown below. Click next when you are happy that the configuration so far is correct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IaN0hqVycmtTzPBDX-OgDg.png" /><figcaption>Icinga Web 2 Configuration Wizard: Summary</figcaption></figure><p>Now it gets a bit more exciting. We are moving on to configuring Icinga Web 2 to work with the correct monitoring backend. Since we have installed Icinga 2 first, we can continue with the wizard and add all the details needed for Icinga Web 2 to interact with Icinga 2. Click next to get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pt3Nic3D9bPoS5mkCtZsLA.png" /><figcaption>Icinga Web 2 Configuration Wizard: Monitoring module</figcaption></figure><p>We now can choose a backend name and its type. For this we will stick to the defaults as the name is simple and makes sense. The type of backed will remain IDO. Hit next to move on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uv5He6Co28zH5MgtubYvHw.png" /><figcaption>Icinga Web 2 Configuration Wizard: Monitoring backend</figcaption></figure><p>Next up we will configure how Icinga 2 will store the monitoring data it gathers. Ideally this should be stored in the database we created for it earlier. So as before when we configured the database for Icinga Web 2, we will do the same but for Icinga 2. Please see the screenshot below for the settings we made use of. Take note that this is the database that we imported the IDO schema into in the previous part and is not the same database as the Icinga Web 2 authentication database. Some details may vary if you have diverged from this tutorial series at all. Validate your config and click next to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8w_n0oMJW9iuOBqmq-4qQ.png" /><figcaption>Icinga Web 2 Configuration Wizard: Monitoring IDO resource</figcaption></figure><p>The next screen allows us to configure how the Web instance will make use of the monitoring backend. In our case we want to use the API and the API user we created earlier. Enter these details now, validate and click next. If you have trouble remembering the password used, please run the following and grab the username and password for the icingaweb2 API user.</p><pre>$ cat /etc/icinga2/conf.d/api-users.conf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJqLqUPJwoTMPgc9evwM7w.png" /><figcaption>Icinga Web 2 Configuration Wizard: Command transport</figcaption></figure><p>The next screen is monitoring security. We are going to leave this as is. Click next to continue on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtwBNvE7GjtfhetmslNX7w.png" /><figcaption>Icinga Web 2 Configuration Wizard: Monitoring security</figcaption></figure><p>And that brings us to the end of the wizard. You should now see a summary screen. Please take a moment to confirm the details are correct and click finish to complete the setup. The summary of our setup is displayed below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FStfwLswWwsqYZhr2hERmg.png" /><figcaption>Icinga Web 2 Configuration Wizard: Final Summary</figcaption></figure><p>Icinga Web 2 should now be setup! You should see the final screen below that confirms everything is in order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HweqFRdJEN9TQ0KYzkljFA.png" /><figcaption>Icinga Web 2 Configuration Wizard: Confirmation of setup</figcaption></figure><p>Navigate to <em>http://&lt;ip-address&gt;/icingaweb2/authentication/login </em>in order to access the login screen. You can now login using the admin user we created in the guide above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PhjrJSqkAgzB3i8PYNRFoQ.png" /><figcaption>Icinga Web 2 Login Screen</figcaption></figure><h4>Final thoughts</h4><p>That completes part 3 of the guide. You should now have Icinga 2 installed correctly, Icinga Web 2 installed and configured correctly and you should be able to login successfully.</p><p>In the next parts we will create configuration for the monitoring. This will include adding remote hosts to monitor and defining service checks, notifications and user groups. I will also touch on storing this configuration in a version control system, Git and how to use Git to push new configuration to the server quicker and more easily.</p><p>Things have been pretty straight forward now. I promise things get more interesting when defining the actual monitoring configuration. I hope you are enjoying the guides so far.</p><p>Part 4 available <a href="https://medium.com/p/icinga-2-master-node-part-4-97014192b10">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e85f3cdfc7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Icinga 2: Web UI (Part 2)]]></title>
            <link>https://medium.com/@robinjohnobrien/icinga-2-web-ui-part-2-b2a616209dfe?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2a616209dfe</guid>
            <category><![CDATA[icinga2]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[icinga-web-2]]></category>
            <category><![CDATA[apache]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Mon, 19 Feb 2018 17:12:17 GMT</pubDate>
            <atom:updated>2018-02-20T11:13:42.384Z</atom:updated>
            <content:encoded><![CDATA[<p>Following on from <a href="https://medium.com/@robinjohnobrien/icinga-2-installation-part-1-648edd443ea8">Part 1</a> of this series, this guide will cover what you need to know and do in order to have a running <a href="https://www.icinga.com/products/icinga-web-2/">Icinga Web 2</a> installation in place for your monitoring solution. Part 3 is available <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-setup-part-3-9e85f3cdfc7c">here</a>.</p><blockquote>A user interface is well-designed when the program behaves exactly how the user thought it would.</blockquote><blockquote><strong>— Joel Spolsky</strong></blockquote><p>The Icinga Web 2 UI is great. It is a vast improvement over the Icinga Web 1 UI. The UI is simple to use (my subjective view) and gets down to the basics. Its important to note that all the configuration is done using the Icinga 2 configuration (more on this in later posts) which leaves the Web UI to be a simple way to view the current state of your infrastructure that you are monitoring.</p><p>That being said, you are able to pause notifications and create acknowledgments for incidents and even schedule down time when you are planning to take a server down for maintenance.</p><p>Since we want some level of visualisation into our monitoring (rather than using the Icinga 2 API) we are going to install Icinga Web 2.</p><h4>Software collections repository</h4><p>Icinga Web 2 makes use of a newer PHP version. I have found the best place to get this dependency is from the <a href="https://wiki.centos.org/AdditionalResources/Repositories/SCL">CentOS Linux Software Collections</a>. This repository is easy to install.</p><pre>$ yum install centos-release-scl</pre><h4>PostgreSQL</h4><p>Icinga Web 2 needs a database. It uses this database to store things such as user information. There are a few options when it comes to which database one can use with Icinga Web 2. Personally, I have had lost of experience with PostgreSQL over the years on Rails and Spring projects. So naturally I start to select PostgreSQL as my database of choice whenever I can.</p><p>So for this setup, we are going to use PostgreSQL. Should you wish to choose another database. Please have a look in the Icinga 2 and Icinga Web 2 <a href="https://www.icinga.com/docs">documentation</a>.</p><p>The first step is probably the most complicated one in the whole PostgreSQL install. We need to disable the installation from the base CentOS repositories. We want to run a newer version than those repositories contain.</p><p>We must edit the <em>CentOS-base.repo </em>file as follows:</p><pre>$ vi /etc/yum.repos.d/CentOS-Base.repo</pre><p>Next, add <strong><em>exclude=postgresql* </em></strong>to the<strong><em> [base] </em></strong>and<strong><em> [updates]</em></strong> sections.</p><p>Now that we have disabled the installation and updates from the base repo, we can add the PGDG repository to allow us to install a version of PostgreSQL.</p><pre>$ yum install <a href="https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm">https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm</a></pre><p>Continue with the PostgreSQL install as we normally would:</p><pre>$ yum install postgresql96-server<br>$ /usr/pgsql-9.6/bin/postgresql96-setup initdb<br>$ systemctl enable postgresql-9.6<br>$ systemctl start postgresql-9.6</pre><p>Now we have PostgreSQL installed and ready to be used. Icinga Web 2 makes use of IDO modules to interact with the databases. There are different ones available for the different databases. In our case we will be using the PostgreSQL one</p><pre>$ yum install icinga2-ido-pgsql</pre><p>PostgreSQL needs to be configured for use by Icinga 2 and Icinga Web 2. We will create a user role for Icinga and set a password. We will also create two databases. One for Icinga 2 and one for Icinga Web 2.</p><pre>sudo -u postgres psql -c &quot;CREATE ROLE icinga WITH LOGIN PASSWORD &#39;icinga&#39;&quot;<br>sudo -u postgres createdb -O icinga -E UTF8 icinga<br>sudo -u postgres createdb -O icinga -E UTF8 icingaweb2</pre><p>We have used a simple password. You are more than welcome (and encouraged) to change it to a better password.</p><p>Icinga will look for an environment variable when attempting to use a password to connect to the database. Please update the following command if you have changed the password above.</p><pre>export PGPASSWORD=icinga</pre><p>Those of you familiar with PostgreSQL will know that we need to adjust the permissions to allow it to be accessed by other applications. It is worth noting that the permissions can be adjusted for remote access, however in our case we only need access for applications running on the same server. To edit the permissions we will make changes to <strong><em>pg_hba.conf</em></strong></p><pre>$ vi /var/lib/pgsql/9.6/data/pg_hba.conf</pre><p>Adjust the configuration to match the following code snippet</p><pre># icinga<br>local   icinga      icinga                            md5<br>host    icinga      icinga      127.0.0.1/32          md5<br>host    icinga      icinga      ::1/128               md5</pre><pre># icinga<br>local   icingaweb2      icinga                            md5<br>host    icingaweb2      icinga      127.0.0.1/32          md5<br>host    icingaweb2      icinga      ::1/128               md5</pre><pre># &quot;local&quot; is for Unix domain socket connections only<br>local   all         all                               ident<br># IPv4 local connections:<br>host    all         all         127.0.0.1/32          ident<br># IPv6 local connections:<br>host    all         all         ::1/128               ident</pre><p>Take note of the addition of the user with MD5 authentication to both the <em>icinga</em> and <em>icingaweb2</em> databases in addition to the change from <em>peer </em>to <em>ident</em> for the local access rule.</p><p>To enable to config we just need to restart PostgreSQL</p><pre>$ systemctl restart postgresql-9.6</pre><p>As with all databases we need the correct schema. For this we will now load the Icinga 2 IDO schema. We will also enable the Icinga 2 IDO in order for Icinga 2 to be aware that we are using a PostgreSQL database.</p><pre>$ sudo su - postgres<br>$ psql -U icinga -d icinga &lt; /usr/share/icinga2-ido-pgsql/schema/pgsql.sql</pre><pre>$ exit</pre><pre>$ icinga2 feature enable ido-pgsql<br>$ systemctl restart icinga2</pre><h4>Webserver</h4><p>Icinga Web 2 is a PHP based application and will need to be hosted and served using a webserver. In our case we will use Apache. We can install that now. We will also start and enable the PHP 7 FPM modules needed by Icinga Web 2.</p><pre>$ yum install httpd<br>$ systemctl enable httpd<br>$ systemctl start httpd</pre><pre>$ yum install rh-php71-php-fpm<br>$ systemctl start rh-php71-php-fpm.service<br>$ systemctl enable rh-php71-php-fpm.service</pre><p>For Apache to interact with the PostgreSQL database we must install the module as follows:</p><pre>$ yum install php-pgsql</pre><h4>Firewall</h4><p>To allow external access to our Icinga Web 2 instance, we will need to allow access through the firewall. The default port is <em>80.</em></p><p>I enjoy using <em>firewalld </em>when adjusting firewall rules. It is simply a wrapper for <em>iptables</em> so please feel free to use what ever you are most comfortable with.</p><p>If <em>firewalld </em>is not installed, do so now</p><pre>$ yum install firewalld<br>$ systemctl enable firewalld<br>$ systemctl start firewalld</pre><p>We can now add the rule to allow traffic over port 80.</p><pre>$ firewall-cmd --add-service=http<br>$ firewall-cmd --permanent --add-service=http</pre><h4>REST API</h4><p>Icinga Web 2 interacts with Icinga 2 using its Rest API. For this to work, we need to enable the API within Icinga 2. The following command will create a user <em>root</em> with the default generated password. We will change this password later.</p><pre>$ icinga2 api setup</pre><p>After the above completes, we must create another user for icingaweb2 to access the API. For this we will edit Icinga 2’s <em>api-users.conf </em>file.</p><pre>$ vi /etc/icinga2/conf.d/api-users.conf</pre><p>Add the following snippet to the file. It will add the user. Please adjust this password as needed.</p><pre>object ApiUser &quot;icingaweb2&quot; {<br>  password = &quot;password&quot;<br>  permissions = [ &quot;status/query&quot;, &quot;actions/*&quot;, &quot;objects/modify/*&quot;, &quot;objects/query/*&quot; ]<br>}</pre><p>Finish this section off with a quick restart of Icinga 2.</p><pre>$ systemctl restart icinga2</pre><h4>Icinga Web 2: Installation</h4><p>At long last, we can now install Icinga Web 2 itself. As we did with Icinga 2, we will make use of the <em>yum</em> package manager to install the package. Firstly, we must add the correct repository. This is the same repo that was installed previously, so in most cases you should be able to skip this command.</p><pre>$ yum install <a href="https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm">https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm</a></pre><p>Now we can install the package. Along with the Icinga Web 2 package we will also install the Icinga 2 CLI.</p><pre>$ yum install icingaweb2 icingacli</pre><h4>Icinga Web 2: Setup</h4><p>Most of the Icinga 2 setup is done via its web interface. This occurs when you access the url from your browser. It will be available on a fresh installation. However, before we can do this we need to configure Apache to serve the Icinga Web 2 application correctly. There may be different approaches to this depending on your setup, but in our case the following works well:</p><pre>$ icingacli setup config webserver apache --document-root /usr/share/icingaweb2/public<br>$ systemctl restart httpd</pre><p>For Apache to access the files the icinga setup has created, we need to create the correct user group and add the apache user to that group.</p><pre>$ groupadd -r icingaweb2;<br>$ usermod -a -G icingaweb2 apache;</pre><p>If the group already exists, then you can move onto changing the apache users group.</p><p>At this point it is a great time to change the default PHP timezone. This is optional but having your application running in the correct timezone is always nice. We will edit the <em>php.ini</em> file to accomplish this.</p><pre>$ vi /etc/php.ini</pre><p>Locate the line <strong><em>;date.timezone =</em></strong><em> </em>and edit it to look as follows or which ever timezone you require. You can find a list of supported timezones <a href="https://secure.php.net/manual/en/timezones.php">here</a>.</p><pre>date.timezone = Africa/Johannesburg</pre><p>Save the file.</p><p>In order to continue the setup, we will need to generate a token to allow access to the CLI for Icinga Web 2.</p><pre>$ icingacli setup token create</pre><p>This will display a token. We will use this token when setting up Icinga Web 2 via its Web application. If you do forget this token, it can be shown using the following command:</p><pre>icingacli setup token show</pre><p>To access the web ui wizard, head over to the following url in your browser. Please insert your servers hostname or public IP address.</p><p><strong>Important</strong>: Please make sure that if you are running the instance on AWS EC2, that you adjust your <em>security group</em> to allow access to<em> port 80</em></p><pre>http://&lt;ip-address&gt;/icingaweb2/setup</pre><p>You should be presented with a screen that looks similar to the following screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5n7yaNPGOZ53PyKnWFo_ig.png" /><figcaption>Icinga Web 2 Configuration Wizard</figcaption></figure><h4>Final thoughts</h4><p>This concludes Part 2 of the setup. We have successfully installed PostgreSQL, created the databases and users need, installed the apache webserver to serve the Icinga Web 2 application and adjusted the firewall to allow users to access the web ui.</p><p>Subsequent posts will guide you through the wizard. After that we will turn our attention to configuring Icinga 2 and setting up our monitoring configuration.</p><p>Part 3 is available <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-setup-part-3-9e85f3cdfc7c">here</a>.</p><h4>References</h4><p>If you are looking for more information on the PostgreSQL setup, please consult:</p><pre><a href="https://wiki.postgresql.org/wiki/YUM_Installation">https://wiki.postgresql.org/wiki/YUM_Installation</a></pre><p>If you get stuck with any of the above steps, the Icinga 2 and Icinga Web 2 documentation is extremely useful. It can be found here:</p><pre><a href="https://www.icinga.com/docs">https://www.icinga.com/docs</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2a616209dfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Icinga 2: Installation (Part 1)]]></title>
            <link>https://medium.com/@robinjohnobrien/icinga-2-installation-part-1-648edd443ea8?source=rss-3a97047a6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/648edd443ea8</guid>
            <category><![CDATA[icinga2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[Robin O'Brien]]></dc:creator>
            <pubDate>Mon, 19 Feb 2018 13:25:51 GMT</pubDate>
            <atom:updated>2018-02-20T11:12:48.789Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Part 1 of my experience in installing and setting up Icinga 2 for distributed monitoring. Part 2 is available <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-part-2-b2a616209dfe">here</a>, and Part 3 is available <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-setup-part-3-9e85f3cdfc7c">here</a>.</p><blockquote>You build it, you run it.</blockquote><blockquote>— Werner Vogels</blockquote><p>Prior to having Icinga 2 we struggled to clearly see what was happening within our product’s deployment. We were building the product but we were not running it correctly as we were unaware of downtimes. Enter<em> Icinga 2.</em></p><p>We have been running <a href="https://www.icinga.com/products/icinga-2/">Icinga 2</a> for a good 6 months now. We started with Icinga 2 and Icinga Web 2. We slowly added InfluxDB and Grafana. The added transparency over our entire infrastructure has been astounding. We have been able to react much faster to downtime incidents as well as use the historic data stored in InfluxDB and visualised in Grafana to analyse trends and identify potential downtime incidents (full disks, AMQP error queue sizes etc.)</p><p>I am writing this guide while attempting to migrate our Icinga 2 instance into AWS EC2. The reason for the move is an unreliable internet connection in our datacenter in Pretoria, South Africa. Downtime and/or high latency on the fibre connection creates false warnings and critical notices for all the infrastructure located in all our datacenters around the world (Johannesburg South Africa, Atlanta US, Frankfurt Germany etc). I plan to capture and share all the steps I go through while creating a new instance, configuring it to match our current setup as well as a post on migrating from an existing instance. I will include information about setting up AQMP monitoring and using Icinga in its <a href="https://www.icinga.com/docs/icinga2/latest/doc/06-distributed-monitoring/#top-down-config-sync">Top Down Config Sync</a> approach.</p><p>Before we jump right into the installation guide I just want to highlight how great the Icinga 2 documentation is. If, at any point, you are not sure about what I have written please consult the official documentation. I am no expert on the topic but I am glad to assist where I can.</p><p>So lets get started.</p><h4>The server</h4><p>As mentioned above, we are moving from a self-hosted instance to an instance deployed inside AWS EC2. The server I have created is as follows, but please feel free to choose what ever instance will suit your purposes better.</p><ul><li>Centos 7</li><li>t2.Medium</li><li>8 GB storage — SSD</li><li>40 GB storage — Magnetic</li></ul><p>Please ensure you have the correct S<em>ecurity Group</em> assigned and you have a <em>Key Pair</em> used that allows you to gain access to the OS. For now we will just need <em>port 22</em> open so we can begin the setup. It is a good idea to ensure this port is only accessible to you. This can be done by adjusting the <em>Security Group</em> used. More information on security groups is available <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html">here</a>.</p><p>From here on the assumption will be made that your instance is a RHEL based system, specifically CentOS and that you are able to <em>SSH</em> onto the box.</p><p>First up, as will all fresh operating systems I setup we will just ensure all packages are up-to-date.</p><pre>$ yum update<br>$ reboot</pre><h4>Icinga 2 and the EPEL yum repositories</h4><p>The EPEL repository contains the dependencies for Icinga 2. Icinga 2 itself also makes use of a yum repository for package distribution. We can now add both the EPEL yum repo and the Icinga 2 yum repo.</p><pre>$ yum install epel-release</pre><pre>$ yum install <a href="https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm">https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm</a></pre><h4>Installation</h4><p>We are now ready to do the actual package installation. Since we have added the correct <em>Yum repositories</em>, we are able to use Yum to do the installation. This has the added benefit of being able to just run ‘<em>yum update’</em> in the future do install the latest versions.</p><pre>$ yum install icinga2<br>$ systemctl enable icinga2<br>$ systemctl start icinga2</pre><p>We have now successfully installed Icinga 2 and made sure that it will start when ever the OS restarts.</p><h4>Additional plugins (optional)</h4><p>Before we conclude part 1 of this series I want to mention the Nagios Plugins. We use them extensively for our checks and they have proven to be very useful. This is an optional step however, I believe it is one thats worth completing. You can read more about the plugins on the <a href="https://github.com/nagios-plugins/nagios-plugins">GitHub Page</a>.</p><pre>$ yum install nagios-plugins-all</pre><h4>Extra notes</h4><p>Just as some extra information, Icinga 2 on Centos 7 makes use of <em>systemd</em>. This means we can interact with Icinga 2 using the standard systemd approach. For example:</p><pre>$ systemctl start icinga2<br>$ systemctl stop icinga2<br>$ systemctl status icinga2</pre><h4>Final thoughts</h4><p>This concludes part one of the guide. I know its been very brief but it covers all one needs to know to get started with a fresh installation of Icinga 2. Subsequent posts will highlight how to setup your new Icinga 2 instance as well as install and configure the Web UI for Icinga 2. The guides will cover the database setups and user creation etc. I hope to complete those guides as soon as possible. Thanks for reading and I hope you have learnt something new or at least have a feel for how simple the Icinga 2 install is.</p><p>Part 2 is available <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-part-2-b2a616209dfe">here</a>.</p><p>Part 3 is available <a href="https://medium.com/@robinjohnobrien/icinga-2-web-ui-setup-part-3-9e85f3cdfc7c">here</a>.</p><h4>References</h4><p>The best reference is the Icinga 2 officail documentation. It can be found here:</p><pre><a href="https://www.icinga.com/docs/icinga2/latest/doc/02-getting-started/">https://www.icinga.com/docs/icinga2/latest/doc/02-getting-started/</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=648edd443ea8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>