{"id":240,"date":"2015-10-18T02:03:14","date_gmt":"2015-10-18T00:03:14","guid":{"rendered":"https:\/\/blog.unetresgrossebite.com\/?p=240"},"modified":"2015-12-24T17:37:18","modified_gmt":"2015-12-24T16:37:18","slug":"icinga2","status":"publish","type":"post","link":"https:\/\/blog.unetresgrossebite.com\/?p=240","title":{"rendered":"Icinga2"},"content":{"rendered":"<p>Before talking about\u00a0Icinga, we might need to introduce Nagios: a popular monitoring solution, released in 1999, which became a standard over the years. The core concept is pretty simple: alerting upon services failure, according to user-defined check commands, schedules, notification and escalation policies.<\/p>\n<p>You&#8217;ll find Nagios clients on pretty much all systems &#8211; meaning Windows. You may use SNMP to check devices or receive SNMP traps. You may use passive or active checks. You&#8217;ll probably stumble upon NRPE, Nagios Remote Plugin Executor and\/or NSCA, Nagios Service Check Acceptor.<\/p>\n<p>You&#8217;ve got the idea: Nagios is pretty modular. Writing plugins is relatively easy. Monitoring your infrastructure is made relatively easy, and you may automate pretty much everything using puppet classes or ansible roles.<br \/>\nStill, around 2009, two forks appeard: Icinga and Shinken, released in march and december respectively.<br \/>\nIt could be a coincidence, though it most likely was\u00a0the result of several disputes opposing Nagios Core contributors and developpers to the project maintainer, Ethan Galstad.<br \/>\nWe won&#8217;t feed that troll, you may find more data about that <a href=\"http:\/\/www.freesoftwaremagazine.com\/articles\/nagios_and_icinga\">over here<\/a>.<\/p>\n<p>Anyway, in early 2009, Icinga came out. Quickly after, Shinken joined them.<br \/>\nBoth products advertised you may migrate your whole monitoring infrastructure from Nagios, just by stopping nagios daemon and starting either Shinken or Icinga one, using pretty much the same configuration.<\/p>\n<div id=\"attachment_241\" style=\"width: 281px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-intra.png\"><img aria-describedby=\"caption-attachment-241\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-241 size-medium\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-intra-271x300.png\" alt=\"Icinga1.11\" width=\"271\" height=\"300\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-intra-271x300.png 271w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-intra-924x1024.png 924w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-intra.png 1050w\" sizes=\"(max-width: 271px) 100vw, 271px\" \/><\/a><p id=\"caption-attachment-241\" class=\"wp-caption-text\">Icinga1.11 monitoring intra.unetresgrossebite.com<\/p><\/div>\n<div id=\"attachment_242\" style=\"width: 310px\" class=\"wp-caption alignright\"><img aria-describedby=\"caption-attachment-242\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-242 size-medium\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-public-300x291.png\" alt=\"Icinga1.11\" width=\"300\" height=\"291\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-public-300x291.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/clean-public.png 578w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><p id=\"caption-attachment-242\" class=\"wp-caption-text\">Icinga1.11 monitoring unetresgrossebite.com public services, as well as some of my customers services<\/p><\/div>\n<p>So far, so good.<br \/>\nI&#8217;ve used Shinken once, a little less than a year. I wasn&#8217;t very much satisfied &#8211;\u00a0too many workers, inducing some overhead, not really relevant for a small infrastructure like mine. It&#8217;s not really our topic. Meanwhile, I&#8217;ve been using Icinga for a couple years, I&#8217;ve installed tens of them, starting with version 1.7 to 1.9, working for Smile. All in all, I&#8217;m pretty satisfied.\u00a0I&#8217;m still running a couple Icinga monitoring my own services, it&#8217;s nice, they have a web interface that does not require you to install some SGBD (for some reason, included in\u00a0<em>icinga-doc<\/em> package on debian).<\/p>\n<div id=\"attachment_243\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-hostgroups.png\"><img aria-describedby=\"caption-attachment-243\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-243\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-hostgroups-300x138.png\" alt=\"Icinga2\" width=\"300\" height=\"138\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-hostgroups-300x138.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-hostgroups-1024x472.png 1024w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-hostgroups.png 1366w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-243\" class=\"wp-caption-text\">Icinga2 &amp; Icingaweb2 monitoring aws.peerio.com<\/p><\/div>\n<p>A while ago, Icinga released Icinga2. Sounded promising, until I realized they completely changed the way to configure their server, making my current templates and puppet classes useless.<br \/>\nArguably, Icinga2 is not a nagios server anymore. Which is not necessarily a criticism.<\/p>\n<p>This\u00a0week, working on AWS for <a href=\"https:\/\/peerio.com\/\">Peerio<\/a>, I installed my first Icinga2 setup, writing ansible roles to automate\u00a0NRPE servers configuration, Icinga2 configuration and probes registration to my nagios servers, SMS alerts using Twilio, mail alerts using sendgrid, using http proxies everywhere &#8211; no direct internet access, on AWS private instances.<br \/>\nThere&#8217;s no public link to my gitlab, exceptionally, though I expect the repository to be opened to the public pretty soon on github.<\/p>\n<div id=\"attachment_249\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-report1.png\"><img aria-describedby=\"caption-attachment-249\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-249 size-medium\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-report1-300x240.png\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-report1-300x240.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-report1.png 770w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-249\" class=\"wp-caption-text\">Icinga2 Alert Summary<\/p><\/div>\n<p>Point being, I&#8217;ve finally seen what Icinga2 is worth, and it&#8217;s pretty satisfying.<br \/>\nUpgrading from your former nagios server\u00a0will be relatively more complicated than migrating from Nagios to Icinga, or Nagios to Shinken. You&#8217;ll probably want to start from a fresh VM, starting from scratch.<br \/>\nIcinga2 configuration could look strange, especially after using nagios syntax for years, but it makes sense, and could drastically reduce the amount of configuration you&#8217;ll need.<\/p>\n<div id=\"attachment_245\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-timeline.png\"><img aria-describedby=\"caption-attachment-245\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-245\" src=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-timeline-300x236.png\" alt=\"Icinga2 Timeline\" width=\"300\" height=\"236\" srcset=\"https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-timeline-300x236.png 300w, https:\/\/blog.unetresgrossebite.com\/wp-content\/uploads\/2015\/10\/icinga2-timeline.png 761w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-245\" class=\"wp-caption-text\">Icinga2 Timeline<\/p><\/div>\n<p>I&#8217;m a little less convinced by their new web interface, Icingaweb2. For their defense, I had to download the code on github, the RC1 was released <a href=\"https:\/\/www.icinga.org\/2015\/06\/18\/icinga-web-2-v2-0-0-rc1-released\/\">a few months ago<\/a>. No bug so far, maybe some CSS stuff to fix (currently, the &#8220;Add New Pane or Dashboard&#8221; button is too small, I can only read half of the text), still pretty impressive for something pulled from github with no official packaged\u00a0release.<br \/>\nI&#8217;m missing the statusmaps. The report interface looks sexier than in the previous version, though I can&#8217;t find how to generate detailed reports.<\/p>\n<p>Looking at their &#8220;Timeline&#8221; view, I don&#8217;t remember seeing anything like that on their previous version. Why not.<\/p>\n<p>The project is still young, I guess it could still be in some todolist. At least, the features represented work perfectly, their interface is pretty nice, pretty dynamic, without being some over-bloated list of tables like I was used to dealing with Shinken, Icinga or Thruk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before talking about\u00a0Icinga, we might need to introduce Nagios: a popular monitoring solution, released in 1999, which became a standard over the years. The core concept is pretty simple: alerting upon services failure, according to user-defined check commands, schedules, notification and escalation policies. You&#8217;ll find Nagios clients on pretty much all systems &#8211; meaning Windows. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":4,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions\/250"}],"wp:attachment":[{"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unetresgrossebite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}