> On 08 Sep 2015, at 13:30, Bertalan Voros <bertalan.vo...@gmail.com> wrote:
>
> Hello All,
>
> I would like to set up notifications to be sent to various teams based on 
> their interests.
>
> Coudl this be done by setting a variable on hosts/services and then setting a 
> notification that applies to that?
>
> Is there a better way of doing this?

You could also go for host name patterns, or their group membership. Though 
using custom attributes with nested dictionaries for example allows you to 
re-use them for services being applied and also notifications.

It is also possible to use the host/service object as attribute provider, like 
defining the users as array as host custom attribute, and then assigning that 
value to your notification apply rules. A similar example is found in the 
documentation / example configuration.

>
> Also how would this have to be done on hosts that are monitored using the 
> Icinga2 agent? Would it have to be defined on the services on the remote host?

Notification should be defined wherever you want to send them - they’ll invoke 
the referenced NotificationCommand which will call a script, e.g. sending sms 
then.

Kind regards,
Michael


-- 
Michael Friedrich, DI (FH)
Senior Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | michael.friedr...@netways.de

** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to