Archived community.zenoss.org | full text search
Skip navigation
1075 Views 4 Replies Latest reply: Aug 19, 2013 10:10 AM by A K RSS
A K Newbie 5 posts since
Jul 31, 2013
Currently Being Moderated

Aug 15, 2013 2:32 PM

Filtering Options

Hey,

 

Back again, as from my previous post about bad counter event showing up and the nice gentleman who replied with a solution so I figured I try this one on my own but sadly it did not work.

 

What i did was under http://zenossip/events/status > bottom gear > transform and added these lines to the script to help not see these events..

 

if evt.summary.startswith("Windows detected"):
if "Windows detected your registry file is still in use" in evt.summary:
  evt._action = "drop"

 

if evt.summary.startswith("Driver"):
if "Driver required for printer" in evt.summary:
  evt._action = "drop"



 

So basically I keep getting a printer driver warning about drivers not being available, but noone has any issues printing, as this server is the hosting server for all network printers... i basically want it to piss off with these unwanted events. I wish Zenoss just had an option to highlight an event and select dont ever show these types of events. and done. but sadly Zenoss isn't that user friendly.

 

should I place this teansform script under the WMI section of events, or maybe did i write it wrong? I attempted to look for an eventkey but one did not exist so im trying to filter it by summary information.. any help is greatly apprictaed as always.

 

thanks!

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    1. Aug 15, 2013 3:24 PM (in response to A K)
    Re: Filtering Options

    You need to apply the Transform in the event class the event ends up in. Can you screenshot an example event? You probably don't need both above to match on the summary...

     

    --

    James Pulver

    ZCA Member

    CLASSE Computer Group

    Cornell University

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    3. Aug 16, 2013 10:35 AM (in response to A K)
    Re: Filtering Options

    So it's in the /Unknown event class. So you probably don't even need a transform. Just use the little upside down candlestick / Map Event GUI to map that to an /Ignore event class...

     

    --

    James Pulver

    ZCA Member

    CLASSE Computer Group

    Cornell University

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points