Icinga2
Steps to configure Icinga2 integration for incident management, using Squadcast
Last updated
Steps to configure Icinga2 integration for incident management, using Squadcast
Last updated
Follow the steps below to configure a service so as to push related alert data from Icinga2 into Squadcast.
Squadcast will then process this information to create incidents for this service as per your preferences.
Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.
2. Select Icinga2. Copy the displayed Webhook URL to configure it within Icinga2. Finish by clicking Add Alert Source -> Done.
Important:
When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
(3) In the machine where Icinga2 is installed, go to /etc/icinga2/conf.d/
directory and download squadcast-icinga2.conf from github.
You can also run the command below to get to the directory and download the squadcast-icinga2.conf
configuration file.
(4) Open the file with your text editor of choice and replace <SQUADCAST_icinga2\_WEBHOOK_URL>
with the Icinga2 Webhook URL that you copied in step 2.
(5) Copy and paste the line below to the configuration files of all the hosts and services for which the alerts will have to be sent to Squadcast.
You can manually add this line to all the Hosts and Services for which you want the notifications to get into Squadcast, but, the easiest way to do this is to add it to templates that are used by all of your configuration objects.
For instance, on Debian-based systems, the default configuration has host objects that use the generic-host template and service objects that use the generic-service template. The templates are defined in /etc/icinga2/conf.d/templates.conf
and can be modified as follows:
(6) If you have added enable_squadcast
to the template in step 5, ensure that the template is used by your host and service objects. For instance, if you added it to the generic-host or generic-service templates, your objects should have one of the following lines:
(7) Go to /etc/icinga2/scripts/
directory and download sq-icinga2.py
Note \
The above script require Python 3 to be installed on your Icinga2 server. The script have been tested to work with Python 3.7
(8) Make the scripts executable by running the command below:
(9) Restart Icinga2 server. You can also use the command below to do so.
Restart Command
The Restart Command might differ depending on the Icinga2 version and the host operating system used. Please refer to the documentation of your specific deployment.
Your Icinga2 Alert Source integration is good to go. Whenever an alert is triggered in Icinga2, an incident will be triggered in Squadcast as well.
Squadcast will Auto-Resolve the incident, if the alert gets resolved in Icinga2 and doesn't require any manual intervention from the user.