Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

Correct Windows Event Count

VERSION 1 
Created on: Sep 14, 2009 11:21 AM by Noel Brockett - Last Modified:  Sep 14, 2009 11:21 AM by Noel Brockett

Windows events often repeat themselves and Windows tells you how many times. Unfortunately Zenoss sees each occurrence as a separate event. Here is how to rename the event to make Zenoss aware that this is just a duplicate of another event:

 

import re
evt.summary = re.sub('It has done this [0-9]+ time\(s\).', '', evt.message)

#
Comments (0)