1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 from twisted.spread import pb
16
17 from Products.ZenEvents.Event import Event
18 pb.setUnjellyableForClass(Event, Event)
19
20 from zenoss.protocols.services import ServiceConnectionError
21 from Products.ZenHub.HubService import HubService
22 from Products.ZenHub.services.ThresholdMixin import ThresholdMixin
23 from Products.ZenHub.PBDaemon import translateError
24 from Products.Zuul import getFacade
27
28
36
37 @translateError
39 try:
40 return self.zem.sendEvent(evt)
41 except Exception, ex:
42 import logging
43 log = logging.getLogger('log')
44 log.exception(ex)
45
46 @translateError
49
50 @translateError
52 zep = getFacade('zep')
53 try:
54 return zep.getDevicePingIssues()
55 except ServiceConnectionError, e:
56 raise pb.Error("Unable to contact ZEP.")
57
58 @translateError
60 zep = getFacade('zep')
61 return zep.getDeviceIssues()
62
63 @translateError
66
67 @translateError
70