Beispiel #1
0
 def __init__(self,
              name='Discoverer',
              queue=None,
              shutdown=None,
              config=None,
              collectors=None):
     DefaultProcess.__init__(self,
                             name=name,
                             shutdown=shutdown,
                             config=config)
     self.queue = queue
     self.collectors = collectors
Beispiel #2
0
    def __init__(self,
                 name='Sender',
                 queue=None,
                 shutdown=None,
                 config=None):
        DefaultProcess.__init__(self,
                                name=name,
                                shutdown=shutdown,
                                config=config)
        self.queue = queue
        self.config = config

        self.zabbix_server = config.get('zabbix_server', '127.0.0.1')
        self.zabbix_port = int(config.get('zabbix_port', 10051))
        self.socket_timeout = int(config.get('socket_timeout', 5))
        self.zbx_header = 'ZBXD\1'