On Thursday 14 July 2016 at 17:07:38, Matt Shields wrote:
> Is there a way to send notifications to all contacts in two groups, but for
> some host groups exclude one of the groups?
I do not believe this is possible.
I think you need to think about inclusion rather than exclusion.
> I have around 1000 hosts divided up into a number of hostgroups (db, app,
> web, etc), I also have two hostgroups for if they are development or
> production.
So, you have two hostgroups - one contains 'production' machines, the other
contains 'development' machines...
> For the production servers I want all service notifications to go to the
> admins contact group,
So, create a notification definition where notifications go to the admins
contact
group, and the criterion for sending them is "membership of the production
servers group".
assign where "Production" in host.groups
> and for development I want it to go to the admins and developers contact
> groups.
Then create a notification definition where notifications go to everybody (both
admins and developers) and the criterion for sending them is "membership of
the development servers group".
assign where "Development" in host.groups
See 4.2.3.4 of
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-
icinga2-first-steps and also 3.5.1 of
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/monitoring-
basics
> I'd rather not setup two separate services (one for prod and one for dev
> servers).
Not sure what you mean by this - are the different machines in two groups
already or not?
Does that help?
Antony.
--
"640 kilobytes (of RAM) should be enough for anybody."
- Bill Gates
Please reply to the list;
please *don't* CC me.
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users