Problem host snmp in cmk 2.0.0

Hi,

I cant configure snmp hosts in new cmk 2.0.0:

OMD[prueba]:~$ cmk --debug -vvI SAI-PNSTND
Discovering services and host labels on: SAI-PNSTND
SAI-PNSTND:
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.TCP
[cpu_tracking] Start [7fb59be03910]
Connecting via TCP to 10.11.30.81:6556 (5.0s timeout)
[cpu_tracking] Stop [7fb59be03910 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=5.010000001639128))]
Try aquire lock on /omd/sites/prueba/var/check_mk/crashes/base/79affec8-8321-11eb-91c1-b11a8a4bb464/crash.info
Got lock on /omd/sites/prueba/var/check_mk/crashes/base/79affec8-8321-11eb-91c1-b11a8a4bb464/crash.info
Releasing lock on /omd/sites/prueba/var/check_mk/crashes/base/79affec8-8321-11eb-91c1-b11a8a4bb464/crash.info
Released lock on /omd/sites/prueba/var/check_mk/crashes/base/79affec8-8321-11eb-91c1-b11a8a4bb464/crash.info
Traceback (most recent call last):
  File "/omd/sites/prueba/bin/cmk", line 92, in <module>
    exit_status = modes.call(mode_name, mode_args, opts, args)
  File "/omd/sites/prueba/lib/python3/cmk/base/modes/__init__.py", line 69, in call
    return handler(*handler_args)
  File "/omd/sites/prueba/lib/python3/cmk/base/modes/check_mk.py", line 1515, in mode_discover
    discovery.do_discovery(
  File "/omd/sites/prueba/lib/python3/cmk/base/discovery.py", line 367, in do_discovery
    fetcher_messages=list(
  File "/omd/sites/prueba/lib/python3/cmk/base/checkers/_checkers.py", line 246, in fetch_all
    raw_data = source.fetch()
  File "/omd/sites/prueba/lib/python3/cmk/base/checkers/_abstract.py", line 162, in fetch
    with self._make_fetcher() as fetcher:
  File "/omd/sites/prueba/lib/python3/cmk/fetchers/_base.py", line 189, in __enter__
    self.open()
  File "/omd/sites/prueba/lib/python3/cmk/fetchers/tcp.py", line 73, in open
    self._socket.connect(self.address)
socket.timeout: timed out
OMD[prueba]:~$ cmk D  SAI-PNSTND
execution time 0.0 sec | execution_time=0.000 user_time=0.000 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.000
OMD[prueba]:~$ ^C
OMD[prueba]:~$ cmk -D  SAI-PNSTND

SAI-PNSTND
Addresses:              10.11.30.81
Tags:                   [address_family:ip-v4-only], [agent:cmk-agent], [criticality:prod], [ip-v4:ip-v4], [networking:lan], [piggyback:auto-piggyback], [site:prueba], [snmp:snmp], [snmp_ds:snmp-v1], [tcp:tcp]
Labels:
Host groups:            check_mk
Contact groups:         check-mk-notify, all
Agent mode:             Normal Checkmk agent, or special agent if configured
Type of agent:
  TCP: 10.11.30.81:6556
  SNMP (Community: 'F1n3tw0rk', Bulk walk: no, Port: 161, Backend: Classic)
  Process piggyback data from /omd/sites/prueba/tmp/check_mk/piggyback/SAI-PNSTND
Services:
  checktype item params description groups
  --------- ---- ------ ----------- ------
OMD[prueba]:~$ cmk --debug -vvn SAI-PNSTND
Checkmk version 2.0.0
Try license usage history update.
Try aquire lock on /omd/sites/prueba/var/check_mk/license_usage/next_run
Got lock on /omd/sites/prueba/var/check_mk/license_usage/next_run
Try aquire lock on /omd/sites/prueba/var/check_mk/license_usage/history.json
Got lock on /omd/sites/prueba/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/prueba/var/check_mk/license_usage/history.json
Released lock on /omd/sites/prueba/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/prueba/var/check_mk/license_usage/next_run
Released lock on /omd/sites/prueba/var/check_mk/license_usage/next_run
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.TCP
[cpu_tracking] Start [7fcd719eb640]
Connecting via TCP to 10.11.30.81:6556 (5.0s timeout)
[cpu_tracking] Stop [7fcd719eb640 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=5.009999997913837))]
Try aquire lock on /omd/sites/prueba/var/check_mk/crashes/base/e69b4d88-8323-11eb-91c1-b11a8a4bb464/crash.info
Got lock on /omd/sites/prueba/var/check_mk/crashes/base/e69b4d88-8323-11eb-91c1-b11a8a4bb464/crash.info
Releasing lock on /omd/sites/prueba/var/check_mk/crashes/base/e69b4d88-8323-11eb-91c1-b11a8a4bb464/crash.info
Released lock on /omd/sites/prueba/var/check_mk/crashes/base/e69b4d88-8323-11eb-91c1-b11a8a4bb464/crash.info
Traceback (most recent call last):
  File "/omd/sites/prueba/bin/cmk", line 98, in <module>
    exit_status = modes.call("--check", None, opts, args)
  File "/omd/sites/prueba/lib/python3/cmk/base/modes/__init__.py", line 69, in call
    return handler(*handler_args)
  File "/omd/sites/prueba/lib/python3/cmk/base/modes/check_mk.py", line 1616, in mode_check
    return checking.do_check(
  File "/omd/sites/prueba/lib/python3/cmk/base/decorator.py", line 37, in wrapped_check_func
    status, infotexts, long_infotexts, perfdata = check_func(hostname, *args, **kwargs)
  File "/omd/sites/prueba/lib/python3/cmk/base/checking.py", line 195, in do_check
    fetcher_messages = list(
  File "/omd/sites/prueba/lib/python3/cmk/base/checkers/_checkers.py", line 246, in fetch_all
    raw_data = source.fetch()
  File "/omd/sites/prueba/lib/python3/cmk/base/checkers/_abstract.py", line 162, in fetch
    with self._make_fetcher() as fetcher:
  File "/omd/sites/prueba/lib/python3/cmk/fetchers/_base.py", line 189, in __enter__
    self.open()
  File "/omd/sites/prueba/lib/python3/cmk/fetchers/tcp.py", line 73, in open
    self._socket.connect(self.address)
socket.timeout: timed out
OMD[prueba]:~$

Your host is configured for agent and SNMP.
The error message comes from the timeout of the agent connect. Can you please remove/deactivate the configured agent?

Hi,

we configured no agent in this host:

:(.

regards

PD: de snmp comunity in folder rule:

hi,
When I try test it seems ok:

regards

Hi,

I think the key is :

can you check?

regards

Hi,

It look like the same with other host:



problems in python 3 to parse null or “” to integer?

regards

Your first post was a completely different error message. Please don’t mix different problems.

The floating point error message comes from an UPS what produces no good data on the SNMP output and the last on is a switch with wrong implemented PoE MIB.

First you have to inspect the output of your devices. That is not a CMK 2 problem but more a generic problem with your devices. For instance if the switch is not PoE enabled but it has the capability then this error can be normal and you need to configure this check as an “forbidden” check for this device.

Hi,

How can we configure this check as an "forbiden"check for our switch?

Regards.

Hi,
we try this rule but nothing change:

what is wrong?

regards

Hi @andreas-doehler,

So sorry for mix this 2 checks. I had thowght thats the same error. sorry.

how do we can configurgure this check as an “forbidden” check for swich’s service?

for the other problem, in 1.6 cmk version it run ok. We dont know how fix. I think we will disble snmp and create custom checks for monitoring SAI.

regards

The rule you need to look for is “disabled checks”.
There you can define the check type you don’t want to discover on your switches.

Hi,

this no work :pensive:

something wrong?

regards

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