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

After Console Update to Version 4, Checkmk Crashes. #23

Open
Kev98710 opened this issue Jul 6, 2024 · 2 comments
Open

After Console Update to Version 4, Checkmk Crashes. #23

Kev98710 opened this issue Jul 6, 2024 · 2 comments

Comments

@Kev98710
Copy link

Kev98710 commented Jul 6, 2024

I think the check_mk check crashes, after my Console did a major release Update from Version 3.x to Version 4.x some Minutes ago.

ValueError (invalid literal for int() with base 10: '')

File "/omd/sites/xxx/lib/python3/cmk/base/checking.py", line 581, in get_aggregated_result
result = _aggregate_results(check_function(**kwargs))
File "/omd/sites/xxx/lib/python3/cmk/base/checking.py", line 812, in _aggregate_results
perfdata, results = _consume_and_dispatch_result_types(subresults)
File "/omd/sites/xxx/lib/python3/cmk/base/checking.py", line 856, in _consume_and_dispatch_result_types
for subr in subresults:
File "/omd/sites/xxx/lib/python3/cmk/base/api/agent_based/register/check_plugins.py", line 89, in filtered_generator
for element in generator(*args, **kwargs):
File "/omd/sites/xxx/local/lib/python3/cmk/base/plugins/agent_based/unifi_controller.py", line 123, in check_unifi_controller
if int(section.cloudkey_update_available) > 0:

@Kev98710
Copy link
Author

Kev98710 commented Jul 6, 2024

sorry, Information incomplete:

{'item': 'Cloudkey',
'section': dictobject(None,
{'autobackup': '0',
'cloudkey_version': '4.0.6.3cc7293',
'controller_version': '8.2.93',
'hostname': 'xxx',
'name': 'xxx',
'previous_version': '8.0.28',
'timezone': 'Europe/Berlin',
'type': 'UCKP',
'ubnt_device_type': 'UCKP',
'update_available': '0',
'uptime': '1244'})}

Crash Type | check
Time | 2024-07-07 01:35:54
Operating System | Ubuntu 20.04.4 LTS
Checkmk Version | 2.0.0p18
Edition | cre
Python Version | 3.8.7 (default, Feb 3 2021, 02:48:47) [GCC 10.1.0]

@Kev98710
Copy link
Author

Kev98710 commented Aug 6, 2024

Update:

I uncommented the lines from 123 in the file "/omd/sites/xxx/local/lib/python3/cmk/base/plugins/agent_based/unifi_controller.py", regarding the "unifi update available check". This disables the check for available Unifi updates and resolves the problem quick and dirty, as I am unable to understand the error message to its full extent.

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

1 participant