Events from other machines

When OpsMgr rules look at events in the event log, they only look at events logged with the local machine name.  If the event is logged from a remote machine, or from a virtual node in a cluster, this entry has a different name and events do not get picked up.
 
 
The AllowProxying tag allows rules to ignore this field and pick up remotely logged events.  As with many things, this tag is not available from the OpsMgr console.  It must be entered directly into the rule XML, either through editing the .xml MP file or through the authoring console.  Below are screenshots of doing this through the auth console.
 
Edit the rule in the authoring console and navigate to the XML editor.
 
Add the highlighted line. 
 

<

Configuration p1:noNamespaceSchemaLocation="C:\Documents and Settings\Administrator\Local Settings\Temp\DS – Microsoft.Windows.EventProvider.xsd" xmlns:p1="http://www.w3.org/2001/XMLSchema-instance">

<

ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>

<

LogName>Application</LogName>

<

AllowProxying>true</AllowProxying>

<

Expression>

<

And>

<

Expression>

<

SimpleExpression>

<

ValueExpression>

<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>

</ValueExpression>

<

Operator>Equal</Operator>

<

ValueExpression>

<

Value Type="UnsignedInteger">121</Value>

</

ValueExpression>

</

SimpleExpression>

</Expression>

<

Expression>

<

SimpleExpression>

<

ValueExpression>

<

XPathQuery Type="String">PublisherName</XPathQuery>

</

ValueExpression>

<Operator>Equal</Operator>

<ValueExpression>

<

Value Type="String">EventSource</Value>

</

ValueExpression>

</SimpleExpression>

</

Expression>

</

And>

</

Expression>

</

Configuration>

Close and save your changes and make sure to export the MP back to OpsMgr.
Advertisements
This entry was posted in Rules. Bookmark the permalink.

One Response to Events from other machines

  1. Dmitry says:

    Very good post!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s