def __init__(self, device=None, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.host = getattr(device, 'id', 'unknown')
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
     self._queue = {}
 def __init__(self, device=None, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.host = getattr(device, 'id', 'unknown')
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
     self._queue = {}
Ejemplo n.º 3
0
 def __init__(self, device, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.host = device.id
     self._wmi = None
     if socket.getfqdn().lower() == device.id.lower():
         self.host = "."
         device.zWinUser = device.zWinPassword = ""
     elif device.manageIp is not None:
         self.host = device.manageIp
     self.name = device.id
     self.user = device.zWinUser
     self.passwd = device.zWinPassword
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
 def __init__(self, device, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.host = device.id
     self._wmi = None
     if socket.getfqdn().lower() == device.id.lower(): 
         self.host = "."
         device.zWinUser = device.zWinPassword = ""
     elif device.manageIp is not None:
         self.host = device.manageIp
     self.name = device.id
     self.user = device.zWinUser
     self.passwd = device.zWinPassword
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
    def __init__(self, device=None, datacollector=None, plugins=[]):
        """
        Initializer

        @param device: remote device to use the datacollector
        @type device: device object
        @param datacollector: performance data collector object
        @type datacollector: datacollector object
        @param plugins: Python-based performance data collector plugin
        @type plugins: list of plugin objects
        """
        BaseClient.__init__(self, device, datacollector)
        self.device = device
        self.hostname = getattr(device, 'id', 'unknown')
        self.plugins = plugins
        self.results = []
        self._pools = getPool('adbapi executors')
Ejemplo n.º 6
0
 def __init__(self, device, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.host = device.id
     if device.zWbemProxy is not "":
         self.host = device.zWbemProxy
     elif socket.getfqdn().lower() == device.id.lower():
         self.host = "."
     elif device.manageIp is not None:
         self.host = device.manageIp
     self.name = device.id
     self.url = '%s://%s:%s' % (device.zWbemUseSSL and 'https'
                                or 'http', self.host, device.zWbemPort)
     self.creds = (device.zWinUser, device.zWinPassword)
     self._wbem = pywbem.WBEMConnection(self.url,
                                        self.creds,
                                        default_namespace='root/cimv2')
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
Ejemplo n.º 7
0
 def __init__(self, device, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.host = device.id
     if device.zWbemProxy is not "":
         self.host = device.zWbemProxy
     elif socket.getfqdn().lower() == device.id.lower(): 
         self.host = "."
     elif device.manageIp is not None:
         self.host = device.manageIp
     self.name = device.id
     self.url = '%s://%s:%s' % (
                     device.zWbemUseSSL and 'https' or 'http',
                     self.host,
                     device.zWbemPort)
     self.creds = (device.zWinUser, device.zWinPassword)
     self._wbem = pywbem.WBEMConnection(self.url, self.creds, 
                                         default_namespace='root/cimv2')
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
Ejemplo n.º 8
0
 def __init__(self, device=None, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []
Ejemplo n.º 9
0
 def __init__(self, device=None, datacollector=None, plugins=[]):
     BaseClient.__init__(self, device, datacollector)
     self.device = device
     self.datacollector = datacollector
     self.plugins = plugins
     self.results = []