def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.url = self.config.get('url', 'http://localhost:9200').rstrip('\n') user = self.config.get('user') passwd = self.config.get('password') self.client = elasticsearch.ElasticSearch(self.url, user, passwd)
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.queue = self.config.get('queue', 'celery') self.db = int(self.config.get('db', 0)) self.clipath = self.config.get('clipath', '/usr/bin/redis-cli')
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.spool = self.config.get('spool', '/var/spool/postfix') self.paths = [ 'active', 'deferred', 'maildrop', 'incoming', 'corrupt', 'hold', 'bounce' ]
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.devices = self.config.get('devices') self.tcache = {} self.trc = {} self.twc = {}
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.last_t = None self.ready = {} self.unack = {} self.last_ready = 0 self.last_unack = 0
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) host = self.config.get('ip', '127.0.0.1') port = int(self.config.get('port', 161)) # Must add v3 support community = self.config.get('community', None) self.snmp = SNMPConnection(host, port, community)
def __init__(self, *a): Source.__init__(self, *a) self.parser = parsers.ApacheLogParser( self.config.get('log_format', 'combined')) self.log = follower.LogFollower(self.config['file'], parser=self._parser_proxy, history=False) self.max_lines = int(self.config.get('max_lines', 2000))
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) try: import smbus except ImportError: raise Exception("MPL115 source requires python-smbus (smbus-cffi)") self.address = self.config.get('address', 0x60) self.bus = smbus.SMBus(self.config.get('smbus', 1)) self.altitude = self.config.get('altitude', 0.0) self.readCoefficients()
def __init__(self, *a): Source.__init__(self, *a) parser = parsers.ApacheLogParser( self.config.get('log_format', 'combined')) history = self.config.get('history', False) self.log = follower.LogFollower(self.config['file'], parser=parser.parse, history=history) self.max_lines = int(self.config.get('max_lines', 2000)) self.bucket_res = int(self.config.get('resolution', 10)) self.bucket = 0
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.host = self.config.get('host', '127.0.0.1') self.port = self.config.get('port', 11211)
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.url = self.config.get('url', 'unix:/var/run/docker.sock') self.cache = PersistentCache(location='/tmp/dockerstats.cache')
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.url = self.config.get('url', 'http://localhost/haproxy?stats;csv') self.user = self.config.get('user', 'haproxy') self.password = self.config.get('password', 'stats')
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.user = self.config.get('user', 'postgres') self.password = self.config.get('password', '') self.port = self.config.get('port', 5432) self.host = self.config.get('host', '127.0.0.1')
def __init__(self, *a): Source.__init__(self, *a) self.events = self.duct.eventCounter self.rtime = time.time()
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.devices = []
def __init__(self, *a, **kw): Source.__init__(self, *a, **kw) self.uc = self.config.get('executable', '/usr/sbin/unbound-control')
def __init__(self, *a): Source.__init__(self, *a) self.cpu = {} self.prev_total = {} self.prev_usage = {}