-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.4.9
-
Component/s: Frontend (F), Server (S)
-
None
-
Environment:OS: Ubuntu 24.04.4 LTS (Noble Numbat) x86_64
Kernel: Linux 6.8.0-110-generic
CPU: 2 vCPU (Intel(R) Xeon(R) Gold 5315Y @ 3.19 GHz)
GPU: VMware SVGA II Adapter
Memory: 2 GB
Swap: 2 GB
Disk: 25 GB - ext4
Steps to reproduce:
- Configure Office365 Media type with OAuth authentication
- Test Media type -> Mail was successfully sent and recieved
- Triggers that send Alerts via the Office365 Media type work as intended for 1-2 Hours, afterwards they start failing
- Test Media type again -> Mail was successfully sent and recieved
- Triggers that send Alerts via the Office365 Media type work again
Result:

Expected:

Hypothesis:
Zabbix is not automatically refreshing the OAuth Token periodically, to ensure authentication remains valid.
Token refresh only works when manually triggered by either sending a test mail or reconfiguring the OAuth settings of the Office365 Media type.
According to Microsofts documentation, OAuth Tokens have varying lifetimes depending on a few different factors, perhaps Zabbix is not accounting for that.