Skip to main content


Nagios Integration Guide

Nagios is a free and open source computer-software application that monitors systems, networks and infrastructure. Nagios offers monitoring and alerting services for servers, switches, applications and services.

What can Zenduty do for Nagios users?

With the Nagios integration, alerts are sent from Nagios Core, which is ingested by Zenduty, alerting the right team and notifying them based on on-call schedules via email, text messages(SMS), phone calls(Voice), Slack, Microsoft Teams and iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

You can also use Alert Rules to custom route specific Nagios Core alerts to specific users, teams or escalation policies, write suppression rules, auto add notes, responders and incident tasks.

To integrate Nagios with Zenduty, complete the following steps:

On the Zenduty Dashboard:

  1. To add a new Nagios integration, go to Teams on Zenduty and click on the team you want to add the integration to.

  2. Next, go to Services and click on the relevant Service.

  3. Go to Integrations and then Add New Integration. Give it a name and select the application Nagios from the dropdown menu.

  4. Go to Configure under your Integrations and copy the Webhook URL generated.

In Nagios:

  1. Install Nagios Core on your system. After this, add an integration on your zenduty account. Note the integration key automatically provided to you.

    [IMPORTANT]: Make sure you have Python2 installed on your system.

    [IMPORTANT]: If you are using Python3, in the below step change the URL to

  2. Download the Zenduty-Nagios files by following the steps given below:

    $ cd /tmp
    $ git clone
    $ cd zd-nagios
  3. Open zenduty_nagios.cfg file and enter the integration key provided into the “pager” field. In the two command_line fields below, modify the path to the to wherever your Nagios plugin folder resides. You will move the zenduty_nagios file to this folder in step 11.

  4. Move the Nagios Core configuration file into place.

    • For Debian-based systems this is usually /etc/nagios3/conf.d:
    $ mv zenduty_nagios.cfg /etc/nagios3/conf.d
    • For RHEL-based systems this is usually /etc/nagios:
    $ mv zenduty_nagios.cfg /etc/nagios
    • For source installations, move the file to /usr/local/nagios/etc/objects:
    $ mv zenduty_nagios.cfg /usr/local/nagios/etc/objects
  5. Skip this step if you are using a Debian-based distribution. If you are using a RHEL-based distribution, you will need to edit the Nagios Core config to load the ZenDuty config. To do this, open /etc/nagios/nagios.cfg and add this line to the file:

    $ cfg_file=/etc/nagios/zenduty_nagios.cfg

    If using a source installation, add this line to the main config file at /usr/local/nagios/etc/nagios.cfg

    $ cfg_file=/usr/local/nagios/etc/objects/zenduty_nagios.cfg
  6. Add the contact “zenduty” to your Nagios Core configuration’s main contact group. If you’re using the default configuration, open /etc/nagios3/conf.d/contacts_nagios2.cfg (onDebian-based systems) or /etc/nagios/objects/contacts.cfg (on RHEL-based systems) or/usr/local/nagios/etc/objects/contacts.cfg (for source installations) and look for the “admins” contact group. Then, simply add the “zenduty” contact

    .define contactgroup{
    	contactgroup_name admins
    	alias Nagios Administrators
    	members root,zenduty ; Add zenduty here
  7. Move to the Nagios plugin folder.

    • For Debian-based systems this is usually /usr/lib/cgi-bin/nagios3/:
    $ mv /usr/lib/cgi-bin/nagios3/
    • For most RHEL-based systems this is usually /usr/lib64/nagios/cgi/:
    $ mv /usr/lib64/nagios/cgi/
    • For Amazon Linux & CentOS 6+ systems this is usually /usr/local/nagios/sbin:
    $ mv /usr/local/nagios/sbin/
  8. Make the file executable.

    • For Debian-based systems:
    $ chmod +x /usr/lib/cgi-bin/nagios3/
    • For most RHEL-based systems:
    $ chmod +x /usr/lib64/nagios/cgi/
    • For Amazon Linux and CentOS 6+ systems:
    $ chmod +x /usr/local/nagios/sbin/
  9. Restart nagios service and your zenduty integration is finished!

    $ systemctl restart nagios
Zenduty SignUp