In the global settings of Checkmk, you can configure how the instance should do filesystem housekeeping (delete files by age, regarding abandoned hosts, or in case of filesystem running out of space).



Configuration

The setting is named "Automatic disk space cleanup" and has these options:

Setup → General → Global settings → Automatic disk space cleanup

Screenshot of cleanup abandoned host files older than option within global settings

Automatic execution

You do not have to configure the execution of this manually; every Checkmk instance user has a cronjob for the diskspace feature, which gets executed  5 minutes after each hour.

Which files are handled?

When started manually or automatically by a cronjob, the diskspace command behaves like this:

  1. read in configuration (set in global settings)

  2. load plugins from ~/share/diskspace

  3. load custom plugins from ~/local/share/diskspace, if existent - yes, you can define additional plugins yourselves

  4. collect paths and time information of all paths defined in loaded plugins

  5. delete files according to configured settings


Beware that "Cleanup abandoned host files older than" only handles completely missing hosts, not specific missing services, whereas the other two settings would also remove left service files.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.


Related issues