bashclub / check-unifi-controller

Checkmk special agent for checking unifi controller
https://sysops.tv
MIT License
40 stars 14 forks source link

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

Open Kev98710 opened 2 weeks ago

Kev98710 commented 2 weeks ago

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 commented 2 weeks ago

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]