Alignak-monitoring-contrib / alignak-webui

Web User Interface for Alignak monitoring framework
GNU Affero General Public License v3.0
8 stars 4 forks source link

Many 404 error exceptions in the log #329

Closed mohierf closed 6 years ago

mohierf commented 6 years ago
[2017-09-16 08:21:54,704] ERROR: [alignak_webui.objects.element] __init__, realm (id = 59ae7b8a35d17b3d3dbf49bf) not found for <host, id: 59aed40c35d17bc3dbd2cf2a, name: important, status: UNREACHABLE>
[2017-09-16 08:21:54,853] WARNING: [alignak_webui.backend.backend] get, backend exception for realm/59ae7b8a35d17b3d3dbf49bf: Backend error code 404: Not found, response: None
[2017-09-16 08:21:54,853] ERROR: [alignak_webui.objects.element] __init__, realm (id = 59ae7b8a35d17b3d3dbf49bf) not found for <host, id: 59aed40d35d17bc3dbd2cf40, name: alignak_glpi, status: UP>
[2017-09-16 08:21:55,142] WARNING: [alignak_webui.backend.backend] get, backend exception for realm/59ae7b8a35d17b3d3dbf49bf: Backend error code 404: Not found, response: None
[2017-09-16 08:21:55,142] ERROR: [alignak_webui.objects.element] __init__, realm (id = 59ae7b8a35d17b3d3dbf49bf) not found for <command, id: 59aed40b35d17bc3dbd2cf03, name: check_dns, status: unknown>
[2017-09-16 08:21:55,284] WARNING: [alignak_webui.backend.backend] get, backend exception for realm/59ae7b8a35d17b3d3dbf49bf: Backend error code 404: Not found, response: None
[2017-09-16 08:21:55,284] ERROR: [alignak_webui.objects.element] __init__, realm (id = 59ae7b8a35d17b3d3dbf49bf) not found for <command, id: 59aed40b35d17bc3dbd2cf03, name: check_dns, status: unknown>
mohierf commented 6 years ago

When logged-in as a user that do not have access to all the realms, some items that are searched by the webui are not "visible" to the user. It is the case for the objects that are deaclred in the realm All with a _sub_realm set to True

@ddurieux: do something in the backend or in the WebUI ?

mohierf commented 6 years ago

I will catch the 404 and change log to warning but it is only a workaround :/