Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 2343765a8b0e2cd7c3fa53f251ebd7b258cfc0cb
https://github.com/tribe29/checkmk/commit/2343765a8b0e2cd7c3fa53f251ebd7b25…
Author: Antal Lohmann <antal.lohmann(a)xantara-it.nl>
Date: 2021-01-18 (Mon, 18 Jan 2021)
Changed paths:
A .werks/11833
M cmk/notification_plugins/pagerduty.py
M tests/unit/cmk/notifications/test_pagerduty.py
Log Message:
-----------
11833 FIX Pagerduty notifications: HTTP 400, "'payload.source' is missing
or blank"
For hosts without an IP address, the pagerduty notification plugin failed with
HTTP 400 (Bad Request), "'payload.source' is missing or blank"
This has been fixed.
Background information: The context object passed to notification
plugins always contains the keys 'HOSTNAME' and 'HOSTADDRESS', but the
values can be empty strings.
This merges PR #291,
https://github.com/tribe29/checkmk/pull/291
Change-Id: I1357681e341a2b2ad215c5c04ec30f80daa3a762