We’ve had exactly the same thing at home for a few updates now.
We have CheckMk permanently displayed on a browser tab (the latest version of Firefox) on a giant screen, and every morning we get the “Error fetching data” error. We’re obliged to refresh the page, it holds up well all day afterwards, and the next day we start all over again.
I have seen this in the past as well. I am not at all a web developer.
But from what I can tell, this happens, if the browser “suspends” the tab or the connection to the Checkmk site gets lost somehow (think “network outage”, or “firewall dropping connections”). A good old refresh should always clear this.
Can you comment on whether these assumptions are correct:
This happens after several hours or even a day, not earlier after a refresh.
You could also write a java script that scans for “Error fetching data” and triggers a refresh automatically if thats feasable for you. Would look something like:
function Error() {
var pageText = document.body.innerText;
if (pageText.includes("Error fetching data")
window.location.reload();
}
Have you checked for Session controls set in your Enterprise Application?
You can set sign in frequency there. I’m not sure if this actually affects the CheckMK Session timeout.
You can find it from Entra ID → Enterprise Applications → Your App → Security → Conditional Access
You need to modify or create a policy to change that setting.
To check if its set you will have to click on each policy you see there.
If you see a selected control under “Session” check if Sign-in frequency is set:
From there you see on the right the Sign-in frequency:
Very good suggestion, I’ll test the idle timeout and see tomorrow if it happens again.
The browser tab pausing is also a probability. This corresponds to setting the browser.tabs.unloadOnLowMemory variable to False in Firefox’s about:config.
But refreshing the page still helps, right? So using e.g. an add-on, which automatically reloads the page every X amount of time will work as a workaround, right?
I’ve set up a direct login with URL injection for our restricted user. No need to log on to the supervision screen. We’ll check tomorrow morning to see how it behaves.
If you are using a restricted Guest user Account, you could save the credentials in Firefox, install an Addon like Greasemonkey and add a java script that automatically clicks the login button if it detects the login mask.
Thank you for your response, but when the “Error fetching data” occurs, there is no login button, simply because there is no return to the login screen. Therefore, it is unfortunately not applicable.