-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on Edgetrigger Alerts #183
Comments
Dear Team, |
unfortunately, edge trigger was not in the original design ... it may not work correctly under all circumstances ... I would suggest using two patterns:
|
I appreciate your helpfulness. It seem i solved my issue based on oetiker suggestion. I was excited because i have just upgrade from debian 8 to 10 and after the stormy night my postbox flooded due to I'm monitoring ~ 80 sites with smokeping. |
I am also seeing this issue with edgetrigger. I have moved to two separate alerts like Oetiker suggested above and the email flood has abated... For reference, I changed my alerts to this (please ignore their names, they haven't been updated in the config): +someloss +lossdetect As @karatha stated above, thank you @oetiker for making this tool. It's proved immensely helpful and makes my job much easier when it comes to understanding the state of my systems and network. |
There is also a Debian bug report about this issue: |
thanks! |
Integrate upstream patch[1] to fix mail loop issue #183[2]. This is a one-line patch without complexity who can be removed as soon as the upstream releases a new version. [1] oetiker/SmokePing@e9004e8 [2] oetiker/SmokePing#183 PR: 253161 Submitted by: OlivierW <[email protected]> git-svn-id: svn+ssh://svn.freebsd.org/ports/head@563789 35697150-7ecd-e111-bb59-0022644237b5
Integrate upstream patch[1] to fix mail loop issue #183[2]. This is a one-line patch without complexity who can be removed as soon as the upstream releases a new version. [1] oetiker/SmokePing@e9004e8 [2] oetiker/SmokePing#183 PR: 253161 Submitted by: OlivierW <[email protected]>
Integrate upstream patch[1] to fix mail loop issue #183[2]. This is a one-line patch without complexity who can be removed as soon as the upstream releases a new version. [1] oetiker/SmokePing@e9004e8 [2] oetiker/SmokePing#183 PR: 253161 Submitted by: OlivierW <[email protected]> git-svn-id: svn+ssh://svn.freebsd.org/ports/head@563789 35697150-7ecd-e111-bb59-0022644237b5
I would like some clarification on the edgetrigger behavior for Alerts.
I implemented a loss alert with the trigger pattern ==0%, ==0%, ==0% and edgetrigger was set to yes. The expected behavior is that there would be 1 email alert which raised the alert - and then 1 email when the alert was cleared.
The behavior being seen is emails being sent every polling cycle stating that the alert was raised.
I dove into Smokeping.pm and added some syslog to debug and found something that I can't explain the rationale. Currently on Line 2020-2024 $tree->{'prevmatch'.$s}{$_} is either set to 0 or is incremented by 1. This increment can make prevmatch any positive value, while match can only be 0 or 1. It breaks the edgetrigger functionality due to the condition on line 1882 if ($edgetrigger and $prevmatch != $match) and causes this block to resolve to true when it should actually be false. I would like some clarification on if this is intended or if this is an oversight from #52
The text was updated successfully, but these errors were encountered: