Check manual page of diskstatMay 02. 2012
diskstatAuthor: Mathias Kettner License: GPL Distribution: official part of Check_MK Supported Agents: Linux
This check measures the throughput of block devices (disks) on Linux
hosts. You can either have a single check for every single disk
(which is the default) or a summary check summing up the throughput
of all disks.
For legacy reasons it is also possible (but not advisable) to have all disks
summarized but with a separate check for read and write (this is how this
check worked up to version 1.1.10).
You can apply separate warning and critical levels for the read
and write throughput. Optionally you can have the check compute
average values on a configurable time period and have the levels
applied on the average instead of the current values. This makes
it possible to ignore short "peaks" and only trigger and longer
phases of high disk activity.
ItemEither "SUMMARY" for a summarized check of alls disks or the
name of the disk device, e.g. "sda". In order to support configurations
up to version 1.1.10 also the items "read" and "write" are supported.
Check parameters
Performance dataThe disk throughput for read and write in bytes per second. If averaging
is turned on, then two additional values are sent: the averaged read and
write throughput.
In the legacy mode only one variable: the throughput since the last check
in in bytes(!) per second, either for read or for write.
InventoryThe inventory is configured via diskstat_inventory_mode. If this is set
to "single" (the default), then one check will be created for each
disk. If it is set to "summary" then only one service per host will be
created that has at least one hard disk. If set to "legacy" then a
separate check for read and write will be created (deprecated).
Configuration variables
Examplesmain.mk
# switch inventory behaviour to 1.1.10 mode
diskstat_inventory_mode = "legacy"
# alternative: create one check for all disks
diskstat_inventory_mode = "summary"
# Set default levels for diskstat
diskstat_default_levels = {
"read" : (10, 20), # level for read MB/sec
"write" : (20, 40), # level for write MB/sec
"average" : 15, # averaging in minutes
}
# Alternative: just enable averaging over 10 minutes,
# do not apply levels:
diskstat_default_levels = {
"average" : 15
}
# Settings for certain hosts:
check_parameters += [
( {"write" : (20, 50), "average" : 10 }, [ "oracle" ], ALL_HOSTS, [ "Disk IO" ])
]
|
| |||||||||||||||||||||||||||||||||