This post is more than 5 years old

4 Posts

172042

June 28th, 2013 18:00

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.

94 Posts

June 29th, 2013 00:00

Try using esxServer.name

94 Posts

June 28th, 2013 20:00

Hello Brian,

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).

Hope this helps.

Sincerely

4 Posts

June 28th, 2013 20:00

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?

94 Posts

June 28th, 2013 21:00

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:

https://support.quest.com/SolutionDetail.aspx?id=SOL67189

Sincerely

4 Posts

June 28th, 2013 23:00

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'}

4 Posts

July 1st, 2013 11:00

Pgadgil, that worked great.  Thank you for all the help you provided!

No Events found!

Top