Package ZenEvents :: Module EventManagerBase :: Class EventManagerBase
[show private | hide private]
[frames | no frames]

Type EventManagerBase

                             object --+    
                                      |    
                           DbAccessBase --+
                                          |
                     object --+           |
                              |           |
                           Base --+       |
                                  |       |
                     object --+   |       |
                              |   |       |
                     Persistent --+       |
                                  |       |
                         Persistent --+   |
                                      |   |
                            ObjectCache --+
                                          |
                     object --+           |
                              |           |
                           Base --+       |
                                  |       |
                         Historical --+   |
                                      |   |
     object --+                       |   |
              |                       |   |
           Base --+                   |   |
                  |                   |   |
EtagSupport --+   |                   |   |
              |   |                   |   |
   LockableItem --+                   |   |
                  |                   |   |
           Resource --+               |   |
                      |               |   |
             Collection --+           |   |
                          |           |   |
         object --+       |           |   |
                  |       |           |   |
               Base --+   |           |   |
                      |   |           |   |
          CopyContainer --+           |   |
                          |           |   |
         object --+       |           |   |
                  |       |           |   |
               Base --+   |           |   |
                      |   |           |   |
             Navigation --+           |   |
                          |           |   |
         object --+       |           |   |
                  |       |           |   |
               Base --+   |           |   |
                      |   |           |   |
         object --+   |   |           |   |
                  |   |   |           |   |
         Persistent --+   |           |   |
                      |   |           |   |
             Persistent --+           |   |
                          |           |   |
         object --+       |           |   |
                  |       |           |   |
               Base --+   |           |   |
                      |   |           |   |
                   Tabs --+           |   |
                          |           |   |
            Traversable --+           |   |
                          |           |   |
         object --+       |           |   |
                  |       |           |   |
               Base --+   |           |   |
                      |   |           |   |
               Acquirer --+           |   |
                          |           |   |
              ObjectManager --+       |   |
                              |       |   |
         object --+           |       |   |
                  |           |       |   |
               Base --+       |       |   |
                      |       |       |   |
        RoleManager --+       |       |   |
                      |       |       |   |
            RoleManager --+   |       |   |
                          |   |       |   |
         object --+       |   |       |   |
                  |       |   |       |   |
               Base --+   |   |       |   |
                      |   |   |       |   |
     object --+       |   |   |       |   |
              |       |   |   |       |   |
           Base --+   |   |   |       |   |
                  |   |   |   |       |   |
         CopySource --+   |   |       |   |
                      |   |   |       |   |
     object --+       |   |   |       |   |
              |       |   |   |       |   |
           Base --+   |   |   |       |   |
                  |   |   |   |       |   |
              Owned --+   |   |       |   |
                      |   |   |       |   |
     object --+       |   |   |       |   |
              |       |   |   |       |   |
           Base --+   |   |   |       |   |
                  |   |   |   |       |   |
               Tabs --+   |   |       |   |
                      |   |   |       |   |
        Traversable --+   |   |       |   |
                      |   |   |       |   |
                  ZItem --+   |       |   |
                          |   |       |   |
         object --+       |   |       |   |
                  |       |   |       |   |
               Base --+   |   |       |   |
                      |   |   |       |   |
               Acquirer --+   |       |   |
                          |   |       |   |
         PrimaryPathManager --+       |   |
                              |       |   |
         object --+           |       |   |
                  |           |       |   |
               Base --+       |       |   |
                      |       |       |   |
          CopyContainer --+   |       |   |
                          |   |       |   |
           RelCopyContainer --+       |   |
                              |       |   |
             object --+       |       |   |
                      |       |       |   |
                   Base --+   |       |   |
                          |   |       |   |
                UndoSupport --+       |   |
                              |       |   |
       PrimaryPathObjectManager --+   |   |
                                  |   |   |
             object --+           |   |   |
                      |           |   |   |
                   Base --+       |   |   |
                          |       |   |   |
           Node --+       |       |   |   |
                  |       |       |   |   |
            Element --+   |       |   |   |
                      |   |       |   |   |
  ElementWithAttributes --+       |   |   |
                          |       |   |   |
            PropertyManager --+   |   |   |
                              |   |   |   |
             ZenPropertyManager --+   |   |
                                  |   |   |
                RelationshipManager --+   |
                                      |   |
                         object --+   |   |
                                  |   |   |
                       ZenModelBase --+   |
                                      |   |
                         object --+   |   |
                                  |   |   |
                          ZenPacker --+   |
                                      |   |
                             ZenModelRM --+
                                          |
                                         EventManagerBase

Known Subclasses:
MySqlEventManager

Data connector to backend of the event management system.
Method Summary
  __init__(self, id, title, hostname, username, password, database, port, defaultWhere, defaultOrderby, defaultResultFields)
  convert(self, field, value)
Perform convertion of value coming from database value if nessesary.
  dateDB(self, value)
Convert a date to its database format.
  dateString(self, value)
Convert a date from database format to string.
  defaultAvailabilityEnd(self)
  defaultAvailabilityStart(self)
  deleteEvents(self, whereClause, reason)
  escape(self, value)
