[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring the disk usage of the contents of a folder.

From: Martin Pala
Subject: Re: Monitoring the disk usage of the contents of a folder.
Date: Fri, 8 May 2015 11:34:01 +0200


the filesystem check doesn’t check the directory size … if you use path which belongs to some filesystem, the size of the parent filesystem is showed - not the directory.

There is standalone directory check, but it doesn’t support size check currently, but as it could be useful we may add it in the future.

You can use “check program” with custom “df” based script to check the directory size as a workaround.


On 08 May 2015, at 11:30, Borg Cardona, Jack <address@hidden> wrote:


As the subject suggests what i want to monitor is something pretty simple but i'm definitely not getting the right results. 

The rule I have is;

check filesystem "cgi_frozen_archive" with path /opt/splunk/frozenarchive/cgi
if space usage > 250 gb then alert

A 'monit status' outputs the following:

Filesystem 'cgi_frozen_archive'
status Accessible
monitoring status Monitored
permission 7374
uid 0
gid 254500250
filesystem flags 0x1000
block size 4.0 kB
space total 1.1 TB (of which 5.1% is reserved for root u


I'm concerned that the output is showing me the size of the folder not of its contents? Having looked through the manual - how can I adjust this rule to show the size of the folder's contents? Since there are multiple files in there and new ones being created by software on the system a fully defined path is not possible. 


To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]