Ok some more information. I just used the icinga-web interface to
acknowledge an alert. Even though I clicked the "NO" column for notify
I will got notifications as shown below.
Note the comment line.
Icinga
Service: ACKNOWLEDGEMENT
S: CPU Load
H: appsep005.swifttrip.com
A: 10.200.10.60
S: WARNING
T: 2014-10-02 15:16:15 -0400
Addnl Info: WARNING: 0 critical, 1 warning, 0 okay
Comnt: [alabun] .[1412277375]
PROCESS_SERVICE_CHECK_RESULT;syslog.swifttrip.com;Syslog;0;Checked into syslog
at Thu Oct 2 15:16:16 EDT 2014
Also I have noticed the many external from the icinga-web interface are
not having any effect. Like enabling or disable notifications, removing
service comments.
Alan
On 10/2/2014 11:48 AM, Alan Bunch wrote:
Here are some emails I received from Icinga2 this morning for
acknowledgements and they were very different.
At 10:41 I got this, note the Cmnt line, looks wrong based on the script
Icinga
Service: ACKNOWLEDGEMENT
S: CPU Load
H: appsep005.swifttrip.com
A: 10.200.10.60
S: WARNING
T: 2014-10-02 10:41:52 -0400
Addnl Info: WARNING: 0 critical, 1 warning, 0 okay
Comnt: [Alan Bunch] .
At 11:10 I got this, note the comment line - very very wrong
Icinga
Service: ACKNOWLEDGEMENT
S: CPU Load
H: appsep005.swifttrip.com
A: 10.200.10.60
S: WARNING
T: 2014-10-02 11:09:59 -0400
Addnl Info: WARNING: 0 critical, 1 warning, 0 okay
Comnt: [alabun] .[1412262599]
PROCESS_SERVICE_CHECK_RESULT;challenger.swifttrip.com;Syslog;0;Checked
in at Thu Oct 2 11:05:01 EDT 2014
Here is the email for the recovery. Again the Cmnt line doesn't seem
to match what you would expect.
Icinga
Service: RECOVERY
S: CPU Load
H: appsep005.swifttrip.com
A: 10.200.10.60
S: OK
T: 2014-10-02 11:43:36 -0400
Addnl Info: OKAY: 0 critical, 0 warning, 1 okay
Comnt: []
Here is the script for service notifications
# cat mail-service-notification.sh
#!/usr/bin/env bash
template=$(cat <<TEMPLATE
Icinga
Service: $NOTIFICATIONTYPE
S: $SERVICEDESC
H: $HOSTALIAS
A: $HOSTADDRESS
S: $SERVICESTATE
T: $LONGDATETIME
Addnl Info: $SERVICEOUTPUT
Comnt: [$NOTIFICATIONAUTHORNAME] $NOTIFICATIONCOMMENT
TEMPLATE
)
echo "$template" | mail -v -s "$NOTIFICATIONTYPE-$HOSTDISPLAYNAME -
$SERVICEDISPLAYNAME is $SERVICESTATE" $USEREMAIL
#
Anyone have any ideas why the comment line is so messed up
Thanks in advanced
Alan
Versions and repo's used
python-icinga2-2.1.1-1.el6.x86_64
icinga2-2.1.1-1.el6.x86_64
icinga-doc-1.11.6-0.el6.x86_64
icinga2-ido-mysql-2.1.1-1.el6.x86_64
icinga2-common-2.1.1-1.el6.x86_64
icinga2-classicui-config-2.1.1-1.el6.x86_64
icinga-gui-1.11.6-0.el6.x86_64
icinga-web-mysql-1.11.2-1.el6.noarch
icinga2-bin-2.1.1-1.el6.x86_64
icinga-web-1.11.2-1.el6.noarch
Repo used -> icinga-stable-release ICINGA (stable release for
epel) 53
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users