Prepare string values for db by escaping special characters.
  eventControls(self)
Are there event controls on this event list.
  getAllComponentStatus(self, statclass, countField, severity, state, where)
Fetch the counts on all components matching statClass
  getAvailability(self, state, **kw)
  getAvgFieldLength(self, fieldname)
  getComponentStatus(self, device, component, statclass, countField, severity, state, where)
see IEventStatus
  getDashboardInfo(self, simple, organizer, REQUEST)
Return a dictionary that has all info for the dashboard.
  getDeviceDashboard(self, simple)
return device info for bad device to dashboard
  getDeviceIssues(self, severity, state, where, mincount, limit)
Return list of tuples (device, count, total) of events for all devices with events.
  getDevicePingIssues(self, state, limit)
Return devices with ping problems.
  getDeviceStatus(self, device, statclass, countField, severity, state, where)
see IEventStatus
  getDeviceStatusIssues(self, severity, state, limit)
Return only status issues.
  getEventActions(self)
Return a list of possible event actions.
  getEventBatchME(self, me, selectstatus, resultFields, where, orderby, severity, state, startdate, enddate, offset, rows, getTotalCount, filter, goodevids, badevids, **kwargs)
  getEventCssClass(self, severity, acked)
return the css class name to be used for this event.
  getEventDetail(self, evid, dedupid, better)
Return an EventDetail object for a particular event.
  getEventDetailFromStatusOrHistory(self, evid, dedupid, better)
  getEventList(self, resultFields, where, orderby, severity, state, startdate, enddate, offset, rows, getTotalCount, filter, **kwargs)
see IEventList.
  getEventListME(self, me, **kwargs)
  getEventOwnerList(self, where, severity, state)
Return a list of userids that correspond to the events in where.
  getEventOwnerListME(self, me, severity, state)
Return list of event owners based on passed in managed entity.
  getEventResultFields(self, context)
Result fields for everything else.
  getEventStates(self)
Return a list of possible event states.
  getEventSummary(self, where, severity, state, prodState)
Return a list of tuples with number of events and the color of the severity that the number represents.
  getEventSummaryME(self, me, severity, state, prodState)
Return a list of tuples with number of events and the color of the severity that the number represents.
  getFieldList(self)
Return a list of all fields in the status table of the backend.
  getGenericStatus(self, me)
Return status based on a where clause defined for the me event_type.
  getHeartbeat(self, failures, simple, limit, db)
Return all heartbeat issues list of tuples (device, component, secs)
  getHeartbeatObjects(self, failures, simple, limit, db)
  getJSONEventsInfo(self, context, offset, count, getTotalCount, startdate, enddate, filter, severity, state, orderby, **kwargs)
Event data in JSON format.
  getJSONFields(self, context)
  getOrganizerDashboard(self)
  getOrganizerStatus(self, org, statusclass, severity, state, where)
see IEventStatus
  getOrganizerStatusIssues(self, event_key, severity, state, where, limit)
Return list of tuples (org, count) for all organizers with events.
  getOrganizerSummary(self, rootname, template, simple)
Return systems info for dashboard.
  getPriorities(self)
Return a list of tuples of priorities [('Warning', 3), ...]
  getPriorityString(self, priority)
Return the priority name
  getSeverities(self)
Return a list of tuples of severities [('Warning', 3), ...]
  getSeverityString(self, severity)
Return a list of tuples of severities [('Warning', 3), ...]
  getStatusCssClass(self, status)
  getStatusImgSrc(self, status)
Return the img source for a status number
  getStatusME(self, me, statusclass, **kwargs)
  getSummaryDashboard(self, REQUEST)
Build summary of serveral zope servers
  getWmiConnIssues(self, state, limit)
Return devices with WMI connection failures.
  installIntoPortal(self)
Install skins into portal.
  isDate(self, colName)
Check to see if a column is of type date.
  loadSchema(self)
Load schema from database.
  lookupManagedEntityField(self, event_key)
Lookup database field for managed entity default is event_key.
  lookupManagedEntityResultFields(self, event_key)
Lookup and result fields for managed entity.
  lookupManagedEntityWhere(self, me)
Lookup and build where clause for managed entity.
  manage_ackEvents(self, evids, REQUEST)
Ack the given event ids
  manage_addCommand(self, id, REQUEST)
add a new EventCommand
  manage_addEvent(self, REQUEST)
Create an event from user supplied data
  manage_addLogMessage(self, evid, message, REQUEST)
Add a log message to an event
  manage_clearCache(self, REQUEST)
Reset cache values
  manage_clearHeartbeats(self, REQUEST)
truncate heartbeat table
  manage_createEventMap(self, eventClass, evids, REQUEST)
Create an event map from an event or list of events.
  manage_deleteAllEvents(self, devname, REQUEST)
