> On 10 Feb 2017, at 10:10, Tal Bar-Or <tba...@gmail.com> wrote:
> 
> There is members and yet no was triggered , so added users directly to the 
> mail object , waiting for the resaults

https://docs.icinga.com/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/troubleshooting#notifications-not-sent

> Thanks 
> 
> On Fri, Feb 10, 2017 at 8:45 AM, Michael Friedrich 
> <michael.friedr...@icinga.com> wrote:
> If the UserGroup has no members, you won’t get any notifications.
> 
> Kind regards,
> Michael
> 
> > On 10 Feb 2017, at 09:40, Tal Bar-Or <tba...@gmail.com> wrote:
> >
> > Thanks
> >  Found it , i was under impression that user group will cover the contact 
> > mails?
> > <notif.png>
> > ​
> >
> >
> >   * end = 10800
> >   * type = "Notification"
> >   * types = [ "Acknowledgement", "Custom", "DowntimeEnd", 
> > "DowntimeRemoved", "DowntimeStart", "FlappingEnd", "FlappingStart", 
> > "Problem", "Recovery" ]
> >     % = modified in 
> > '/var/lib/icinga2/api/packages/director/spcn-srv-mon01-1486237845-0/zones.d/spcn-srv-mon01.sport.local/notification_templates.conf',
> >  lines 10:5-20:5
> >     % = modified in 
> > '/var/lib/icinga2/api/packages/director/spcn-srv-mon01-1486237845-0/zones.d/spcn-srv-mon01.sport.local/notification_apply.conf',
> >  lines 7:5-17:5
> >   * user_groups = [ "site_admin_escalation-mail-1st-level" ]
> >     % = modified in 
> > '/var/lib/icinga2/api/packages/director/spcn-srv-mon01-1486237845-0/zones.d/spcn-srv-mon01.sport.local/notification_templates.conf',
> >  lines 21:5-21:60
> >     % = modified in 
> > '/var/lib/icinga2/api/packages/director/spcn-srv-mon01-1486237845-0/zones.d/spcn-srv-mon01.sport.local/notification_apply.conf',
> >  lines 18:5-18:60
> >   * users = null
> >   * vars = null
> >
> > On Fri, Feb 10, 2017 at 6:22 AM, Gerald Vogt <v...@spamcop.net> wrote:
> > These are apply definitions. It's not an object. It only creates 
> > notifications objects for each mach of the assign where clause. If the 
> > assign where clause does not match there a no notification objects.
> >
> > That's why Antony ask to check with the object list commands:
> >
> > # icinga2 object list -t Notification -n generalMAIL-host-notification
> >
> > will show you all currently existing notification objects in the running 
> > icinga2 instance.
> >
> > It will also show all the configuration parameters used for each 
> > notification object.
> >
> > -Gerald
> >
> > On 09/02/2017 04:55, ruchira kulathunga wrote:
> > I have created 2 notification objects namely
> > 1.generalMAIL-host-notification
> > 2.generalMAIL-service-notification
> >
> > these are the configurations for each of them
> >
> > 1).apply Notification "generalMAIL-host-notification" to Host {
> >     import "Mail_Host_Notification"
> >
> >     assign where "host_group1" in host.groups
> >     states = [ Down, Up ]
> >     types = [ Custom, Problem, Recovery ]
> >     users = [ "root", "testuser" ]
> > }
> >
> > 2).
> >
> > apply Notification "generalMAIL-service-notification" to Service {
> >     import "Mail_Service_Notification"
> >
> >     period = "TimeperiodName"
> >     assign where "service_group1" in service.groups
> >     states = [ Critical, Unknown, Warning ]
> >     types = [ Custom, Problem, Recovery ]
> >     users = [ "root", "testuser" ]
> > }
> >
> > I have attached the screen shots of Notifications as well.
> >
> >
> > On Wed, Feb 8, 2017 at 9:23 PM, Antony Stone
> > <antony.st...@icinga.open.source.it
> > <mailto:antony.st...@icinga.open.source.it>> wrote:
> >
> >     On Wednesday 08 Feb 2017 at 05:04, ruchira kulathunga wrote:
> >
> >     > How should I show the configuration files?
> >
> >     Well, assuming you don't have 100+ lines relating to notifications,
> >     cut &
> >     paste them into a reply?
> >
> >     If there are multiple similar sections for different purposes, then
> >     (both for
> >     the list and for solving the problem yourself) just pick on one of
> >     them and
> >     examine what it's supposed to do and what Icinga actually does.
> >
> >     Did you try the commands I suggested?  Did the output tell you
> >     anything useful
> >     about what Icinga thinks your config files mean?
> >
> >
> >     Antony.
> >
> >     > On Wed, Feb 8, 2017 at 1:21 AM, Antony Stone wrote:
> >     > > On Tuesday 07 Feb 2017 at 11:10, ruchira kulathunga wrote:
> >     > > > Hello,
> >     > > >
> >     > > > I have upgraded icinga from 2.4.0 to 2.6.1
> >     > > > Now notifications are not sent.When I send a custom message by 
> > force it
> >     > > > will be sent either as a mail or as a SMS as I have 
> > configured.But I
> >     > > > want them to be sent automatically according to the timing.Please
> >     > > > someone help me to fix this issues.
> >     > >
> >     > > We'd need to see your configuration file/s for notifications to 
> > guess at
> >     > > what might be happening.
> >     > >
> >     > > Have you checked the output of the following commands?
> >     > >
> >     > >         icinga2 object list --type notification
> >     > >
> >     > >         icinga2 object list --type user
> >     > >
> >     > >         icinga2 object list --type timeperiod
> >     > >
> >     > > Those should tell you what Icinga is interpreting from your 
> > configuration
> >     > > settings.
> >     > >
> >     > >
> >     > > Antony.
> >
> >     --
> >     Users don't know what they want until they see what they get.
> >
> >                                                        Please reply to
> >     the list;
> >                                                              please
> >     *don't* CC me.
> >     _______________________________________________
> >     icinga-users mailing list
> >     icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org>
> >     https://lists.icinga.org/mailman/listinfo/icinga-users
> >     <https://lists.icinga.org/mailman/listinfo/icinga-users>
> >
> >
> >
> >
> > --
> > Best Regards
> > Ruchira Kulathunga
> >
> >
> > _______________________________________________
> > 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
> >
> >
> >
> > --
> > Tal Bar-or
> > _______________________________________________
> > 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
> 
> 
> 
> -- 
> Tal Bar-or
> _______________________________________________
> 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

Reply via email to