1
2
3
4
5
6
7
8
9
10
11
12
13
14 from Products.DataCollector.plugins.CollectorPlugin import CollectorPlugin
15
17 """
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 )
29
31 return not getattr(device, 'zWmiMonitorIgnore', True)
32
34 for prop in self.deviceProperties:
35 if hasattr(device, prop):
36 setattr(proxy, prop, getattr(device, prop))
37
38 setattr(proxy, 'lastChange', getattr(device, '_lastChange', ''))
39
41 raise NotImplementedError
42
44 if isinstance(results, Exception):
45 log.error(results)
46 return None
47 return results
48