[checkmk-commits] [tribe29/checkmk] feba04: 7489 mk_logwatch: optimize regex search

Lars noreply at github.com
Wed Jun 26 10:50:40 CEST 2019


  Branch: refs/heads/1.6.0
  Home:   https://github.com/tribe29/checkmk
  Commit: feba04675b0867b1eec0c28020f98faf9d26dccd
      https://github.com/tribe29/checkmk/commit/feba04675b0867b1eec0c28020f98faf9d26dccd
  Author: Moritz Kiemer <moritz.kiemer at tribe29.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    A .werks/7489
    M agents/plugins/mk_logwatch
    M tests/unit/agents/plugins/test_mk_logwatch.py

  Log Message:
  -----------
  7489 mk_logwatch: optimize regex search

For regular expressions in a logwatch section leading or trailing '.*' portions can be
a performance desaster. With long log lines, it can virtually render your system paralyzed.
If you are not using any rewrite patterns though, you can omit leading and trailing '.*'
expressions without changing the set of matched lines.

mk_logwatch now detects those cases, and will optimize the patterns accordingly.

Change-Id: I6056422f81b4d11630c2cdc2e4536bf74d759dd1


  Commit: 7c023426efd2e28d68e0bc438f9edf98075f9a86
      https://github.com/tribe29/checkmk/commit/7c023426efd2e28d68e0bc438f9edf98075f9a86
  Author: Moritz Kiemer <moritz.kiemer at tribe29.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    A .werks/7490
    M agents/plugins/mk_logwatch
    M tests/unit/agents/plugins/test_mk_logwatch.py

  Log Message:
  -----------
  7490 FIX mk_logwatch: enforce utf-8 encoding of config files

Previously it was merely assumed that the config files are utf-8 encoded.
To properly address issues with matching of non-ASCII characters we now
require that the config files are utf-8 encoded.

Configuration files that cannot be decoded will be skipped, and the corresponding
service will go to {{UNKNOWN}}, displaying an appropriate message.

Change-Id: I05579503159ff06013f1134327572597111c4400


  Commit: b61448d464c95fd336a6fa2341e765953851b1a4
      https://github.com/tribe29/checkmk/commit/b61448d464c95fd336a6fa2341e765953851b1a4
  Author: Sergey Kipnis <sergey.kipnis at tribe29.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    M agents/wnx/build_release.cmd
    M agents/wnx/call_deploy.cmd

  Log Message:
  -----------
  [CMK-2245] [CMK-2230] - check_mk_agent_update.msiis removed from installation, because we do not need it.

Change-Id: I1de29000f8b3c369e85262195449521b34c77045


Compare: https://github.com/tribe29/checkmk/compare/e6efe5688b14...b61448d464c9


More information about the checkmk-commits mailing list