def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "" self.host = "localhost" self.port = 3128 self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "" self.host = "127.0.0.1" self.port = 7634 self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "stats\r\n" self.host = "localhost" self.port = 11211 self.unix_socket = None self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "INFO\r\n" self.host = "localhost" self.port = 6379 self.unix_socket = None self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "stats\r\n" self.host = "localhost" self.port = 11211 self._keep_alive = True self.unix_socket = None self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "EXPORT\tglobal\r\n" self.host = None # localhost self.port = None # 24242 # self._keep_alive = True self.unix_socket = "/var/run/dovecot/stats" self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self._keep_alive = False self.request = "" self.host = "127.0.0.1" self.port = 7634 self.order = ORDER self.definitions = CHARTS self.disk_count = 1 self.exclude = []
def __init__(self, configuration=None, name=None): if 'socket' in configuration: SocketService.__init__(self, configuration=configuration, name=name) self.poll = SocketService self.options_ = dict(regex=REGEX['socket'], stat='show stat\n', info='show info\n') else: UrlService.__init__(self, configuration=configuration, name=name) self.poll = UrlService self.options_ = dict(regex=REGEX['url'], stat=self.url, info=url_remove_params(self.url)) self.order = ORDER self.definitions = CHARTS
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self._keep_alive = False self.request = "" self.host = "127.0.0.1" self.port = 7634 self.order = ORDER self.fahrenheit = ('Fahrenheit', lambda x: x * 9 / 5 + 32) if self.configuration.get('fahrenheit') else False self.whatever = ('Whatever', lambda x: x * 33 / 22 + 11) if self.configuration.get('whatever') else False self.choice = (choice for choice in [self.fahrenheit, self.whatever] if choice) self.calc = lambda x: x self.disks = []
def __init__(self, configuration=None, name=None): if 'socket' in configuration: SocketService.__init__(self, configuration=configuration, name=name) self.poll_method = SocketService self.request = 'show stat\n' else: UrlService.__init__(self, configuration=configuration, name=name) self.poll_method = UrlService self.order = ORDER self.definitions = CHARTS self.order_front = [_ for _ in ORDER if _.startswith('f')] self.order_back = [_ for _ in ORDER if _.startswith('b')] self.charts = True
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.order = ORDER self.definitions = CHARTS self._keep_alive = True self.chart_name = "" self.host = self.configuration.get('host', 'localhost') self.port = self.configuration.get('port', 6379) self.unix_socket = self.configuration.get('socket') password = self.configuration.get('pass', str()) self.requests = dict(request='INFO\r\n'.encode(), password='******'.join(['AUTH', password, '\r\n']).encode() if password else None) self.request = self.requests['request']
def __init__(self, configuration=None, name=None): SocketService.__init__(self, configuration=configuration, name=name) self.request = "INFO\r\n" self.order = ORDER self.definitions = CHARTS self._keep_alive = True self.chart_name = "" self.passwd = None self.port = 6379 if 'port' in configuration: self.port = configuration['port'] if 'pass' in configuration: self.passwd = configuration['pass'] if 'host' in configuration: self.host = configuration['host'] if 'socket' in configuration: self.unix_socket = configuration['socket']