Open jrttr opened 9 months ago
same here! please update ;-)
Same issue here, can we please get an updated check?
Have the same issue. UniFi OS 3.2.7 on Cloudkey+ with Unifi Network Version 8.0.26.
@thorstenspille Will this project still be supported?
The issue can be resolved by modifying the check_unifi_os
method as follows:
def check_unifi_os(self):
_response = self.request("GET", url=self.url, allow_redirects=False)
self.is_unifios = _response.status_code == 200
As you've observed, the x-csrf-token
is no longer present in the response payload, resulting in self.is_unifios
consistently being set to false
. This creates a problem in the login method, as it relies on is_unifios
being true
to select the correct API endpoint. Consequently, the login process consistently fails. By implementing the revised method in ~/local/share/check_mk/agents/special/agent_unifi_controller
, the plugin should function properly once again.
/share/check_mk/agents/special/agent_unifi_controller
Header
x-csrf-token
is no longer available, so it is not possible to correctly determine whether unifiOS is being used. The wrong login URL is therefore used indef login()