Discussion:
Suppress clear notification during maint window
dseagren
2013-07-02 16:19:54 UTC
Permalink
dseagren [http://community.zenoss.org/people/dseagren] created the discussion

"Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73827#73827

--------------------------------------------------------------
When I setup a maintenance window for an object it is successful in preventing down notifications from occuring however I still receive all the clears when the device comes back up.  I would expect to receive no notifications during a maint window.  Is there a way to suppress the clears during the window?

Thanks
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73827#73827]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dseagren
2013-07-09 18:50:28 UTC
Permalink
dseagren [http://community.zenoss.org/people/dseagren] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73888#73888

--------------------------------------------------------------
no takers?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73888#73888]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
themactech
2013-07-11 15:20:04 UTC
Permalink
themactech [http://community.zenoss.org/people/themactech] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73922#73922

--------------------------------------------------------------
I put this transform at the root of my event tree in all my setup:

if hasattr(evt,'prodState')
    if evt.prodState == 300:
        evt._action = 'drop'

See if this solves your problem, the reason I roll out this transform by default on all my systems is that traps do not get dropped during maintenance windows (I was told it is not a bug but how it's supposed to work) and my devices send a lot of traps.  Like you I want devices in maintenance mode to just be quiet.

The first line I add in all my transforms, to test for the attribute existing because a few times I've had events that were missing the variable I'm testing for, and that makes the transform fail.

Manuel
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73922#73922]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dseagren
2013-07-15 21:15:00 UTC
Permalink
dseagren [http://community.zenoss.org/people/dseagren] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73979#73979

--------------------------------------------------------------
Thanks for the posts.   I'm not real familiar with the transforms.  Can you tell me exactly what the if evt.prodState == 300 line is referencing?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73979#73979]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
themactech
2013-07-15 22:06:47 UTC
Permalink
themactech [http://community.zenoss.org/people/themactech] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73980#73980

--------------------------------------------------------------
prodState is a variable that will hold the production state value for the device generating the event.  Production state 300 is what you will get from any device in 'maintenance' mode, I think 1000 is what you get for normal 'production' state.

So basically the transform will look at any incoming event (even the 'clear' events, or in my case 'traps') and if they are from a device in 'maintenance' mode, it will drop it.

Manuel
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73980#73980]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2013-07-16 09:18:05 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73993#73993

--------------------------------------------------------------
dseagren:

You could also set the event rules to not page on devices in prodState < 1000.

Best,
--Shane Scott (Hackman238)
http://shanewilliamscott.com http://shanewilliamscott.com
http://linkedin.com/in/shanewilliamscott http://linkedin.com/in/shanewilliamscott
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73993#73993]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
tzel
2013-09-11 09:26:05 UTC
Permalink
tzel [http://community.zenoss.org/people/tzel] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/74575#74575

--------------------------------------------------------------
Hi there, I am sorry to bump this post but I would like to ask something to http://community.zenoss.org/people/themactech themactech or anyone else that knows where to put the transform in.

I've added the transform at the following page:

http://localhost:8080/zport/dmd/Events/eventClassStatus http://localhost:8080/zport/dmd/Events/eventClassStatus

Unfortunatly the transform is not working currently.

Is there anybody that knows where I should put the transform?

if hasattr(evt,'prodState'):
    if evt.prodState == 300:
        evt._action = 'drop'
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74575#74575]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
themactech
2013-09-11 10:29:11 UTC
Permalink
themactech [http://community.zenoss.org/people/themactech] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/74591#74591

--------------------------------------------------------------
I change it in:

http://localhost:8080/zport/dmd/Events/editEventClassTransform http://localhost:8080/zport/dmd/Events/editEventClassTransform

Manuel
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74591#74591]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
tzel
2013-09-11 10:48:10 UTC
Permalink
tzel [http://community.zenoss.org/people/tzel] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/74606#74606

--------------------------------------------------------------
Manuel,

I've got it working now, thanks for your help!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74606#74606]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Vaibhav.Narula
2013-07-12 20:18:04 UTC
Permalink
Vaibhav.Narula [http://community.zenoss.org/people/Vaibhav.Narula] created the discussion

"Re: Suppress clear notification during maint window"

To view the discussion, visit: http://community.zenoss.org/message/73958#73958

--------------------------------------------------------------
can be issue  with  alert trigeers  how  u have configured to send initial  clear , for maintance    i  put the device  in decommissoned mode  and  provide a buffer  of  5  mintues  for the device to  remodel   when it comes to its orginal state.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73958#73958]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...