Package: smokeping
Version: 2.7.3-2
Severity: normal

Dear Maintainer,

I've been running a few small and medium sized smokeping installations
on Debian for a decade.  It's been a great tool diagnosing network
outages.  Upon upgrading from stretch to buster (2.6.11-3 -> 2.7.3-2),
hundreds of alert emails begun firing every poll.  All the Alerts are
configured with "edgetrigger = yes".

For example, here's one, among thousands (notice "was cleared"):

  Subject: [SmokeAlert] full-loss was cleared on ipv6.sites.mikrovps-hu

  Alert "full-loss" was cleared for 
https://smokeping.unzane.com/smokeping/smokeping.cgi?target=ipv6.sites.mikrovps-hu

  Pattern
  -------
  ==100%,==100%,==100%

  Data (old --> now)
  ------------------
  loss: 100%, 100%, 100%, 100%, 100%, 100%, 100%, 100%, 100%, 100%, 100%, 100%
  rtt: U, U, U, U, U, U, U, U, U, U, U, U

  Comment
  -------
  100% packet loss

Initially I discovered this was a problem with my FPing6 probe in
combination with a change introduced in the fping package upgrade
(explanation in fping NEWS.Debian.gz entry).  However, after fixing my
Probes, some Targets which really were down, continued to send emails
each polling cycle, defying the edgetrigger setting, and incorrectly
inverting "cleared" vs. "raised".

There is an issue¹ filed upstream that explains the bug, wherein Tobias
Oetiker (author) lackadaisically writes "edge trigger was not in the
original design".  The apparent abandonment of the edgetrigger feature
was merely in support of a patch² which increased syslog message
verbosity ("prevmatch" state, instead of being boolean, is now an
incremented number, breaking edgetrigger, merely so some log out put can
express how many times the alert matched).

IMHO, I have too many Alerts defined (not just some-loss/full-loss, but
also many flavors of rtt-50ms, etc.), with edgetrigger to reorganize and
double the Alerts into separate ==0%,==0%,==100% + ==100%,==0%,==0%
non-edgetrigger variants, than is worth the added syslog verbosity.
Besides, the edgetrigger parameter is well documented in four different
man pages.  As well as the loss of raised/cleared verbiage in the email
subjects which I have been accustomed to (and have sieve filters which
color the mail green or red via IMAP flags).  If the edgetriger feature
can't be fixed, then it's probably be best to remove it from the
documentation and have a NEWS.Debian entry warning of the breakage.

¹ https://github.com/oetiker/SmokePing/issues/183
² https://github.com/oetiker/SmokePing/pull/52

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (701, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-cloud-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages smokeping depends on:
ii  adduser                         3.118
ii  debianutils                     4.8.6.1
ii  fping                           4.2-1
ii  libcgi-fast-perl                1:2.13-1
ii  libconfig-grammar-perl          1.12-2
ii  libdigest-hmac-perl             1.03+dfsg-2
ii  libjs-cropper                   1.2.2-1
ii  libjs-prototype                 1.7.1-3
ii  libjs-scriptaculous             1.9.0-2
ii  librrds-perl                    1.7.1-2
ii  libsnmp-session-perl            1.14~git20130523.186a005-4
ii  liburi-perl                     1.76-1
ii  libwww-perl                     6.36-2
ii  lsb-base                        10.2019051400
ii  perl                            5.28.1-6
ii  postfix [mail-transport-agent]  3.4.5-1
ii  ucf                             3.0038+nmu1

Versions of packages smokeping recommends:
ii  apache2 [httpd-cgi]  2.4.38-3
ii  dnsutils             1:9.11.5.P4+dfsg-5.1
ii  echoping             6.0.2-10
ii  libsocket6-perl      0.29-1+b1

Versions of packages smokeping suggests:
ii  curl                   7.64.0-4
pn  libauthen-radius-perl  <none>
ii  libio-socket-ssl-perl  2.060-3
ii  libnet-dns-perl        1.19-1
ii  libnet-ldap-perl       1:0.6500+dfsg-1
ii  libnet-telnet-perl     3.04-1
ii  openssh-client         1:7.9p1-10

-- Configuration Files:
/etc/smokeping/config.d/Alerts changed [not included]
/etc/smokeping/config.d/Database changed [not included]
/etc/smokeping/config.d/General changed [not included]
/etc/smokeping/config.d/Probes changed [not included]
/etc/smokeping/config.d/Slaves changed [not included]
/etc/smokeping/config.d/Targets changed [not included]
/etc/smokeping/smokeping_secrets [Errno 13] Permission denied: 
'/etc/smokeping/smokeping_secrets'

-- no debconf information

-- 
Gerald Turner <gtur...@unzane.com>        Encrypted mail preferred!
OpenPGP: 4096R / CA89 B27A 30FA 66C5 1B80  3858 EC94 2276 FDB8 716D

Attachment: signature.asc
Description: PGP signature

Reply via email to