def __init__(self, nagcat, conf):
        """Initialize query with oids and host port information."""
        super(SNMPCombined, self).__init__(nagcat, conf)

        self.oids = set()
        self.update(conf)
        self.conf['walk'] = conf['walk']

        # Don't combine version 1 queries because the response can only
        # report one error and we can't tell if the others are ok or not
        if self.conf['version'] == "1":
            self.conf['oids'] = self.oids

        try:
            self.client = SnmpSession(
                    version=self.conf['version'],
                    community=self.conf['community'],
                    # Retry after 1 second for 'timeout' retries
                    timeout=1, retrys=int(self.conf['timeout']),
                    peername=self.conf['addr'],
                    _use_bulk=self._use_bulk)
        except netsnmp.SnmpError, ex:
            raise errors.InitError("Snmp Error: %s" % ex)
dataset/ETHPy150Open marineam/nagcat/python/nagcat/plugins/query_snmp.py/SNMPCombined.__init__/original