/usr/share/check_mk/checks-man/mem.vmalloc is in check-mk-server 1.2.8p16-1ubuntu0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | title: Usage of Vmalloc address space
agents: linux
catalog: os/kernel
license: GPL
distribution: check_mk
description:
The linux kernel keeps a part of the available address
space free for usage by device drivers, e.g. for address
mappings of IO devices into the physical address space.
An example is the graphics driver used by the X server,
which needs address mappings for communicating with
the hardware. In {/proc/meminfo} that area is called
{VmallocTotal}. On 32 bit architectures this area has
a very limited size and is subject to fragmentation or
consumption by buggy graphics drivers.
This check monitors the current usage of the the vmalloc
address space and also the size of the largest available
chunk (indicating the degree of fragmentation).
inventory:
A check is created if {VmallocTotal} is available in
{/proc/meminfo} and only if the total size of the vmalloc
area is less then 4 GB. This is generally only possible
for 32 bit architectures.
Please add {mem.vmalloc} to {ignored_checktypes}
if you do not need this check.
perfdata:
Two variables: the current usage in MB and the size of
the largest chunk in MB.
examples:
# set warn/used for used size to 100 MB and 120 MB.
# set levels for largest chunk to 50% / 30% of total
# vmalloc size
mem_vmalloc_default_levels = (100, 120, 50.0, 30.0)
[parameters]
warn_used (int or float): the amount of used vmalloc space
triggering a warning. If the level is specified as an integer,
it is interpreted as an absolute value in MB. Float values
are interpreted as percentages of the total vmalloc area.
crit_used (int or float): used amount that triggers a critical state.
warn_chunk (int or float): if the size of the largest chunk reaches
that value or is below, a warning is triggered. The value is
in MB (int) or percentage of the total vmalloc area (float)
crit_chunk (int or float): critical level for the size of the
largest available chunk.
[configuration]
mem_vmalloc_default_levels (int/float, int/float, int/float, int/float):
Levels used by checks created by inventory. The default value is set
to {(80.0, 90.0, 64, 32)}.
|