The $repeat_end is not defined when the first if clause is false, maybe '$alert_retention < 365' should be "$alert_retention <= 365", I am not sure, but doing this can eliminate the error.
However, it didn't affect sending alert email with changing different Re-Alert Cycle even this error pops up.
Environments: OS: ubuntu server 20.04 Cacti version: 1.2.12
Issue: cacti log shows syslog error when setting the "Re-Alert Cycle" in Alert Rules settings.
I just look around the code:
The $repeat_end is not defined when the first if clause is false, maybe '$alert_retention < 365' should be "$alert_retention <= 365", I am not sure, but doing this can eliminate the error.
However, it didn't affect sending alert email with changing different Re-Alert Cycle even this error pops up.