Werk #19621: Fix ntopng session cookie not refreshing after expiry
| Component | Ntopng integration | ||||||
| Title | Fix ntopng session cookie not refreshing after expiry | ||||||
| Date | May 13, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
Previously, after the ntopng session cookie expired, the integration would fail with the error "No ntopng interfaces found". Re-adding the same user would not resolve the issue — only adding a new user would temporarily fix it, until the session expired again.
The session cookie is cached to disk after first login and reused on every subsequent request. ntopng makes this hard to detect by returning HTTP 200 even for expired sessions, either with a non-JSON response (e.g. an HTML login redirect) or a JSON response with a non-zero return code.
The integration now detects both failure signals and automatically invalidates the stale cookie, fetches a fresh session, and retries the request — all transparently. No user action is required.