Fix #745: warning realert window uses repeat_alert, not time_warning_fail_length - #805
Open
bmfmancini wants to merge 2 commits into
Open
Fix #745: warning realert window uses repeat_alert, not time_warning_fail_length#805bmfmancini wants to merge 2 commits into
bmfmancini wants to merge 2 commits into
Conversation
…ning_fail_length The type 2 warning re-alert window was computed from time_warning_fail_length (the warning time-window length) instead of repeat_alert (the configured re-alert interval). The $ra guard's truthy test used the same wrong field. This caused warning re-alerts to fire at a cadence controlled by the wrong setting. The alert path (thold_functions.php:3136) already uses repeat_alert correctly; this aligns the warning path to match.
somethingwithproof
requested changes
Aug 17, 2026
somethingwithproof
left a comment
Member
There was a problem hiding this comment.
The repeat_alert correction is directionally correct, but this branch also carries three unrelated threshold_value edits from #789. Please remove those hunks so this PR contains only #745, then add Cacti-Composer/Pest coverage for initial warning, no early re-alert, and re-alert at the configured interval. A syntax check cannot validate this state machine, and the current integration matrix is red.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #745.
The type 2 (time-based) warning re-alert window was computed from
time_warning_fail_length(the warning time-window length) instead ofrepeat_alert(the configured re-alert interval). The$raguard's truthy test used the same wrong field.Impact
Warning re-alerts fired at a cadence controlled by the wrong setting (
time_warning_fail_length) rather than the configured re-alert interval (repeat_alert).Fix
Both the
$realerttimecomputation and the$raguard now userepeat_alert, matching the alert path atthold_functions.php:3136.Testing
php -l thold_functions.php— no syntax errors.