Delete the events for a given Device (used for deleting the device
  manage_deleteCommands(self, ids, REQUEST)
add a new EventCommand
  manage_deleteEvents(self, evids, REQUEST)
Delete the given event ids
  manage_deleteHeartbeat(self, devname, REQUEST)
  manage_editCache(self, timeout, clearthresh, REQUEST)
Reset cache values
  manage_editEventManager(self, REQUEST)
Call zmanage_editProperties then take care of saving a few values to ZenEventHistory
  manage_refreshConversions(self, REQUEST)
get the conversion information from the omnibus server
  manage_setEventStates(self, eventState, evids, REQUEST)
  manage_undeleteEvents(self, evids, REQUEST)
Move the given event ids into status and delete from history
  sendEvent(self, event)
Send an event to the backend.
  sendEvents(self, events)
Send a group of events to the backend.
  undeleteEvents(self, whereClause, reason)
  updateEvents(self, stmt, whereClause, reason, table, toLog)
  zmanage_editProperties(self, REQUEST)
Need to handle editing of history event fields differently
  _genuuid(self)
globally unique id based on timestamp, fqdn, and random number.
  _setupDateRange(self, startdate, enddate)
Make a start and end date range that is at least one day long.
  _wand(self, where, fmt, field, value)
Inherited from ZenModelRM: changePythonClass, creator, editableDeviceList, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, primarySortKey, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects
Inherited from ZenModelBase: __call__, __hash__, all_meta_types, breadCrumbs, callZenScreen, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, view, visibleCustPropertyMap, yesterdayDate, zenpathjoin, zenpathsplit, zenScreenUrl, zentinelTabs
Inherited from RelationshipManager: addRelation, buildRelations, cb_isMoveable, checkRelations, exportXml, exportXmlProperties, exportXmlRelationships, getRelationshipManagerId, getRelationshipNames, getRelationships, lookupSchema, manage_addRelation, manage_beforeDelete, manage_removeRelation, manage_workspace, removeRelation, _getCopy, _notifyOfCopyTo, _setObject
Inherited from PrimaryPathObjectManager: _delObject
Inherited from RelCopyContainer: manage_linkObjects, manage_renameObject, manage_unlinkObjects, _getRelName, _getSourceObjects, _verifyObjectLink, _verifyObjectPaste
Inherited from CopyContainer: cb_dataItems, cb_dataValid, manage_clone, manage_CopyContainerAllItems, manage_CopyContainerFirstItem, manage_copyObjects, manage_cutObjects, manage_pasteObjects, manage_renameObjects, validClipData, _delOb, _get_id, _getOb, _setOb
Inherited from ObjectManager: __class_init__, __getitem__, _checkId, filtered_meta_types, hasObject, list_imports, manage_afterAdd, manage_afterClone, manage_delObjects, manage_exportObject, manage_FTPlist, manage_FTPstat, manage_hasId, manage_importObject, objectIds, objectIds_d, objectItems, objectItems_d, objectMap, objectMap_d, objectValues, objectValues_d, superValues, tpValues, _importObjectFromFile, _subobject_permissions
Inherited from Navigation: manage_zmi_logout
Inherited from Tabs: class_manage_path, filtered_manage_options, tabs_path_default, tabs_path_info
Inherited from Acquirer: __new__, __of__
Inherited from Persistent: __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version
Inherited from Persistent: __delattr__, __getstate__, __reduce__, __setattr__, __setstate__, _p_activate, _p_deactivate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr
Inherited from Collection: dav__init, DELETE, HEAD, listDAVObjects, PUT
Inherited from Resource: COPY, dav__simpleifhandler, dav__validate, LOCK, manage_DAVget, MKCOL, MOVE, OPTIONS, PROPFIND, PROPPATCH, TRACE, UNLOCK
Inherited from LockableItem: wl_clearLocks, wl_delLock, wl_getLock, wl_hasLock, wl_isLocked, wl_lockItems, wl_lockmapping, wl_lockTokens, wl_lockValues, wl_setLock
Inherited from EtagSupport: http__etag, http__parseMatchList, http__processMatchHeaders, http__refreshEtag
Inherited from Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path
Inherited from PrimaryPathManager: getPrimaryId, getPrimaryParent, getPrimaryPath, getPrimaryUrlPath, primaryAq
Inherited from ZItem: __len__, __repr__, getId, manage_editedDialog, raise_standardErrorMessage, this, title_and_id, title_or_id, tpURL
Inherited from CopySource: cb_isCopyable, cb_userHasCopyOrMovePermission, _canCopy, _postCopy, _setId
Inherited from Owned: changeOwnership, getOwner, getOwnerTuple, getWrappedOwner, manage_fixupOwnershipAfterAdd, owner_info, userCanTakeOwnership, _deleteOwnershipAfterAdd, manage_changeOwnershipType, manage_takeOwnership
Inherited from RoleManager: ac_inherited_permissions, access_debug_info, acquiredRolesAreUsedBy, get_local_roles, get_local_roles_for_userid, get_valid_userids, has_local_roles, manage_access, manage_defined_roles, manage_editRoles, manage_role, permission_settings, permissionsOfRole, possible_permissions, rolesOfPermission, userdefined_roles, users_with_local_role, valid_roles, validate_roles, validRoles, _addRole, _delRoles, _has_user_defined_role, _setRoles, manage_acquiredPermissions, manage_addLocalRoles, manage_changePermissions, manage_delLocalRoles, manage_permission, manage_setLocalRoles
Inherited from RoleManager: manage_getPermissionMapping, _isBeingAccessedAsZClassDefinedInstanceMethod, _isBeingUsedAsAMethod, manage_setPermissionMapping
Inherited from UndoSupport: get_request_var_or_attr, manage_undo_transactions, undoable_transactions
Inherited from ZenPropertyManager: deleteZenProperty, isLocal, manage_editProperties, saveZenProperties, setZenProperty, zenPropertyIds, zenPropertyItems, zenPropertyMap, zenPropertyOptions, zenPropertyPath, zenPropertyString, zenPropertyType, zenPropIsPassword, _setProperty, _setPropValue
Inherited from PropertyManager: getProperty, getPropertyType, hasProperty, manage_addProperty, manage_changeProperties, manage_changePropertyTypes, manage_delProperties, propdict, propertyIds, propertyItems, propertyLabel, propertyMap, propertyValues, valid_property_id, _delProperty, _delPropValue, _propertyMap, _updateProperty, _wrapperCheck
Inherited from ElementWithAttributes: getAttribute, getAttributeNode, getAttributes
Inherited from Element: getChildNodes, getElementsByTagName, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getParentNode, getPreviousSibling, getTagName
Inherited from Node: getNodeValue, getOwnerDocument, hasChildNodes
Inherited from Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy
Inherited from ZenPacker: addToZenPack, findObject
Inherited from ObjectCache: addToCache, checkCache, cleanCache, clearCache, getCache, getCacheClearthresh, getCacheTimeout, initCache
Inherited from DbAccessBase: cleanstring, close, connect
Inherited from Base: __getnewargs__
Inherited from object: __reduce_ex__, __str__
Inherited from SRE_Pattern: _onlystars

Class Variable Summary
tuple __ac_permissions__ = (('Manage EventManager', ('manage_d...
str a = 'Debug'
int b = 10                                                                    
str componentField = 'component'
tuple ComponentResultFields = ('eventClass', 'summary', 'first...
str ComponentWhere = "component = '%s'"
str countField = 'count'
int defaultAvailabilityDays = 7                                                                     
tuple defaultEventId = ('device', 'component', 'eventClass', '...
tuple defaultFields = ('eventState', 'severity', 'evid')
int defaultPriority = 3                                                                     
tuple defaultResultFields = ('device', 'component', 'eventClas...
str detailTable = 'detail'
str DeviceClassWhere = '"DeviceClass like \'%s%%\'" % me.get...
str deviceField = 'device'
str DeviceGroupField = 'DeviceGroups'
str DeviceGroupWhere = '"DeviceGroups like \'%%|%s%%\'" % me...
tuple DeviceResultFields = ('component', 'eventClass', 'summar...
str DeviceWhere = '"device = \'%s\'" % me.getDmdKey()'
tuple eventActions = ('status', 'history', 'drop')
int eventAgingHours = 4                                                                     
int eventAgingSeverity = 4                                                                     
str eventClassField = 'eventClass'
str EventClassInstWhere = '"eventClass = \'%s\' and eventCla...
str EventClassWhere = '"eventClass like \'%s%%\'" % me.getDm...
tuple eventStateConversions = (('New', 0), ('Acknowledged', 1)...
tuple factory_type_information = ({'immediate_view': 'editEven...
str firstTimeField = 'firstTime'
PermissionRole getDashboardInfo__roles__ = <PermissionRole object at 0x...
PermissionRole getFieldList__roles__ = <PermissionRole object at 0x10bf...
PermissionRole getJSONEventsInfo__roles__ = <PermissionRole object at 0...
PermissionRole getJSONFields__roles__ = <PermissionRole object at 0x10b...
PermissionRole getSeverities__roles__ = <PermissionRole object at 0x10b...
str IpAddressWhere = '"ipAddress=\'%s\'" % (me.getId())'
str lastTimeField = 'lastTime'
str LocationWhere = '"Location like \'%s%%\'" % me.getDmdKey...
str logTable = 'log'
PermissionRole manage_ackEvents__roles__ = <PermissionRole object at 0x...
PermissionRole manage_addCommand__roles__ = <PermissionRole object at 0...
PermissionRole manage_addEvent__roles__ = <PermissionRole object at 0x1...
PermissionRole manage_addLogMessage__roles__ = <PermissionRole object a...
PermissionRole manage_clearCache__roles__ = <PermissionRole object at 0...
PermissionRole manage_clearHeartbeats__roles__ = <PermissionRole object...
tuple manage_createEventMap__roles__ = ('Manager',)
PermissionRole manage_deleteAllEvents__roles__ = <PermissionRole object...
PermissionRole manage_deleteCommands__roles__ = <PermissionRole object ...
PermissionRole manage_deleteEvents__roles__ = <PermissionRole object at...
PermissionRole manage_deleteHeartbeat__roles__ = <PermissionRole object...
PermissionRole manage_editCache__roles__ = <PermissionRole object at 0x...
PermissionRole manage_editEventManager__roles__ = <PermissionRole objec...
PermissionRole manage_refreshConversions__roles__ = <PermissionRole obj...
PermissionRole manage_setEventStates__roles__ = <PermissionRole object ...
PermissionRole manage_undeleteEvents__roles__ = <PermissionRole object ...
tuple meta_types = ()
dict priorities = {0: 'Emergency', 1: 'Alert', 2: 'Critical',...
tuple priorityConversions = (('None', -1), ('Emergency', 0), (...
str prodStateField = 'prodState'
DTMLFile refreshConversionsForm = <App.special_dtml.DTMLFile obje...
tuple requiredEventFields = ('device', 'summary', 'severity')
PermissionRole sendEvent__roles__ = <PermissionRole object at 0x10bf3f8...
PermissionRole sendEvents__roles__ = <PermissionRole object at 0x10bf3f...
dict severities = {0: 'Clear', 1: 'Debug', 2: 'Info', 3: 'War...
tuple severityConversions = (('Critical', 5), ('Error', 4), ('...
str severityField = 'severity'
str stateField = 'eventState'
str statusTable = 'status'
str SystemField = 'Systems'
str SystemWhere = '"Systems like \'%%|%s%%\'" % me.getDmdKey...
PermissionRole zmanage_editProperties__roles__ = <PermissionRole object...
tuple _properties = ({'type': 'string', 'id': 'backend', 'mode...
tuple _relations = (('commands', <Products.ZenRelations.RelSch...
Inherited from ZenModelRM: default_catalog, getDmdKey__roles__, isInTree, meta_type, primarySortKey__roles__, rename__roles__, viewName__roles__
Inherited from ZenModelBase: breadCrumbs__roles__, getPrimaryDmdId__roles__, helpLink__roles__, index_html, manage_deleteObjects__roles__, sub_meta_types, view__roles__, zentinelTabs__roles__
Inherited from RelationshipManager: manage_addRelation__roles__, manage_beforeDelete__roles__, manage_main, manage_main__roles__, manage_options, manage_removeRelation__roles__, manage_workspace__roles__, _operation
Inherited from CopyContainer: __implemented__, __providedBy__, __provides__, manage_clone__roles__, manage_CopyContainerAllItems__roles__, manage_CopyContainerFirstItem__roles__, manage_copyObjects__roles__, manage_cutObjects__roles__, manage_pasteObjects__roles__, manage_renameForm, manage_renameForm__roles__, manage_renameObject__roles__, manage_renameObjects__roles__
Inherited from ObjectManager: __roles__, isAnObjectManager, isPrincipiaFolderish, manage_addProduct, manage_afterAdd__roles__, manage_afterClone__roles__, manage_delObjects__roles__, manage_exportObject__roles__, manage_FTPlist__roles__, manage_FTPstat__roles__, manage_hasId__roles__, manage_importExportForm, manage_importExportForm__roles__, manage_importObject__roles__, manage_index_main, manage_index_main__roles__, objectIds__roles__, objectItems__roles__, objectValues__roles__, _objects
Inherited from Navigation: manage, manage__roles__, manage_copyright, manage_copyright__roles__, manage_form_title, manage_form_title__roles__, manage_menu, manage_menu__roles__, manage_page_footer, manage_page_footer__roles__, manage_page_header, manage_page_header__roles__, manage_page_style.css, manage_page_style.css__roles__, manage_top_frame, manage_top_frame__roles__, manage_zmi_logout__roles__, manage_zmi_prefs, manage_zmi_prefs__roles__, zope_quick_start, zope_quick_start__roles__
Inherited from Tabs: class_manage_path__roles__, filtered_manage_options__roles__, manage_tabs, manage_tabs__roles__
Inherited from Persistent: _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state
Inherited from Collection: __dav_collection__
Inherited from Resource: __dav_resource__, __http_methods__, COPY__roles__, DELETE__roles__, HEAD__roles__, listDAVObjects__roles__, LOCK__roles__, manage_DAVget__roles__, MOVE__roles__, OPTIONS__roles__, PROPFIND__roles__, PROPPATCH__roles__, TRACE__roles__, UNLOCK__roles__
Inherited from LockableItem: wl_clearLocks__roles__, wl_delLock__roles__, wl_getLock__roles__, wl_isLocked__roles__, wl_isLockedByUser__roles__, wl_lockItems__roles__, wl_lockmapping__roles__, wl_lockTokens__roles__, wl_lockValues__roles__, wl_setLock__roles__
Inherited from EtagSupport: __implements__
Inherited from Traversable: absolute_url__roles__, absolute_url_path__roles__, getPhysicalPath__roles__, getPhysicalRoot, getPhysicalRoot__roles__, restrictedTraverse__roles__, unrestrictedTraverse__roles__, virtual_url_path__roles__
Inherited from ZItem: __allow_access_to_unprotected_subobjects__, __name__, __propsets__, getId__roles__, icon, id, isTopLevelPrincipiaApplicationObject, REQUEST, title, _manage_editedDialog
Inherited from Owned: changeOwnership__roles__, getOwner__roles__, getOwnerTuple__roles__, getWrappedOwner__roles__, manage_changeOwnershipType__roles__, manage_fixupOwnershipAfterAdd__roles__, manage_owner, manage_owner__roles__, manage_takeOwnership__roles__, owner_info__roles__
Inherited from RoleManager: __ac_local_roles__, __ac_roles__, ac_inherited_permissions__roles__, access_debug_info__roles__, aclAChecked, aclEChecked, aclPChecked, acquiredRolesAreUsedBy__roles__, manage_access__roles__, manage_acquiredForm, manage_acquiredForm__roles__, manage_acquiredPermissions__roles__, manage_addLocalRoles__roles__, manage_changePermissions__roles__, manage_defined_roles__roles__, manage_delLocalRoles__roles__, manage_editLocalRoles, manage_editLocalRoles__roles__, manage_editRoles__roles__, manage_listLocalRoles, manage_listLocalRoles__roles__, manage_permission__roles__, manage_permissionForm, manage_permissionForm__roles__, manage_role__roles__, manage_roleForm, manage_roleForm__roles__, manage_setLocalRoles__roles__, permission_settings__roles__, permissionMappingPossibleValues, permissionsOfRole__roles__, rolesOfPermission__roles__, selectedRoles, smallRolesWidget, userdefined_roles__roles__, _method_manage_access, _normal_manage_access
Inherited from RoleManager: manage_getPermissionMapping__roles__, manage_setPermissionMapping__roles__
Inherited from UndoSupport: manage_undo_transactions__roles__, manage_UndoForm, manage_UndoForm__roles__, undoable_transactions__roles__
Inherited from ZenPropertyManager: manage_editProperties__roles__, manage_propertiesForm, manage_propertiesForm__roles__
Inherited from PropertyManager: getProperty__roles__, getPropertyType__roles__, hasProperty__roles__, manage_addProperty__roles__, manage_changeProperties__roles__, manage_changePropertyTypes__roles__, manage_delProperties__roles__, manage_propertyTypeForm, manage_propertyTypeForm__roles__, propdict__roles__, propertyIds__roles__, propertyItems__roles__, propertyLabel__roles__, propertyMap__roles__, propertysheets, propertyValues__roles__, valid_property_id__roles__, _reserved_names
Inherited from Historical: HistoricalRevisions, manage_afterHistoryCopy__roles__, manage_beforeHistoryCopy__roles__, manage_change_history__roles__, manage_change_history_page, manage_change_history_page__roles__, manage_historicalComparison__roles__, manage_historyCompare__roles__, manage_historyCopy__roles__, _manage_historyComparePage
Inherited from ZenPacker: security
Inherited from ObjectCache: editCache, getCacheClearthresh__roles__, getCacheTimeout__roles__
Inherited from DbAccessBase: _cpool

Instance Method Details

convert(self, field, value)

Perform convertion of value coming from database value if nessesary.

dateDB(self, value)

Convert a date to its database format.

dateString(self, value)

Convert a date from database format to string.

escape(self, value)

Prepare string values for db by escaping special characters.

eventControls(self)

Are there event controls on this event list.

getAllComponentStatus(self, statclass, countField=None, severity=3, state=1, where='')

Fetch the counts on all components matching statClass

getComponentStatus(self, device, component, statclass=None, countField=None, severity=3, state=1, where='')

see IEventStatus

getDashboardInfo(self, simple=False, organizer='Devices', REQUEST=None)

Return a dictionary that has all info for the dashboard.

getDeviceDashboard(self, simple=False)

return device info for bad device to dashboard

getDeviceIssues(self, severity=1, state=0, where='', mincount=0, limit=0)

Return list of tuples (device, count, total) of events for all devices with events.

getDevicePingIssues(self, state=2, limit=0)

Return devices with ping problems.

getDeviceStatus(self, device, statclass=None, countField=None, severity=3, state=None, where='')

see IEventStatus

getDeviceStatusIssues(self, severity=4, state=1, limit=0)

Return only status issues.

getEventActions(self)

Return a list of possible event actions.

getEventCssClass(self, severity, acked=False)

return the css class name to be used for this event.

getEventDetail(self, evid=None, dedupid=None, better=False)

Return an EventDetail object for a particular event.

getEventList(self, resultFields=[], where='', orderby='', severity=None, state=2, startdate=None, enddate=None, offset=0, rows=0, getTotalCount=False, filter='', **kwargs)

see IEventList.

getEventOwnerList(self, where='', severity=0, state=1)

Return a list of userids that correspond to the events in where. select distinct ownerid from status where device="win2k.confmon.loc" and eventState > 2

getEventOwnerListME(self, me, severity=0, state=1)

Return list of event owners based on passed in managed entity.

getEventResultFields(self, context)

Result fields for everything else.

getEventStates(self)

Return a list of possible event states.

getEventSummary(self, where='', severity=1, state=1, prodState=None)

Return a list of tuples with number of events and the color of the severity that the number represents.

getEventSummaryME(self, me, severity=1, state=1, prodState=None)

Return a list of tuples with number of events and the color of the severity that the number represents.

getFieldList(self)

Return a list of all fields in the status table of the backend.

getGenericStatus(self, me)

Return status based on a where clause defined for the me event_type. No fancy caching done this might be a little slow if there are a lot of events. Where clause is evaled

getHeartbeat(self, failures=True, simple=False, limit=0, db=None)

Return all heartbeat issues list of tuples (device, component, secs)

getJSONEventsInfo(self, context, offset=0, count=50, getTotalCount=True, startdate=None, enddate=None, filter='', severity=2, state=1, orderby='', **kwargs)

Event data in JSON format.

getOrganizerStatus(self, org, statusclass=None, severity=None, state=0, where='')

see IEventStatus

getOrganizerStatusIssues(self, event_key, severity=4, state=0, where='', limit=0)

Return list of tuples (org, count) for all organizers with events.

getOrganizerSummary(self, rootname='Systems', template='', simple=False)

Return systems info for dashboard.

getPriorities(self)

Return a list of tuples of priorities [('Warning', 3), ...]

getPriorityString(self, priority)

Return the priority name

getSeverities(self)

Return a list of tuples of severities [('Warning', 3), ...]

getSeverityString(self, severity)

Return a list of tuples of severities [('Warning', 3), ...]

getStatusImgSrc(self, status)

Return the img source for a status number

getSummaryDashboard(self, REQUEST=None)

Build summary of serveral zope servers

getWmiConnIssues(self, state=2, limit=0)

Return devices with WMI connection failures.

installIntoPortal(self)

Install skins into portal.

isDate(self, colName)

Check to see if a column is of type date.

loadSchema(self)

Load schema from database. If field is a date set value to true.

lookupManagedEntityField(self, event_key)

Lookup database field for managed entity default is event_key.

lookupManagedEntityResultFields(self, event_key)

Lookup and result fields for managed entity.

lookupManagedEntityWhere(self, me)

Lookup and build where clause for managed entity.

manage_ackEvents(self, evids=(), REQUEST=None)

Ack the given event ids

manage_addCommand(self, id, REQUEST=None)

add a new EventCommand

manage_addEvent(self, REQUEST=None)

Create an event from user supplied data

manage_addLogMessage(self, evid=None, message='', REQUEST=None)

Add a log message to an event

manage_clearCache(self, REQUEST=None)

Reset cache values

manage_clearHeartbeats(self, REQUEST=None)

truncate heartbeat table

manage_createEventMap(self, eventClass=None, evids=(), REQUEST=None)

Create an event map from an event or list of events.

manage_deleteAllEvents(self, devname, REQUEST=None)

Delete the events for a given Device (used for deleting the device

manage_deleteCommands(self, ids, REQUEST=None)

add a new EventCommand

manage_deleteEvents(self, evids=(), REQUEST=None)

Delete the given event ids

manage_editCache(self, timeout=5, clearthresh=20, REQUEST=None)

Reset cache values

manage_editEventManager(self, REQUEST=None)

Call zmanage_editProperties then take care of saving a few values to ZenEventHistory

manage_refreshConversions(self, REQUEST=None)

get the conversion information from the omnibus server

manage_undeleteEvents(self, evids=(), REQUEST=None)

Move the given event ids into status and delete from history

sendEvent(self, event)

Send an event to the backend.

sendEvents(self, events)

Send a group of events to the backend.

zmanage_editProperties(self, REQUEST=None)

Need to handle editing of history event fields differently
Overrides:
Products.ZenModel.ZenModelRM.ZenModelRM.zmanage_editProperties

_genuuid(self)

globally unique id based on timestamp, fqdn, and random number.

_setupDateRange(self, startdate=DateTime('2007/08/16 09:54:40.822 GMT-4'), enddate=DateTime('2007/08/15 09:54:40.822 GMT-4'))

Make a start and end date range that is at least one day long. returns a start and end date as a proper database element.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Manage EventManager',
  ('manage_deleteCommands',
   'manage_addCommand',
   'manage_addLogMessage',
   'manage_clearCache',
   'manage_refreshConversions',
   'manage_clearHeartbeats',
   'zmanage_editProperties',
...                                                                    

a

Type:
str
Value:
'Debug'                                                                

b

Type:
int
Value:
10                                                                    

componentField

Type:
str
Value:
'component'                                                            

ComponentResultFields

Type:
tuple
Value:
('eventClass', 'summary', 'firstTime', 'lastTime', 'count')            

ComponentWhere

Type:
str
Value:
"component = '%s'"                                                     

countField

Type:
str
Value:
'count'                                                                

defaultAvailabilityDays

Type:
int
Value:
7                                                                     

defaultEventId

Type:
tuple
Value:
('device', 'component', 'eventClass', 'eventKey', 'severity')          

defaultFields

Type:
tuple
Value:
('eventState', 'severity', 'evid')                                     

defaultPriority

Type:
int
Value:
3                                                                     

defaultResultFields

Type:
tuple
Value:
('device',
 'component',
 'eventClass',
 'summary',
 'firstTime',
 'lastTime',
 'count')                                                              

detailTable

Type:
str
Value:
'detail'                                                               

DeviceClassWhere

Type:
str
Value:
'"DeviceClass like \'%s%%\'" % me.getDmdKey()'                         

deviceField

Type:
str
Value:
'device'                                                               

DeviceGroupField

Type:
str
Value:
'DeviceGroups'                                                         

DeviceGroupWhere

Type:
str
Value:
'"DeviceGroups like \'%%|%s%%\'" % me.getDmdKey()'                     

DeviceResultFields

Type:
tuple
Value:
('component', 'eventClass', 'summary', 'firstTime', 'lastTime', 'count\
')                                                                     

DeviceWhere

Type:
str
Value:
'"device = \'%s\'" % me.getDmdKey()'                                   

eventActions

Type:
tuple
Value:
('status', 'history', 'drop')                                          

eventAgingHours

Type:
int
Value:
4                                                                     

eventAgingSeverity

Type:
int
Value:
4                                                                     

eventClassField

Type:
str
Value:
'eventClass'                                                           

EventClassInstWhere

Type:
str
Value:
'"eventClass = \'%s\' and eventClassKey = \'%s\'" % (                 \
               me.getEventClass(), me.eventClassKey)'                  

EventClassWhere

Type:
str
Value:
'"eventClass like \'%s%%\'" % me.getDmdKey()'                          

eventStateConversions

Type:
tuple
Value:
(('New', 0), ('Acknowledged', 1), ('Suppressed', 2))                   

factory_type_information

Type:
tuple
Value:
({'actions': ({'action': 'editEventManager',
               'id': 'edit',
               'name': 'Edit',
               'permissions': ('Manage DMD',)},
              {'action': 'editEventManagerFields',
               'id': 'edit',
               'name': 'Fields',
               'permissions': ('Manage DMD',)},
...                                                                    

firstTimeField

Type:
str
Value:
'firstTime'                                                            

getDashboardInfo__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfed8>                                   

getFieldList__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfed8>                                   

getJSONEventsInfo__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfed8>                                   

getJSONFields__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfed8>                                   

getSeverities__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfed8>                                   

IpAddressWhere

Type:
str
Value:
'"ipAddress=\'%s\'" % (me.getId())'                                    

lastTimeField

Type:
str
Value:
'lastTime'                                                             

LocationWhere

Type:
str
Value:
'"Location like \'%s%%\'" % me.getDmdKey()'                            

logTable

Type:
str
Value:
'log'                                                                  

manage_ackEvents__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

manage_addCommand__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_addEvent__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

manage_addLogMessage__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_clearCache__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_clearHeartbeats__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_createEventMap__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_deleteAllEvents__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

manage_deleteCommands__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_deleteEvents__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

manage_deleteHeartbeat__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

manage_editCache__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_editEventManager__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_refreshConversions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

manage_setEventStates__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

manage_undeleteEvents__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bfcc8>                                   

meta_types

Type:
tuple
Value:
()                                                                     

priorities

Type:
dict
Value:
{-1: 'None',
 0: 'Emergency',
 1: 'Alert',
 2: 'Critical',
 3: 'Error',
 4: 'Warning',
 6: 'Notice',
 8: 'Info',
...                                                                    

priorityConversions

Type:
tuple
Value:
(('None', -1),
 ('Emergency', 0),
 ('Alert', 1),
 ('Critical', 2),
 ('Error', 3),
 ('Warning', 4),
 ('Notice', 6),
 ('Info', 8),
...                                                                    

prodStateField

Type:
str
Value:
'prodState'                                                            

refreshConversionsForm

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x3020e70>                        

requiredEventFields

Type:
tuple
Value:
('device', 'summary', 'severity')                                      

sendEvent__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf3f8>                                   

sendEvents__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf3f8>                                   

severities

Type:
dict
Value:
{0: 'Clear', 1: 'Debug', 2: 'Info', 3: 'Warning', 4: 'Error', 5: 'Crit\
ical'}                                                                 

severityConversions

Type:
tuple
Value:
(('Critical', 5),
 ('Error', 4),
 ('Warning', 3),
 ('Info', 2),
 ('Debug', 1),
 ('Clear', 0))                                                         

severityField

Type:
str
Value:
'severity'                                                             

stateField

Type:
str
Value:
'eventState'                                                           

statusTable

Type:
str
Value:
'status'                                                               

SystemField

Type:
str
Value:
'Systems'                                                              

SystemWhere

Type:
str
Value:
'"Systems like \'%%|%s%%\'" % me.getDmdKey()'                          

zmanage_editProperties__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x10bf320>                                   

_properties

Type:
tuple
Value:
({'type': 'string', 'id': 'backend', 'mode': 'r'},
 {'type': 'string', 'id': 'username', 'mode': 'w'},
 {'type': 'string', 'id': 'password', 'mode': 'w'},
 {'type': 'string', 'id': 'host', 'mode': 'w'},
 {'type': 'string', 'id': 'database', 'mode': 'w'},
 {'type': 'int', 'id': 'port', 'mode': 'w'},
 {'type': 'text', 'id': 'defaultWhere', 'mode': 'w'},
 {'type': 'text', 'id': 'defaultOrderby', 'mode': 'w'},
...                                                                    

_relations

Type:
tuple
Value:
(('commands',
  <Products.ZenRelations.RelSchema.ToManyCont instance at 0x3027af8>),\
)                                                                      

Generated by Epydoc 2.1 on Thu Aug 16 09:55:09 2007 http://epydoc.sf.net