Snmp detection errors with connection test, debug crash

CMK version: 2.0.0p29 (CEE)

**OS version:**RHLE8

Error message: it just doesn’t detect any services, connection test fails but snmpwalk works

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

cmk --debug -vvII host.xxx
Discovering services and host labels on: host.xxx
host.xxx:
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.TCP
[cpu_tracking] Start [7fe36d2ef910]
[TCPFetcher] Fetch with cache settings: DefaultAgentFileCache(base_path=PosixPath('/omd/sites/CGNGER/tmp/check_mk/cache/hawkeye.cgn.cleverbridge.com'), max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Does not exist)
[TCPFetcher] Execute data source
Connecting via TCP to 10.0.32.224:6556 (5.0s timeout)
Closing TCP connection to 10.0.32.224:6556
[cpu_tracking] Stop [7fe36d2ef910 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
Trying to acquire lock on /omd/sites/CGNGER/var/check_mk/crashes/base/73f13c8e-95a5-11ed-8fc1-0050568b9bee/crash.info
Got lock on /omd/sites/CGNGER/var/check_mk/crashes/base/73f13c8e-95a5-11ed-8fc1-0050568b9bee/crash.info
Releasing lock on /omd/sites/CGNGER/var/check_mk/crashes/base/73f13c8e-95a5-11ed-8fc1-0050568b9bee/crash.info
Released lock on /omd/sites/CGNGER/var/check_mk/crashes/base/73f13c8e-95a5-11ed-8fc1-0050568b9bee/crash.info
Traceback (most recent call last):
  File "/omd/sites/CGNGER/bin/cmk", line 92, in <module>
    exit_status = modes.call(mode_name, mode_args, opts, args)
  File "/omd/sites/CGNGER/lib/python3/cmk/base/modes/__init__.py", line 69, in call
    return handler(*handler_args)
  File "/omd/sites/CGNGER/lib/python3/cmk/base/modes/check_mk.py", line 1542, in mode_discover
    discovery.do_discovery(
  File "/omd/sites/CGNGER/lib/python3/cmk/base/discovery.py", line 370, in do_discovery
    fetcher_messages=list(
  File "/omd/sites/CGNGER/lib/python3/cmk/base/checkers/_checkers.py", line 238, in fetch_all
    raw_data = source.fetch()
  File "/omd/sites/CGNGER/lib/python3/cmk/base/checkers/_abstract.py", line 163, in fetch
    return fetcher.fetch(self.mode)
  File "/omd/sites/CGNGER/lib/python3/cmk/fetchers/_base.py", line 251, in fetch
    return result.OK(self._fetch(mode))
  File "/omd/sites/CGNGER/lib/python3/cmk/fetchers/_base.py", line 274, in _fetch
    self.open()
  File "/omd/sites/CGNGER/lib/python3/cmk/fetchers/tcp.py", line 75, in open
    self._socket.connect(self.address)
ConnectionRefusedError: [Errno 111] Connection refused
cmk --snmpwalk -vv host.xxx
 host.xxx:
Walk on ".1.3.6.1.2.1"...
Executing BULKWALK of ".1.3.6.1.2.1" on  host.xxx
Executing SNMP GET of .1.3.6.1.2.1 on  host.xxx
=> [None] NOSUCHOBJECT
0 variables.
Walk on ".1.3.6.1.4.1"...
Executing BULKWALK of ".1.3.6.1.4.1" on  host.xxx
.1.3.6.1.4.1.39165.1.1.0 => [b'TV-IP420P'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.2.0 => [b'0'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.3.0 => [b'V5.4.3 build 180621'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.4.0 => [b'3c-8c-f8-a2-81-62'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.5.0 => [b'88'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.6.0 => [b'IPcamera'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.7.0 => [b'15 PERCENT'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.8.0 => [b'0.0 GB'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.9.0 => [b'0 PERCENT'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.10.0 => [b'256 MB'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.11.0 => [b'82 PERCENT'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.12.0 => [b'0'] 'INTEGER'
.1.3.6.1.4.1.39165.1.13.0 => [b'0.0.0.0'] 'IPADDR'
.1.3.6.1.4.1.39165.1.14.0 => [b'0.0.0.0'] 'IPADDR'
.1.3.6.1.4.1.39165.1.15.0 => [b'0.0.0.0'] 'IPADDR'
.1.3.6.1.4.1.39165.1.16.0 => [b'10.0.32.224'] 'IPADDR'
.1.3.6.1.4.1.39165.1.17.0 => [b'255.255.255.0'] 'IPADDR'
.1.3.6.1.4.1.39165.1.18.0 => [b'10.0.32.254'] 'IPADDR'
.1.3.6.1.4.1.39165.1.19.0 => [b'2023-01-16 14:58:22'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.20.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.21.0 => [b'H.264'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.22.0 => [b'MJPEG'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.23.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.24.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.25.0 => [b'0'] 'INTEGER'
.1.3.6.1.4.1.39165.1.26.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.27.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.28.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.29.0 => [b'ETHERNET'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.30.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.31.0 => [b'1'] 'INTEGER'
.1.3.6.1.4.1.39165.1.32.0 => [b'0.0.0.0'] 'IPADDR'
.1.3.6.1.4.1.39165.1.33.0 => [b'ntp.xxxx'] 'OCTETSTR'
.1.3.6.1.4.1.39165.1.34.0 => [b'0'] 'INTEGER'
.1.3.6.1.4.1.39165.1.34.0 => [b'ENDOFMIBVIEW'] 'ENDOFMIBVIEW'
.1.3.6.1.4.1.39165.1.34.0 => [b'ENDOFMIBVIEW'] 'ENDOFMIBVIEW'
34 variables.

This host is configured to use the CMK agent and not only SNMP.
Please check the host configuration if only SNMP is activated.

Thanks,
right, I’ve changed this. But same result, it does not work with SNMPv3 connection test:
Failed to initiate SNMP (Maybe name resolution issue)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.