Skip to content

Instantly share code, notes, and snippets.

View jcurry's full-sized avatar

Jane Curry jcurry

  • Skills 1st Ltd
  • Taplow, UK
View GitHub Profile
@jcurry
jcurry / zenoss_event_escalation_transform.py
Created September 5, 2012 08:39 — forked from cluther/zenoss_event_escalation_transform.py
Zenoss Event Escalation Transform
# This is an example Zenoss event transform that will escalate an event's
# severity to critical if it has occurred more than three (3) times in a row
# without clearing.
#
# It is compatible with all existing Zenoss versions which includes up to 4.1
# at the time this was written.
# Initialize existing_count.
existing_count = 0
@jcurry
jcurry / __init__.py
Created September 5, 2012 08:34 — forked from cluther/__init__.py
Changing Zenoss Permissions
import logging
log = logging.getLogger('zen.ZenPack')
import Globals
from AccessControl import ClassSecurityInfo
from Products.ZenModel.Location import Location
from Products.ZenModel.ZenPack import ZenPack as ZenPackBase
from Products.ZenModel.ZenossSecurity import ZEN_COMMON, ZEN_VIEW
from Products.ZenWidgets.ZenossPortlets import ZenossPortlets