Cfengine configuration directory

Checking disk space in local filesystems

Relevant classes: any

To monitor the disk space in a local filesystem (i.e. not mounted via NFS) you can use the action 'disks' like this:

disks:
   /home  freespace=10%  inform=true force=true
   /var   freespace=20%  inform=true force=true define=clean_var

In this case if the free space in '/home' falls below 10% cfengine will inform you. In case the free space in '/var' falls below 20%, then cfengine will inform you and it also will define a class called: 'clean_var'.

It is important that you set 'force=true' otherwise cfengine will not check it as it (by default) won't check filesystems other than '/'.

Back to documentation