Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

142455

September 14th, 2010 13:00

Ignoring some rule notifications

Hi,
What is the best way to ignore some notifications. We have a couple of servers which are fireing the rule "VMW Virtual Machine Logical Drive Utilization" on disk that isn't relevant. How can I exclude that VM and disk from the alerts?
Regards,
Tom

57 Posts

December 8th, 2010 11:00


The rule can be scoped like to exclude a VM entirely or a single VMs drive.
As Dave pointed out, it is best to copy the rule and disable the original/enable the copy.
To exclude the VM entirely, you can just scope the rule like so:
VMWVirtualMachineLogicalDisk where (virtualMachine.managedObjectReference != "vm-xxxx")
To find your VMs moref ID, do the following:
within the vFoglight web console go to the left side tray under Dashboards and expand Administration > Tooling > Script Editor.
In the "Script" box, paste the below script:
ts = server.get("TopologyService");
ty = ts.getType("VMWVirtualMachine");
ds = ts.getObjectsOfType(ty);
names = "";
ds.each { it->
names += it.get("name")+" "+it.get("managedObjectReference")+"\r\n";
}
return names;
It will return items like:
LM-SCOM-DW2 vm-38422
(item in red is the moref for the VM)
You can then get the managedObjectReference for the particular VM and add it to the scope (vm-xxxx).
Option2:
To exclude just a specific drive of a virtual machine:
VMWVirtualMachineLogicalDisk where (topologyObjectId != 'xxxx')
The drive for your VM has a TopologyObjectID assigned to it that does not change. Therefore excluding this ID in the scope above will allow the rule to fire on all the drive except this particular one.
How to do this:
1: need to find the ID for that particular drive
2: edit the current scope of the rule to exclude the object (as in the example above)
To find the TopologyObject ID, within the vFoglight web console go to the left side tray under Dashboards and expand Administration > Tooling > Script Editor.
In the "Script" box, paste in the below script:
ts = server.get("TopologyService");
ty = ts.getType("VMWVirtualMachineLogicalDisk");
ds = ts.getObjectsOfType(ty);
names = "";
ds.each { it->
names += it.get("virtualMachine").get("name")+" "+it.get("name")+" "+it.get("topologyObjectId")+"\r\n";
}
return names;
This will return the list of VMs with the drive name and topologyObjectId like so:
LM-TestMachine D:\ 20369
LM-TestMachine F:\ 20371
LM-TestMachine C:\ 20367
You can do a search in the browser window to find the name of your VM to make it faster as it is going to list all the VMs and all of their drives.
When you find the drive you are looking for copy the topologyObjectId which is the numbers at the very end (eg... LM-TestMachine D:\ 20369)
When you get that go back to the left side tray and again under Dashboards and Administration expand Rules & Notifications > Manage Rules. In the "Filter by Rule Name" box, type in "logical" (w/o "") and you will then click on the VMW Virtual Machine Logical Drive Utilization rule.
Once it opens up, click on the "Rule Definition" tab, in the "Rule Scope" box you will add the following (as in above):
VMWVirtualMachineLogicalDisk where (topologyObjectId != 'xxxx')
The 'xxxx' is of course the value you got for the drives topologyObjectId. Once that is in place, click on the green check mark to evaluate the scoping query.

HTH!
-Larry


57 Posts

September 14th, 2010 16:00

Are you looking to exclude the entire VM from this rule or just a particular drive that is attached to that VM?
-Larry

15 Posts

December 8th, 2010 11:00

You can:
Disable the rule(Administration | | Rules & Notifications | Manage Rules)
Disable individual severity level alarms
Disable the email message
Have the rule not evaluate certain systems, or only include certain systems.
If you modify rules, it is always a good idea to copy the default rule, disable the default rule, and make changes to the copied rule.
If one of the above solutions is interesting, let me know and I can explain more.
-dave
No Events found!

Top