Page 1 of 1

Scheduled Downtime - email not sent

Posted: Mon Jul 04, 2016 9:04 am
by amprantino
Dear all,

I cannot send email alerts when I place a a hot or service in scheduled down time.

- All contact have "s" options configured
service_notification_options w,u,c,r,s
host_notification_options d,u,r,s

- All host or services I set in host downtime
notification_options d,u,r,s

To test the notification I schedule a 5 minute downtime for a host. No mail is being sent.
Any idea why this email is not sent? (nothing appears in Reports > Notifications)

Thank you

Re: Scheduled Downtime - email not sent

Posted: Mon Jul 04, 2016 8:56 pm
by Box293
Can you please post your host, service, contact and command definitions so we can verify your configuration.

When viewing a host or service object, if you "Send custom xxx notification" do you receive that email?

Re: Scheduled Downtime - email not sent

Posted: Tue Jul 05, 2016 2:34 am
by amprantino
I have isolated the problem.
Downtime notifications will go out ONLY in case that downtime is scheduled inside "notification_period" of the host.
Otherwise nothing will be sent.

In other hosts, it worked fine.
Here is a working example:

Code: Select all

define host {
        host_name                       HQ_ServerRack3_SW
        alias                           HQ SW @ Rack3
        address                         192.168.1.11
        parents                         CoreSW
        check_command                   check-host-alive
        max_check_attempts              5
        process_perf_data               0
        retain_nonstatus_information    1
        notification_interval           30
        notification_period             24x7
        notification_options            d,u,r,s
        contact_groups                  net-admins-priority
        }

define contactgroup{
        contactgroup_name       net-admins-priority
        alias                   Network Administrators
        members                 admin1-priority.mail,admin2-priority.mail
        }


define contact{
        contact_name                    admin1-priority.mail
        alias                           admin1 priority mail
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r,s
        host_notification_options       d,u,r,s
        service_notification_commands   service-email-html-int-en-critical
        host_notification_commands      host-email-html-int-en-critical
        email                           [email protected]
}

Re: Scheduled Downtime - email not sent

Posted: Tue Jul 05, 2016 11:32 am
by tgriep
Thanks for reporting back that you figured it out.
Shall we close and lock up the post?

Re: Scheduled Downtime - email not sent

Posted: Tue Jul 05, 2016 12:06 pm
by amprantino
Of course

Thank you