Trees | Indices | Help |
|
---|
|
1 ########################################################################### 2 # 3 # This program is part of Zenoss Core, an open source monitoring platform. 4 # Copyright (C) 2007, 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 from Products.DataCollector.plugins.CollectorPlugin import CollectorPlugin 1517 """ 18 A WMIPlugin defines a native Python collection routine and a parsing 19 method to turn the returned data structure into a datamap. A valid 20 WMIPlugin must implement the process method. 21 """ 22 transport = "wmi" 23 deviceProperties = CollectorPlugin.deviceProperties + ( 24 'zWmiMonitorIgnore', 25 'zWinUser', 26 'zWinPassword', 27 'zWinEventlogMinSeverity', 28 'zWinEventlogClause', 29 ) 304932 return not getattr(device, 'zWmiMonitorIgnore', True)3335 for prop in self.deviceProperties: 36 if hasattr(device, prop): 37 setattr(proxy, prop, getattr(device, prop)) 38 # Do any other prep of plugin here 39 setattr(proxy, 'lastChange', getattr(device, '_lastChange', ''))40 43
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:56 2011 | http://epydoc.sourceforge.net |