How to modify a rule scope to exclude specific host?
What is the best method to specify which hosts you wish to limit a particular cloned rule?
How to scope a rule to specific host(s)?
Note: Copy a rule and modify the copy as modified rules will not be updated on a subsequent cartridge update.
To exclude a single host from the rule's scope:
LogicalDisk : monitoredHost.name != 'hostname'
To exclude a list of hosts from the rule's scope:
Memory : monitoredHost.name not in {'hostname1','hostname2'}
To include a single host in the rule's scope:
HostCPUs : monitoredHost.name = 'hostname'
To include a list of hosts in the rule's scope:
HostNetwork : monitoredHost.name in {'hostname1','hostname2'}
The condition to exclude or include hosts may need to be added to an existing set of conditions:
LogicalDisk : host.hostType != null and host.hostType.name = 'Physical' and host.detail.topologyTypeName != 'HPVServer' and host.detail.topologyTypeName != 'VMWESXServer' and monitoredHost.name != 'hostname'
The examples above can be used as a reference when customizing rules to target a specific host, but the configuration may vary depending on the rule being worked on; for more information about scope queries refer to the Query Language documentation (Where can the most current information about the Foglight Query Language (FQL) be found? (4308523)).
For customization of Foglight, please contact our Professional Services Organization.
© ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center