Hi,
I am not able to receive mail notification from icinga2 when host goes down
or host restarts. Although it notifies me on dashboard if host is down. It
sends notification for services also.
I am using below host notification configuration..
Notification command :
---------------------------------
*object NotificationCommand "mail-host-notification" { import
"plugin-notification-command" command = [ SysconfDir +
"/icinga2/scripts/mail-host-notification.sh" ] env = { NOTIFICATIONTYPE
= "$notification.type$" HOSTALIAS = "$host.display_name$" HOSTADDRESS
= "$address$" HOSTSTATE = "$host.state$" LONGDATETIME =
"$icinga.long_date_time$" HOSTOUTPUT = "$host.output$"
NOTIFICATIONAUTHORNAME = "$notification.author$" NOTIFICATIONCOMMENT =
"$notification.comment$" HOSTDISPLAYNAME = "$host.display_name$"
USEREMAIL = "$user.email$" }}*
Template:
-------------
*template Notification "mail-host-notification" { command =
"mail-host-notification"/* interval = 15m */ states = [ Up, Down ] types
= [ Problem, Acknowledgement, Recovery, Custom, FlappingStart,
FlappingEnd, DowntimeStart, DowntimeEnd, DowntimeRemoved ]
period = "24x7"}*
User
-------
*object User "Tejas" { import "generic-user" enable_notifications = true
states = [ OK, Warning, Critical ] types = [ Problem, Recovery ]
display_name = "Tejas Gadaria" groups = [ "icingaadmins","ZePMGRelease"]
email = "refond,[email protected] <[email protected]>"}*
Also I tried to add "Up, Down" attribute to user states but no luck.
While surfing i found this bug https://dev.icinga.org/issues/6973
any help will be appreciated
Regards,
Tejas
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users