This issue can be filtered at the Rule level or Service level(Alarm Filters)
If filtered at the Rule level then use(This example was done for "VMW Datastore Total Latency" rule):
INCLUDE ONLY TWO SERVERS NAMES word strings:
NOTE: Copy a rule and modify the copy as modified rules will not be updated on a subsequent cartridge update.
- Go to "Administration | Rules & Notifications | Manage Rules"
- Search for the needed rule and open it (e.g VMW Datastore Total Latency)
- Select the tab "Rule Definition"
- In the rule scope area filter the host using this:
VMWDatastore where (name like 'snap%') or (name like '%TESTING%') - To verify if the adjustment works properly, click on the green check "Validate Rule Scope"; it will return the objects
matching the scope definition - Then copy that output, paste it on txt file and do a search for objects included or excluded.
EXCLUDE ONLY TWO SERVERS NAMES word strings
VMWDatastore where (name ! like 'snap%') and (name ! like '%TESTING%')
NOTE: ! operator negates. It is equivalent to not like.
EXCLUDE BY uniqueId
VMWDatastore where uniqueId not in { '69025369-073f-4736-b04e-1e8a2c4111d4', '693325369-073f-4736-b04e-1e8a2c4896d4'}
WILD CARD CONDITIONS:
If you want to filter a server that starts with the word snap then just use: (name like 'snap%')
Else
If you want to filter a server that has the word snap in the middle, then just use: (name like '%snap%')
Else
If you want to filter a server that Ends with the word snap then just use: (name like '%snap')
Else
If you have upper and lower case words, type it as it is: (name like '%TESTING%')
EXCLUDE BY ESX SERVERS & VIRTUALCENTER NAME
VMWESXServer where (name like '%snap%') && (virtualCenter.name like '%TESTING%')
OTHER FILTERS
Other filters examples used on rule "File System Capacity" which has Rule Scope: Logicaldisk:
host.hostType != null and
host.hostType.name = 'Physical' and
monitoringAgent.type = 'WindowsAgent' and
monitoredHost.name like 'xyzServer%' and
name not like 'C:%'
This is one rule filter based on Agent Tags defined under Administration │ Agents │ Agent Status
DBSS_Database where monitoringAgent.tags != 'NON-PROD'
One Linux example:
LogicalDisk : name not in {‘/opt/db’,’/etc/proc’} and (detail.writable != false) and host.name in {‘hostname.domain.com’}
FOR MORE INFORMATION VISIT THE DOCUMENTATION FOR QUERY LANGUAGE.