Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Getting Started

Background information regarding this subject is available on our:


Checkmk Rules needed

Configuring the Checkmk Agent

...

The "Outcome & Action" section can remain unchanged, but in the Counting & Timing, we have two definitions:

Screenshot of force separate events for different host and applications enabled.Image Modified


The counting is done based on the hostname and the application. Forcing separate events for different match groups makes no sense here because the message text is stored in group 3, and as we all know, these texts sometimes contain IDs, timestamps, and similar unique strings.

...

In the Rewriting section, we can adjust the message text, application, and other variables that will be shown in the event views:

Screenshot of rewrite message textImage Modified


The message text will be replaced using the groups from above:

...

Clone the "unknown" rule and modify the following fields:

Screenshot of rule properties named WinEvtLog_4720Image Modified

The Regex

Using the long message text, we pick out the important information (colored) and create a regular expression pattern, starting with the one we already used in the "unknown" rule:

...

Fill in the new pattern in the "Text to match" field:

Screenshot of regex to matchImage Modified

Counting & Timing

The counting and timing also will be changed a bit:

Screenshot of location of Force separate events for different hosts, applications and match groups.Image Modified


For this kind of event, we want separate events if the match groups ("executing user name" and "affected user name") are different.

...

In the rewriting section, the texts are also adjusted to the newly defined event:

Screenshot of rewrite message text and application enabled.Image Modified


Further Rules and Performance Considerations

...

After that, your rule pack should look similar to this:

Screenshot of rule packsImage Modified


Testing these rules by creating and deleting a user on the monitored host results in the following events:

Screenshot of test eventsImage Modified

To get rid of the "unknown" events in-between, we can do two things:

...