Get alerts from Nagios into Squadcast

Follow the steps below to configure a service so as to push related alert data from Nagios onto Squadcast.

Squadcast will then process this information to create incidents for this service as per your preferences.

Using Nagios as an Alert Source

On the Sidebar, click on Services.

You can either choose to use existing service or create a new service

Now, click on the corresponding Alert Sources button.

Select Nagios from Alert Source drop down and copy the Webhook URL shown.


Nagios Core versions 3.x and above are supported

Create a Squadcast Webhook in Nagios

  • Log in to your Nagios server and go to your nagios.cfg file (usually in /usr/local/nagios/etc/ or /etc/nagios). Make sure enable_environment_macros=1. You can find the path of all your object config files and resource config file here. Go to $USER1$ directory. You can find the value of this macro in your resource.cfg file.

  • Once you're inside the directory, run the following commands:

sudo wget
sudo wget
  • Once the file is downloaded please make sure that the file has execute permissions for your Nagios user. If not, then please provide the same using the following commands:
sudo chmod +x
sudo chmod +x


The Squadcast script for Nagios requires Python 3 to be installed on the machine running Nagios.

  • Go to commands.cfg file. Then add the following two commands:
# 'service-alert' command definition
define command{
        command_name    service-alert

# 'host-alert' command definition
define command{
        command_name    host-alert



Make Sure to replace the url with the webhook url you copied from Squadcast Dashboard

  • Go to contacts.cfg file.

Create a new contact and set your notification_options and notification_period for service and host according to your preference.

Enable host_notifications and service_notifications

Set service_notification_commands to service-alert and host_notification_commands to host-alert


Integrate Multiple Squadcast Services with Nagios Core

If you would like to integrate Nagios Core with multiple Squadcast services at once, you have to create a different contact corresponding to each Squadcast service and each contact should have a different contact_name


define contact {
        contact_name squadcast
        alias Squadcast
        host_notifications_enabled      1
        service_notifications_enabled   1
        service_notification_period 24x7
        host_notification_period 24x7
        service_notification_options w,u,c,r
        host_notification_options d,u,r
        service_notification_commands service-alert
        host_notification_commands host-alert
  • Then add the contact to your preferred contact group.


define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 nagiosadmin,squadcast
  • Finally restart Nagios using the following command:
service nagios restart

Now whenever an event is triggered in Nagios, an incident will be automatically created in Squadcast.
Also, once the event that triggered the incident(s) is resolved in Nagios, the relevant Squadcast incidents created would get resolved automatically.

Updated 2 months ago


Get alerts from Nagios into Squadcast

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.