Trees | Indices | Help |
|
---|
|
1 ############################################################################## 2 # 3 # Copyright (C) Zenoss, Inc. 2011, all rights reserved. 4 # 5 # This content is made available according to terms specified in 6 # License.zenoss under the directory where your Zenoss product is installed. 7 # 8 ############################################################################## 9 10 11 __doc__ = '''SyslogConfig 12 13 Provides configuration for syslog message to Zenoss event conversions. 14 ''' 15 16 import logging 17 log = logging.getLogger('zen.HubService.SyslogConfig') 18 19 import Globals 20 21 from Products.ZenCollector.services.config import CollectorConfigService 22 from Products.ZenHub.zodb import onUpdate, onDelete 23 2426 id = 'Syslog payload'27 2841 42 43 if __name__ == '__main__': 44 from Products.ZenHub.ServiceTester import ServiceTester 45 tester = ServiceTester(SyslogConfig) 48 tester.printDeviceProxy = printer 49 tester.showDeviceInfo() 5031 return [ FakeDevice() ]3234 proxy = CollectorConfigService._createDeviceProxy(self, device) 35 proxy.configCycleInterval = 3600 36 proxy.name = "Syslog Configuration" 37 proxy.device = device.id 38 39 proxy.defaultPriority = self.zem.defaultPriority 40 return proxy
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Mon Jul 30 17:11:16 2012 | http://epydoc.sourceforge.net |