HeinleinSupport / check_mk_extensions

check_mk Plugins
https://www.heinlein-consulting.de/
GNU General Public License v2.0
233 stars 107 forks source link

rspamd check fails, when there are no mails scanned #71

Closed jsjhb closed 3 years ago

jsjhb commented 3 years ago

If there are no mails scanned, rspamc does not output the dict "actions", hence the check fails. Added test for existing "actions" section in info. Additionally, if there are no mails scanned, "total" remains 0, which fails the rate calculation later (division by zero).

Added pull request #70

gurubert commented 3 years ago

The issue is fixed in the rspamd extension for checkmk 2.0