Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 203 forks source link

[dev.icinga.com #12777] Allow notifications to pick user(groups) from host/service vars #462

Closed icinga-migration closed 1 year ago

icinga-migration commented 8 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12777

Created by tgelf on 2016-09-23 14:45:20 +00:00

Assignee: (none) Status: New Target Version: (none) Last Update: 2016-09-23 14:45:20 +00:00 (in Redmine)


As we are now able to fill custom arrays with Icinga object name through the DirectorObject data type, I'd love to be able to define the following directly through the Director:

apply Notification "Send Mails for Hosts to their contact groups" to Host {
  import "mail-host-notification"
  user_groups = host.vars.contact_groups
  assign where host.vars.contact_groups
}

apply Notification "Send Mails for Services to their contact groups" to Service {
  import "mail-service-notification"
  user_groups = service.vars.contact_groups
  assign where service.vars.contact_groups
}
chas0rde commented 7 years ago

Would also love that. We configure Responsible, Deputy and "others to inform" (array) via Director on hosts and services. It would be great to be able to have less (rather than per-user) notification objects in director in this way.

E.g. something like "notify-host-mail" with Users "$host.vars.responsible$" and assign where $host.vars.responsible != "" would be nice.

This way we could reduce the number of notification objects in director to 6 per media instead of 2 per media per user (which totals with e.g. 50 users to 6 instead of 100 notifications per media) "media" being e.g. mail, sms, telegram...

Thomas-Gelf commented 1 year ago

This is now going to happen :tada:

Thomas-Gelf commented 1 year ago

Notification Configuration

grafik

Rendered Icinga Configuration

grafik