Trees | Indices | Help |
|
---|
|
1 ########################################################################### 2 # 3 # This program is part of Zenoss Core, an open source monitoring platform. 4 # Copyright (C) 2011 Zenoss Inc. 5 # 6 # This program is free software; you can redistribute it and/or modify it 7 # under the terms of the GNU General Public License version 2 or (at your 8 # option) any later version as published by the Free Software Foundation. 9 # 10 # For complete information please visit: http://www.zenoss.com/oss/ 11 # 12 ########################################################################### 13 14 __doc__ = '''SyslogConfig 15 16 Provides configuration for syslog message to Zenoss event conversions. 17 ''' 18 19 import logging 20 log = logging.getLogger('zen.HubService.SyslogConfig') 21 22 import Globals 23 24 from Products.ZenCollector.services.config import CollectorConfigService 25 from Products.ZenHub.zodb import onUpdate, onDelete 26 2729 id = 'Syslog payload'30 3144 45 46 if __name__ == '__main__': 47 from Products.ZenHub.ServiceTester import ServiceTester 48 tester = ServiceTester(SyslogConfig) 51 tester.printDeviceProxy = printer 52 tester.showDeviceInfo() 5334 return [ FakeDevice() ]3537 proxy = CollectorConfigService._createDeviceProxy(self, device) 38 proxy.configCycleInterval = 3600 39 proxy.name = "Syslog Configuration" 40 proxy.device = device.id 41 42 proxy.defaultPriority = self.zem.defaultPriority 43 return proxy
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:39 2011 | http://epydoc.sourceforge.net |