Check manual page of dfFebruary 03. 2012
dfAuthor: Mathias Kettner License: GPL Distribution: official part of Check_MK Supported Agents: Linux, Windows, AIX, Solaris, VMS This check measures the usage of filesystems. The usage
is checked against a warning and a critical level, which
can be specified in numerous ways. Beware: on Linux and UNIX systems
the filesystem might reserve a certain amount for root (typical is 5%).
The reserved space is accounted for as used. This is consistant with
the percentage-column in the output of df. So your filesystem might
be at 100% in a situation where root still has 5% free space available.
As of version 1.1.9i9 Check_MK supports trends. This means that
the df check is now able to compute the change of the used space
over the time and can make a forecast into the future. It can estimate
the point of time where the filesystem will be full.
In the default configuration the check will compute the trend based on the
data of the last 24 hours. Similar like the CPU load this is done with
a logarithmic average that weights the more recent time more than time
farer away. Also data beyond the 24 hours will to some small degree be
reflected in the computation. The advantage of this algorithm is a more
precise prediction and a simpler implementation, which does not need any
access to any RRDs or similar storage.
Please note, that when a filesystem is started being monitored, then
the trend of the past is unknown and will be assumed to be zero. That means
that it will take at least one trend range of time until the trend approximately
reflects the reality.
ItemThe mount point of the filesystem (UNIX) or the drive
letter in upper case followed by a colon (Windows).
Check parameters
Performance dataOne or three values: The first value is the used space of the filesystem
in MB. Also the minimum (0 MB), maximum (size of the filesystem) and the warning and critical
levels in MB are provided. If you set the parameter "trend_perfdata" : True, then
two additional values are output: the change of the usage in MB per range
since the last check (e.g. in MB per 24 hours) and the averaged change (so called trend),
also in MB per range. Please note, that as of version 1.1.11i3, performance data for
trends is enabled per default. You can globally disable that in main.mk
with filesystem_default_levels["trend_perfdata"] = False.
Please note, that - until you use the storage type MULTIPLE in PNP4Nagios -
changing the parameter "trend_perfdata" will stop all updates to
your existing filesystem RRDs. You need either to delete or convert your RRDs
if you want to change.
Inventorydf supports inventory. All filesystem the agent reports
will be inventorized except mount points listed in
inventory_df_exclude_mountpoints and filesystem types
listed in inventory_df_exclude_fs. The Windows agent
only reports fixed disks. The Linux agent reports filesystems
that have a size and are not of type smbfs, tmpfs, cifs or nfs.
Configuration variables
Examplesmain.mk
# Set default levels for all filesystems to 90/95 (simple way)
filesystem_default_levels = (90, 95)
# alternative: Set default levels via new dictionary method:
filesystem_default_levels = {
"levels" : (80, 90), # levels in percent
"magic" : 0.8, # magic factor
"magic_normsize" : 20, # normsize in GB
"levels_low" : (50, 60), # magic never lowers levels below this (percent)
"trend_range" : 48, # hours
"trend_mb" : (10, 20), # MB of change during trend_range
"trend_perc" : (1, 2), # Percent change during trend_range
"trend_timeleft" : (72, 48), # run time left in hours until full
"trend_perfdata" : False # no performance data for trends
}
# alternative[2]: Just change the default partially
filesystem_default_levels["magic"] = 0.8
# Disable trend performance data (beware of exsting RRDs)
filesystem_default_levels["trend_perfdata"] = False
# Override warning/critical levels for all checks where
# levels are "filesystem_default_levels"
check_parameters = [
# Hosts with tag "vms" get 85/95
( (85, 95), ["vms"], ALL_HOSTS, [ "fs_" ] ),
# all /sapdata partitions will never be critical
( (101, 101), ALL_HOSTS, [ "fs_/sapdata$" ] ),
# Partitions below "/var" get 80/90 with magic factor 0.5
( (80, 90, 0.5), ALL_HOSTS, [ "fs_/var" ] ),
# /usr and /opt on hosts zlnx01 and zlnx02
( (98, 99), [ "zlnx01", "zlnx02" ], [ "fs_/usr$", "fs_/opt$" ] ),
# All filesystems on clusters get 80/95
( (80, 95), ALL_CLUSTERS, [ "fs_" ] ),
# Complex parameters in dictionary form
( {"levels":(80,90), "trend_range":48, "trend_mb":(20,40)},
[ "windows" ], ALL_HOSTS, [ "fs_" ]),
]
# Exclude temporary backup from inventory
inventory_df_exclude_mountpoints = [ "/mnt/backup" ]
# Exclude certain filesystems from being inventorized at all
inventory_df_exclude_fs = [ "iso9660", "romfs" ]
|
| |||||||||||||||||||||||||||||||||||||||