1
2
3
4
5
6
7
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
36
37 @translateError
43
44 @translateError
47
48 @translateError
50 zep = getFacade('zep')
51 try:
52 return zep.getDevicePingIssues()
53 except ServiceConnectionError, e:
54
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
65 log.warn("Unable to contact ZEP.")
66 return None
67
68 @translateError
71
72 @translateError
75