View Source

WAS THIS PAGE HELPFUL? {html}<a href="mailto:training@gwos.com?subject=How to use Includes and Excludes filters in NoMa">Leave Feedback</a>{html}\\
\\

h5. Overview

In the Hosts and Services section of a notification rule, you can specifically indicate which hosts, host groups, services, service groups and recipients are to be included or excluded.

The default " * " wildcard character indicates "all" possibilities, (e.g., all hosts). Any include fields that are empty are assigned an implicit " * " and will automatically match all possibilities.

In specifying comma-separated lists of hosts, hostgroups, services, servicegroups, or recipients for inclusion or exclusion filtering, '*' can be used as a multi-character wildcard and '?' can be used as a single-character wildcard, within any particular item in such a list. For Hosts and Services fields, typing a host name and pressing Tab will display a list of valid hosts and services.

An applied include constraint will only allow the notification rule to pass if the host or service belongs to at least one of the listed hostgroups or servicegroups. Conversely, an applied exclude constraint will only allow the notification rule to pass if the host or service does not belong to any of the listed hostgroups or servicegroups.

This page describes an example notification rule with host configuration for two hosts, applied includes and excludes filters, and the notification results.

h5. Example

h6. Host Configuration

|| || Host 1 || Host 2 ||
|| Host | mysql-lnxsrv01 | mysql-lnxsrv02 ||
|| Hostgroup(s) | mysql, linux-servers | mysql, linux-servers ||
|| Servicegroup(s) \\ | mysql-svcs \\ | mysql-svcs \\ ||
|| Service (desc) \\ | MySQL Service \\ | MySQL Query Cache Hitrate \\ ||
\\

h6. Host and Services Filters

|| || Includes || Excludes ||
|| Hosts | | ||
|| Hostgroup | {color:#ff6600}mysql{color} | ||
|| Servicegroup | {color:#ff6600}mysql-svcs{color} | ||
|| Service | | {color:#3366ff}mysql query\*{color} ||
\\

h6. Notification Results

For Host 1 the rule matches and the notification is sent. For Host 2 the rule does not match and the notification is not sent to members of this notification rule.

|| || Host 1 || Host 2 ||
|| Host | | ||
|| Hostgroup | {color:#ff6600}Matches include{color}\\ | {color:#ff6600}Matches include{color}\\ ||
|| Servicegroup | {color:#ff6600}Matches include{color}\\ | {color:#ff6600}Matches include{color}\\ ||
|| Service | | {color:#3366ff}Matches exclude{color}\\ ||
|| Notification sent? | Yes \\ | No \\ ||