Branch: refs/heads/2.1.0
Home:
https://github.com/Checkmk/checkmk
Commit: 95ca7021f48c1c8e066e50f7a04718e20899b909
https://github.com/Checkmk/checkmk/commit/95ca7021f48c1c8e066e50f7a04718e20…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
M tests/unit/cmk/base/plugins/agent_based/test_logwatch_ec.py
Log Message:
-----------
add test to show current (buggy) behavior
Change-Id: Ia6c7fc55fb852bb1dfe07183242cb640c65b3e87
Commit: 3bd9d33a5339e802d693f65e7ab5804fda826d99
https://github.com/Checkmk/checkmk/commit/3bd9d33a5339e802d693f65e7ab5804fd…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
A .werks/15303
M cmk/base/plugins/agent_based/logwatch_ec.py
M tests/unit/cmk/base/plugins/agent_based/test_logwatch_ec.py
Log Message:
-----------
15303 FIX logwatch_ec: remove spool files after reading them
Before this fix spool files were only removed when they were too old or if
there were too many of them.
Spool files that got deleted after reading will be recreated if there was
an error while sending a message.
Change-Id: I7962a77ff83848e915651a6c054b4808e8438412
Commit: 3a5be3c4b10baa200b66e92b9daf38b2e441ef39
https://github.com/Checkmk/checkmk/commit/3a5be3c4b10baa200b66e92b9daf38b2e…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
M cmk/base/plugins/agent_based/logwatch_ec.py
Log Message:
-----------
simplify code
variable filename already contains an absolute path:
>> Path("/some/path") /
Path("/absolute/path")
PosixPath('/absolute/path')
Change-Id: I64362498c83bd4ffb343c0fb5c0c1681fdaf9d48
Commit: 3273c27bc9686809f3acb5ea4eb6b6157baac152
https://github.com/Checkmk/checkmk/commit/3273c27bc9686809f3acb5ea4eb6b6157…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
A .werks/15307
M cmk/base/plugins/agent_based/logwatch_ec.py
M tests/unit/cmk/base/plugins/agent_based/test_logwatch_ec.py
Log Message:
-----------
15307 FIX logwatch_ec: tcp remote forwarding: create one spool file per service
This Werk affects you if you have a logwatch_ec check which forwards
events to a remote syslog hosts and if you activated the option "Create
a separate check for each logfile".
In this case all separate services shared one spoolfile. This lead to
the problem, that one event in the spoolfile was displayed as one event
for each separate service (but it was only sent out once, when the
remote was reachable again).
In some conditions events might been unnoticeable dropped, because the
spoolfile was overwritten by another logwatch service.
Now each logwatch service will have their own spoolfile.
The spoolfiles will be automatically assigned to their logwatch service.
After all your logwatch_ec services sent all their spoolfiles out, you
may manually consult the following folder for <tt>spoolfile.*</tt>
files:
<tt>./var/check_mk/logwatch_spool/<hostname></tt>
If there are any spoolfiles in this folder, they could not be assigned
to a logwatch service. If you still want them to be forwarded, move them
to one of the hash folders, otherwise they can be deleted.
<tt>./var/check_mk/logwatch_spool/<hostname>/<<sha1_hash_of_item></tt>
SUP-16197
Change-Id: Ia5b55076d8ba292d0cc2329e638b42fe0b2d2f8c
Compare:
https://github.com/Checkmk/checkmk/compare/2751b9c3f843...3273c27bc968