On 20 Apr 2010, at 22:19, Daniel Rich wrote:

I thought I understood how notifications work in Opsview (3.5.2 on Red
Hat Enterprise 5), but apparently they don't work quite the way I think
they do.

We had an issue where one of our users wasn't getting notified of host
outages for a hostgroup that he was authorized for.  I looked at the
Nagios config and there were no contactgroups listed in his contact
record.  After a couple of days of fiddling with the host and service
groups, I found that the contact configuration will only contain hosts
where he is *also* the contact for one or more services on those hosts.
Also that he will only be notified about services where he is in both
the hostgroup and servicegroup for those services.

For example, if I have the following

   * hosta - hostgroup aa
         o mail - servicegroup mail
         o snmp - servicegroup monitoring
         o nrpe - servicegroup monitoring
   * hostb - hostgroup bb
         o mail - servicegroup mail
         o snmp - servicegroup monitoring
         o nrpe - servicegroup monitoring

If I check hostgroup aa and nothing else, my user will receive no
notifications.
If I check hostgroup aa and servicegroup monitoring, he will receive
notifications for hosta and the snmp and nrpe services only on hosta

I really think the host groups and service groups need to be uncoupled
in the notifications. If I am a contact for hostgroup bb, then I should
get notified of events for for hostb, whether or not I am a member of
any servicesgroups on that host.

Documentation on object selection is here:
  * 
http://docs.opsview.org/doku.php?id=opsview-community:access#selection_of_objects

There's a note re: host selection only if a service is in that host. As the note says, the reason we only choose hosts only where a service exists is because of manageability. If you select "All host groups" but choose only the "Mail" service group, then hosts that do not have any mail services will not be selected. We think this is right because you do not want to give access to that other non-mail hosts unnecessarily.

I've updated the best practices document to include a "duplicate of host check as a service check":
  * http://docs.opsview.org/doku.php?id=opsview-community:bestpractices


Along the same lines, if I am a
contact for servicegroup monitoring, I expect notifications for all
services in that group, not just ones where I am also a contact for the
hostgroup that host happens to be in.

As explained above, you can achieve this by saying "all host groups" with the selected service groups.

Does that explain it? Does that cover your requirements?

Ton

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to