How to use includes excludes in NoMa
Click the link above if you are not automatically redirected in 10 seconds.
Notification includes and excludes
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.
Example
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 |
Host and services filters:
Includes | Excludes | |
---|---|---|
Hosts | ||
Hostgroup | mysql | |
Servicegroup | mysql-svcs | |
Service | mysql query* |
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 | Matches include | Matches include |
Servicegroup | Matches include | Matches include |
Service | Matches exclude | |
Notification sent? | Yes | No |
Related articles
-
How to use Nagios to send notifications to NoMa (Knowledge Base)
-
How to enable sendEmail with TLS with NoMa (Knowledge Base)
-
How to configure notifications using NoMa (Knowledge Base)
-
How to schedule downtime (Knowledge Base)
-
Nagios Notifications (GroundWork Support 8)
-
Home Dashboard (GroundWork Support 8)
-
GroundWork Messenger (GroundWork Support 8)