Please - Need Help Modifying Rules to Exclude certain Hosts/Guests
I need to figure out a way to exclude certain hosts and guests from only a few particular rules, and i can't seem to figure it out. Here is my example.
I have a guest that i want to disable monitoring for the rule "VMW Virtual Machine Memory Swapping". The guest i want to exclude from the rule is called "ucapmil1 (QAUCL)".
So in the rule scope field of this particular rule i have:
VMWVirtualMachineMemory where virtualMachine.name not matches 'ucapmil1 (QAUCL)'
i have also tried
VMWVirtualMachineMemory where monitoredHost.name != "ucapmil1 (QAUCL)"
Neither seems to make a difference. Can anyone point me in the right direction? Thanks in advance.
As a standard best practise, please do not modify out of the box rule/s. Make a copy,disable the original rule/s and then make whatever changes necessary to the copy.
For exlcluding the specific VM that you have mentioned, try changing RUle scope to
VMWVirtualMachineMemory where virtualMachine.name ! like '%ucapmil1%'
( I believe the search string within the % is case sensitive).
Pgadgil, thanks so much for your fast response. This worked great for one guest. Is there a way to make usable for multiple guests? Also, would there be a way to place this limit on a host (esxi) instead of a bunch of individual vmware guests?
The most appropriate way when dealing with multiple machines is to build a Service to group together those Hosts/VMs that you want exclude and then use that Service as input in your Rule scope. So if you are well familiar with creating new services then after bulidng the service all you will need to do is change the Rule scope to
VMWVirtualMachineMemory where $object not within^inf (FSMService where name = "name of your service")
If you are not comfortable with Service builder then perhaps this SOL will help:
Pgadgil, that worked perfectly, the link you pointed me to. I'm not comfortable with Service builder, yet, but the link guided me on how to list multiple VM's in the scope. Is there a way to do this for ESX hosts? The example would be for the rule, VMW ESX Server Balloon Memory Deflation. What would i use for the scope to not monitor, ucvmeie21, and ucvmeie22? I thought it would be what i listed below, but it's not working.
VMWESXServerMemory where monitoredHost.name not in {'ucvmeie21','ucvmeie22'}
pgadgil
94 Posts
520
1
Posted June 29th, 2013 00:00
Try using esxServer.name