Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP Pool Crash Checkmk Raw Edition 2.2.0b8 #33

Closed
tzockt opened this issue May 22, 2023 · 15 comments
Closed

DHCP Pool Crash Checkmk Raw Edition 2.2.0b8 #33

tzockt opened this issue May 22, 2023 · 15 comments

Comments

@tzockt
Copy link

tzockt commented May 22, 2023

Hi,

ich hab mein CheckMK auf 2.2.0b8 geupdatet und erhalte bei den DHCP Pools aktuell immer crashes.
Falls weiter Infos benötigt werden, gerne im markieren :)

image

CheckMK Exception:

AttributeError ('tuple' object has no attribute 'get')

CheckMK Traceback:

  File "/omd/sites/home/lib/python3/cmk/base/agent_based/checking/_checking.py", line 413, in get_aggregated_result
    consume_check_results(
  File "/omd/sites/home/lib/python3/cmk/base/api/agent_based/checking_classes.py", line 494, in consume_check_results
    for subr in subresults:
  File "/omd/sites/home/lib/python3/cmk/base/api/agent_based/register/check_plugins.py", line 93, in filtered_generator
    for element in generator(*args, **kwargs):
  File "/omd/sites/home/lib/python3/cmk/base/api/agent_based/register/check_plugins_legacy.py", line 207, in check_result_generator
    subresults = _normalize_check_function_return_value(sig_function(**kwargs))
  File "/omd/sites/home/lib/python3/cmk/base/api/agent_based/register/check_plugins_legacy.py", line 168, in _normalize_check_function_return_value
    return list(subresults)
  File "/omd/sites/home/share/check_mk/checks/isc_dhcpd", line 95, in check_isc_dhcpd
    for check_result in check_dhcp_pools_levels(
  File "/omd/sites/home/lib/python3/cmk/base/check_legacy_includes/dhcp_pools.py", line 21, in check_dhcp_pools_levels
    for new_api_object in dhcp_pools.check_dhcp_pools_levels(free, used, pending, size, params):
  File "/omd/sites/home/lib/python3/cmk/base/plugins/agent_based/utils/dhcp_pools.py", line 32, in check_dhcp_pools_levels
    if (levels := params.get(f"{category}_leases")) is not None:
@philidinator
Copy link

Hi,

Same Problem with CheckMK 2.2.0p2 :(

Thanks

@snafus-io
Copy link

Leider bei mir auch ;(

@obkgroove21
Copy link

obkgroove21 commented Jul 20, 2023

Bei mir leider auch. Gibts hier schon Ideen/Ansätze?

@SeeJayEmm
Copy link

Experiencing the issue here as well
CheckMK 2.2.0p4
OPNsense 23.7.1_3-amd64

@Invisi
Copy link

Invisi commented Sep 13, 2023

Going by how the other check plugins (e.g. Windows[0]) behave and the parameters I could find in a local crash dump[2], I'm suspecting the isc_dhcp check definition[1] never got updated to the new dict-based default parameters.
The "auto-migration-wrapper-key" magic happens here.

[0] check_default_parameters={"free_leases": (10.0, 5.0)},
[1] isc_dhcpd_default_levels = (15.0, 5.0)
[2]

local_vars => {..., 'params': (15.0, 5.0)}
params => Parameters({'auto-migration-wrapper-key': (15.0, 5.0)})

@alan7000
Copy link

alan7000 commented Oct 9, 2023

Hello, is there a python developer who could patch this error? That would be nice because it's the only agent that exists and works almost perfectly.

@obkgroove21
Copy link

@thorstenspille : Kannst du hier helfen? :)

@thorstenspille
Copy link
Contributor

Das ist ein Bug in checkmk, ich habe dazu einen Thread im checkmk Forum auf gemacht.

@mac-linux-free
Copy link

Ich habe auch mein Check_MK downgegraded :)

@thorstenspille
Copy link
Contributor

Vorhin hab ich die Benachrichtigung von checkmk bekommen, in Version 2.2.0p15 wird es einen Fix geben.

@thorstenspille
Copy link
Contributor

@obkgroove21
Copy link

The problem is now fixed with the newest checkmk release 2.2.0p17:

https://forum.checkmk.com/t/release-checkmk-stable-release-2-2-0p17/43114

@alan7000
Copy link

I can confirm that the problem has been solved in version 2.2.0p17.

@JaapHoetmer
Copy link

JaapHoetmer commented Dec 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants