Zulip Nagios integration

Send Nagios host and service notifications using the external Zulip Python SDK. Its package, configuration and command names remain unchanged.

  1. Create a nagios channel and a bot in your own organization with access to it. Record its email and API key.
  2. Install the Python bindings and matching integration scripts on the Nagios host using the SDK installation instructions. Locate integrations/nagios/nagios-notify-zulip and zulip_nagios.cfg.
  3. Save a protected configuration file such as /etc/nagios4/zuliprc:

    [api]
    email = NAGIOS_BOT_EMAIL_ADDRESS
    key = NAGIOS_BOT_API_KEY
    site = https://your-org.example.com
  4. Copy the example contact/command definitions into your Nagios configuration. Set the actual installed script path and add --config=/etc/nagios4/zuliprc to both notify-host-by-zulip and notify-service-by-zulip command lines. The inspected script defaults to /etc/nagios3/zuliprc; saving a file in nagios4 alone does not change that default. Adjust --stream=nagios if needed.

  5. Add the technical contact zulip to the intended contact group's members. Validate configuration and reload the Nagios service using your installation's normal procedure. Its command and configuration paths vary by distribution.

Testing

With Nagios external commands enabled, use Send custom service notification on a test service. Check the channel message and a subsequent recovery. The script sends messages through the API; it does not use an incoming URL such as /api/v1/external/nagios. Webhook only_events and exclude_events do not filter it. Configure host/service notification options in Nagios.

Troubleshooting

Look for SERVICE NOTIFICATION entries mentioning the zulip contact. Check the executing user's permissions on the selected --config file and the actual script path. SDK script execution alone does not prove delivery: confirm the resulting channel message. Host/service names form topics; PROBLEM and RECOVERY use the same topic. Check output is copied into the channel.

Use separate bots/configurations for different customers and restrict file readership. These API credentials are separate from BYOK encryption keys. For SaaS, hybrid, on-premises or telecom-operated deployments, the Nagios host needs HTTPS access to the organization's API. Coordinate routing with the operator. No provider installation or live delivery is implied by this guide.

Logos are trademarks of their respective owners. None of the integrations on this page are created by, affiliated with, or supported by the companies represented by the logos.