Werk #17764: agent_vsphere: Cookie invalidation every 4 hours

Component Checks & agents
Title agent_vsphere: Cookie invalidation every 4 hours
Date Apr 2, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Description

Added cookie invalidation mechanism to the vSphere special agent. Cookies older than 4 hours are now automatically invalidated, forcing a new login and cookie generation. This helps prevent issues with stale or expired authentication sessions. The agent continues to work as before.

Previously, the agent would only check if cookies exist but not their age, which could lead to authentication issues when the agent is scheduled to run infrequently (e.g., once or twice daily). Now, cookies are automatically invalidated after 4 hours, which matches vSphere's typical session timeout settings.

Effects

  • More reliable authentication with vSphere systems
  • No configuration changes required from users

To the list of all Werks