| Trees | Indices | Help |
|
|---|
|
|
1 #! /usr/bin/env python
2 ##############################################################################
3 #
4 # Copyright (C) Zenoss, Inc. 2007, all rights reserved.
5 #
6 # This content is made available according to terms specified in
7 # License.zenoss under the directory where your Zenoss product is installed.
8 #
9 ##############################################################################
10
11
12 from twisted.spread import pb
13
14 from Products.ZenEvents.Event import Event
15 pb.setUnjellyableForClass(Event, Event)
16
17 from zenoss.protocols.services import ServiceConnectionError
18 from Products.ZenHub.HubService import HubService
19 from Products.ZenHub.services.ThresholdMixin import ThresholdMixin
20 from Products.ZenHub.PBDaemon import translateError
21 from Products.Zuul import getFacade
22
23 import logging
24 log = logging.getLogger('zen.EventService')
27
28
30 HubService.__init__(self, dmd, instance)
31 self.config = self.dmd.Monitors.Performance._getOb(self.instance)
32 self.methodPriorityMap = {
33 'sendEvent': 0.0,
34 'sendEvents': 0.0,
35 }
36
37 @translateError
43
44 @translateError
47
48 @translateError
50 zep = getFacade('zep')
51 try:
52 return zep.getDevicePingIssues()
53 except ServiceConnectionError, e:
54 # ZEN-503: Don't print a traceback in this case
55 log.warn("Unable to contact ZEP.")
56 return None
57
58 @translateError
60 zep = getFacade('zep')
61 try:
62 return zep.getDeviceIssues()
63 except ServiceConnectionError, e:
64 # ZEN-503: Don't print a traceback in this case
65 log.warn("Unable to contact ZEP.")
66 return None
67
68 @translateError
71
72 @translateError
75
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1.1812 on Mon Jul 30 17:11:28 2012 | http://epydoc.sourceforge.net |