diff --git a/lib/utils.py b/lib/utils.py index 84e6967..d223015 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -1,7 +1,5 @@ -from asyncsnmplib.exceptions import SnmpNoConnection, SnmpNoAuthParams -from asyncsnmplib.utils import InvalidConfigException, snmp_queries +from asyncsnmplib.utils import snmp_queries from libprobe.asset import Asset -from libprobe.exceptions import CheckException, IgnoreResultException async def get_data( @@ -12,13 +10,6 @@ async def get_data( address = check_config.get('address') if address is None: address = asset.name - try: - state = await snmp_queries(address, asset_config, queries) - except SnmpNoConnection: - raise CheckException('unable to connect') - except (InvalidConfigException, SnmpNoAuthParams): - raise IgnoreResultException - except Exception: - raise - else: - return state + + state = await snmp_queries(address, asset_config, queries) + return state diff --git a/requirements.txt b/requirements.txt index 043abe5..6869f6f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -asyncsnmplib==0.1.10 -libprobe==0.2.29 +asyncsnmplib==0.1.11 +libprobe==0.2.35