GUI-Only Contactgroups
Posted: Thu Mar 30, 2017 7:44 am
Is it possible to "disable" Notifications for a specific Contactgroup?
Let my try to explain with a simplified example:
Five Contacts are defined: contact_1, contact_2, contact_3, contact_4 and contact_5
Two Contactgroups are defined: cgroup_1 (contact_1, contact_2 and contact_3) and cgroup_2 (contact_3, contact_4 and contact_5), yes contact_3 is in both groups
Two Hosts are defined: Host_1 (contactgroups=cgroup_1) and Host_2 (contactgroups=cgroup_2)
So, if there is an event on Host_1, cgroup_1 (aka. contact_1, contact_2 and contact_3) gets notified
and alike for Host_2, cgroup_2 gets notified.
What we would like to do is to create a third Contactgroup (or some other construct), with contact_1 and contact_5 in it, that does not "generate" events to the contacts.
What we want to achieve is that when contact_1 log into the GUI he shall be able to see both Host_1 and Host_2 but contact_1 shall only get notifications for his "own" host (in this case Host_1).
contact_2 sees only Host_1 in the GUI and get notifications from Host_1
contact_3 sees Host_1 and Host_2 in the GUI and get notifications for both Hosts
contact_4 sees only Host_2 in the GUI and get notification for Host_2
contact_5 sees Host_1 and Host_2 in the GUI and get notifications for Host_2
As I said before, this is simplified.
Any suggestions on how to achieve something like this within Nagios?
Let my try to explain with a simplified example:
Five Contacts are defined: contact_1, contact_2, contact_3, contact_4 and contact_5
Two Contactgroups are defined: cgroup_1 (contact_1, contact_2 and contact_3) and cgroup_2 (contact_3, contact_4 and contact_5), yes contact_3 is in both groups
Two Hosts are defined: Host_1 (contactgroups=cgroup_1) and Host_2 (contactgroups=cgroup_2)
So, if there is an event on Host_1, cgroup_1 (aka. contact_1, contact_2 and contact_3) gets notified
and alike for Host_2, cgroup_2 gets notified.
What we would like to do is to create a third Contactgroup (or some other construct), with contact_1 and contact_5 in it, that does not "generate" events to the contacts.
What we want to achieve is that when contact_1 log into the GUI he shall be able to see both Host_1 and Host_2 but contact_1 shall only get notifications for his "own" host (in this case Host_1).
contact_2 sees only Host_1 in the GUI and get notifications from Host_1
contact_3 sees Host_1 and Host_2 in the GUI and get notifications for both Hosts
contact_4 sees only Host_2 in the GUI and get notification for Host_2
contact_5 sees Host_1 and Host_2 in the GUI and get notifications for Host_2
As I said before, this is simplified.
Any suggestions on how to achieve something like this within Nagios?