Exemplo n.º 1
0
    def __init__(self, settings):
        super().__init__(settings)

        self.sampler = NetStat(hosts=self.nodes,
                               workers=self.workers,
                               user=self.ssh_username,
                               password=self.ssh_password)
Exemplo n.º 2
0
 def __init__(self, settings):
     super(Net, self).__init__(settings)
     self.nodes = settings.hostnames or list(self.get_nodes())
     self.net = NetStat(hosts=self.nodes,
                        user=self.ssh_username,
                        password=self.ssh_password)