Building Automated Monitoring with Icinga and ilert

Birol Yildiz
July 14, 2020
Table of Contents:

How many servers can be managed by one system administrator? This question is pretty hard to answer since it depends decisively on the tasks that need to be operated. It is clear, however, that the amount of servers one engineer can manage has increased tremendously over the time, and is still growing. Public and private clouds, in combination with automation tools, enables us to automate many daily tasks. In a modern IT infrastructure almost everything can, and should, be automated. Starting from the creation of a new instance up to software deployment. In this whole scenario, automated monitoring is an essential component.

Introducing Icinga

Icinga is an enterprise-ready open source monitoring tool. It helps you to find out what is working in your infrastructure and what is not. Icinga may be used in small scale environments as well as in large scale organizations. Highly available and distributed clusters can be built with the integrated mechanisms. Communication between servers and agents is always SSL encrypted. If something in your environment is not working as expected, Icinga notifies you through your favourite channels.

How does Icinga help me automate my monitoring?

Many servers means many things to monitor. In a small setup this may be achieved with manual configuration. Larger environments clearly need automation. Icinga has a powerfully configured DSL that allows you to describe your hosts and express what exactly you want to monitor and how you want to get notified. Your configuration is managed on a central node and distributed automatically to all connected servers and agents. Additionally, there are modules, cookbooks, and roles available for the most common configuration management tools Puppet, Chef, and Ansible.

Because configuration automation is not always enough, Icinga can be extended with the Director module. This module adds the ability to change configurations through the web interface. More importantly, the Director has the ability to import data from various data sources and transform it to Icinga configuration. Data sources can be potentially anything, pre-implemented sources are Active Directory, MySQL, PuppetDB, vSphere, and many more. Combining data from your existing tools, such as a CMDB or user database, with fresh configuration, is the master class of monitoring automation.

Handling notifications

Many servers, much monitoring, much data. This leads, without a doubt, to many notifications that need to be addressed accurately. On each notification, Icinga runs a dedicated notification handler. With this capability it’s possible to notify users through almost any channel and leaves room for many integrations. A very popular notification channel is ilert. Icinga can route all notifications, enriched with loads of data, directly to ilert.

Handling a big amount of notifications is not easy at all– this is where ilert kicks in. Where many servers have to be managed, usually the work is split to several teams. It’s not uncommon that these teams are spread all over the globe. Routing notifications becomes a key aspect of the monitoring challenge. ilert brings all the capabilities to manage teams, escalations, on-call duties, and many more.

Alerts and Notifications on Demand

The sheer amount of alerts is not an issue for ilert at all. However, if you have many alerts, you may want to define how notifications should be sent out. ilert’s Alerting Channels feature is the perfect component to do so. ilert provides multiple alerting channels, where you can acknowledge or escalate an incident on the same channel. Alerting channels include

  • Push notifications using the native ilert app for iOS or Android
  • International phone calls and SMS
  • Slack and Microsoft Teams
  • Webhooks
  • Trigger serverless functions on AWS, GCP or Azure

How to integrate Icinga and ilert

Integrating ilert with Icinga requires Icinga 2.x and Python 2.7.3 (or higher). You will have to create an additional API key and map it to one contact on your Icinga server to send your alerts directly to ilert. For detailed information read the integration documentation and ask questions in the Icinga Community for help.

Note: This is a guest post provided by the fine folks at Icinga.

Other blog posts you might like:

Synthetic monitoring as Code with Checkly and ilert

Read article ›

iLert Now Integrates With New Relic

Read article ›

New Features: Custom Hold Music for Call Routing, Conditional Alert Actions, Company-wide Private Status Pages, MFA

Read article ›

Get started with ilert

A better way to be on-call for your team.

Start for Free
Our Cookie Policy
We use cookies to improve your experience, analyze site traffic and for marketing. Learn more in our Privacy Policy.
Open Preferences
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.