Checkmk Raw - Monitoring host folder size

Checkmk Raw 2.2.0p27.cre

Hi all - I’m trying to set up folder size monitoring using the Heinlein Support dir_size plugin.

The problem is that I can’t get any new service/output to show on the site GUI.

The server is running on a Debian VM, and the host I want to monitor is bare metal Proxmox (although I also tried the below on an Unraid VM).

I couldn’t find any similar posts with enough detail to help.

I have installed the plugin on the site:

I pushed the plugin agent to the host via scp using
scp local/share/check_mk/agents/plugins/dir_size root@<host_ip>:/usr/lib/check_mk_agent/plugins

On the host, I created /etc/check_mk/dir_size.cfg, and pasted in the example from the docs on the plugin’s GitHub page, i.e.,

 check_parameters = [
  (("MB",300,500),ALL_HOSTS,["Size of /tmp/"]),
  (("GB",300,500),ALL_HOSTS,["Size of /usr/local/"])
 ]

[configuration]
params (3 tuple): unit, warn and crit

[parameters]
unit (string): B for Bytes, KB for Kilobytes, MB for Megabytes, GB for Gigabytes or TB Terrabytes
warn (int or None): Warning level
crit, (int or None): Critical level

I then ran a new service discovery for the host, but nothing showed up.

Does anyone have any idea where I went wrong or what I left out?

Many thanks

The agent plugin’s configuration file dir_size.cfg just contains a list of directories, nothing else. Read the code of the agent plugin.

What you read was the man page for the check plugin.

Thanks. On the host, dir_size.cfg is now simply:
image

But no new services appear. Is the syntax correct?

In the Disabled checks under Service discovery rules, I have:

Do I have that right?

Thanks again

You have disabled the entire check plugin. This causes no new services to appear.

I’ve removed dir_size from the disabled checks, but still nothing.