Versions Compared

Key

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

...

  1. In the file C:\ProgramData\checkmk\agent\check_mk.user.yml, create a fileinfo section like this:

    Code Block
    languagepowershell
    themeRDark
    fileinfo:
    enabled: true
    path:
    - c:\temp\*.txt
    - c:\path\to\file.dat
    And restart

    .

  2. Restart the Checkmk agent.

Monitoring of single files

  1. Rediscover your host, and you will find the single files that you configured in Step 1, and you can add them to monitoring:

    After that, you can create rules to specify how to monitor those files.
    .
  2. Go to Click on the "hamburger" menu of that service and click "Parameters for this service."

    .
  3. Click on "Size and age of single files" to create a rule as desired,

...

Sometimes it is desired not to monitor the individual files but a file group instead. To do this, you need to create a rule on the type "File Grouping Patterns" There, you have to specify a name for the group, "Include Patterns," and optionally "Exclude Patterns."

  1. Go to Setup → Services → Service monitoring rules → Grouping Patterns → Add rule

    .
  2. After a Re-Discovery, the single file services will vanish, and the file group will appear, and you can add the new service to the monitoring.

    .
  3. After that, you can create Create a rule by clicking on the "hamburger menu" / Parameters for this service.

    .
  4. Click on "Size, age, and count of file groups" to create a rule as desired.


Example

Special case: file(s) does not exist during discovery

...