New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #11851] Downtime notifications do not pass author and comment #4239
Comments
Updated by sru on 2016-05-28 05:22:22 +00:00
#Just created Downtime is missing after we received the notification email. |
Updated by mfriedrich on 2016-05-31 08:32:02 +00:00
|
Updated by dgoetz on 2016-06-01 14:49:15 +00:00 The comment you set by the external command is on the downtime object and not the notification object, but perhaps it is possible to map this internally for notification of type DowntimeStart and DowntimeEnd. But I would not classify this as bug, because if I remember correct it was never handled so in Icinga 1 and also Icinga 2 before 2.4 (making downtimes an object) would not be capable to do so. |
Updated by mfriedrich on 2016-08-04 15:53:50 +00:00
|
Updated by mfriedrich on 2016-08-04 15:54:14 +00:00
I agree, that's a feature. Feel free to submit a patch :) |
Updated by mfriedrich on 2016-08-10 13:00:35 +00:00
Hm, I stumbled over that file looking into #12333. I doubt that this is a runtime macro issue itself but the underlaying code which requests a notification does not pass the downtime author and comment. This renders the notification email incomplete. Sorry for the issue update, this clearly is a bug. Will be fixed together with #12333. |
Updated by mfriedrich on 2016-08-10 13:00:52 +00:00
|
Updated by mfriedrich on 2016-08-10 14:05:06 +00:00
Applied in changeset 42818ab. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11851
Created by sru on 2016-05-28 05:19:59 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2016-08-10 14:05:06 +00:00)
Target Version: 2.5.0
Last Update: 2016-08-10 14:05:06 +00:00 (in Redmine)
From the gui, planned static downtime with comment "missing comment".
In the email, that is not present:
icinga2.log and debug.log show that it has been accepted:
Notification template used:
Notification command:
In the shell script, redirected the environment using "set > /tmp/nocomment.log".
Relevant parts of that:
HOSTADDRESS=127.0.0.1
HOSTALIAS=devsv1
HOSTDISPLAYNAME=devsv1
HOSTNAME=devsv1.mydomain.com
HOSTTYPE=x86_64
MACHTYPE=x86_64-redhat-linux-gnu
NOTIFICATIONAUTHORNAME=
NOTIFICATIONCOMMENT=
NOTIFICATIONTYPE=DOWNTIMESTART
OSTYPE=linux-gnu
SERVICEDESC=Aircondition
SERVICEDISPLAYNAME=Aircondition
SERVICEOUTPUT='CLIMA OK: Door=running, Cabinet=running'
SERVICESTATE=OK
USEREMAIL=dummy@mydomain.com
Changesets
2016-08-10 14:04:37 +00:00 by mfriedrich 42818ab
Relations:
The text was updated successfully, but these errors were encountered: