{"product_id":"schedule-maintenance-windows-via-webhook-zabbix-nagios-kuma","title":"Schedule Maintenance Windows via Webhook: Zabbix, Nagios \u0026 Kuma","description":"\u003ch3\u003eSchedule Maintenance Windows Across Zabbix, Nagios \u0026amp; Uptime Kuma—via a Webhook\u003c\/h3\u003e\n\u003cp\u003eNeed to put monitored services into maintenance fast and reliably? This n8n workflow lets you \u003cstrong\u003erequest a maintenance window via webhook\u003c\/strong\u003e, then automatically creates downtime in \u003cstrong\u003eZabbix\u003c\/strong\u003e, schedules host downtime in \u003cstrong\u003eNagios\u003c\/strong\u003e over \u003cstrong\u003eSSH\u003c\/strong\u003e, and pauses matching \u003cstrong\u003eUptime Kuma\u003c\/strong\u003e maintenances via its API.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives webhook requests\u003c\/strong\u003e containing one host (hostname\/IP) or an array of hosts, plus maintenance start date\/time, a service name, and downtime minutes.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and normalizes each entry\u003c\/strong\u003e, calculates start\/end timestamps, and \u003cstrong\u003ewrites the maintenance details to an n8n Data Table\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProcesses hosts in batches\u003c\/strong\u003e and returns an \u003cstrong\u003eOK response immediately\u003c\/strong\u003e to the webhook caller.\u003c\/li\u003e\n  \u003cli\u003eFor each host, \u003cstrong\u003elooks up the Zabbix host ID\u003c\/strong\u003e and \u003cstrong\u003ecreates a Zabbix maintenance window\u003c\/strong\u003e for the computed time period.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStores the returned Zabbix maintenance ID\u003c\/strong\u003e back into the matching Data Table record.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSchedules Nagios downtime\u003c\/strong\u003e by sending a command over \u003cstrong\u003eSSH\u003c\/strong\u003e to the Nagios command file path configured for your installation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePauses Uptime Kuma maintenances\u003c\/strong\u003e by fetching active maintenances, filtering by \u003cstrong\u003etitle matching the service name\u003c\/strong\u003e, and pausing them through the Uptime Kuma API.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCoordinate downtime for deployments or infrastructure changes spanning \u003cstrong\u003eZabbix\u003c\/strong\u003e, \u003cstrong\u003eNagios\u003c\/strong\u003e, and \u003cstrong\u003eUptime Kuma\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eCentralize maintenance scheduling for multiple hosts from a single automation endpoint (webhook trigger).\u003c\/li\u003e\n  \u003cli\u003eEnsure consistent maintenance behavior during patch windows without manual UI steps.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eZabbix API\u003c\/strong\u003e: configure an n8n Zabbix API credential and ensure the API URL points to your Zabbix server.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNagios via SSH\u003c\/strong\u003e: add an SSH credential with permission to write to the Nagios command file (confirm the command path).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUptime Kuma API\u003c\/strong\u003e: add HTTP Bearer Auth and set the correct Kuma base URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes used\u003c\/strong\u003e: Webhook, Code, Merge, Data Table, HTTP Request, and SSH.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46063671640243,"sku":"N8N-19712","price":44.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/AG5y62HPm5Y0XBiFHBkhB_4Byv0CFJ.png?v=1789808933","url":"https:\/\/buyflowscripts.com\/products\/schedule-maintenance-windows-via-webhook-zabbix-nagios-kuma","provider":"N8N Commerce","version":"1.0","type":"link"}