/usr/share/check_mk/checks-man/mem.win is in check-mk-server 1.2.6p12-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 | title: Usage of main memory and page file
agents: windows
catalog: os/kernel
license: GPL
distribution: check_mk
description:
This check measures the current usage of physical RAM and
of the Windows page file.
item:
{None}
inventory:
{mem.win} creates one check for each host that provides
data about the page file. If that information is missing,
a Unix-like system is assumed and the check {mem.used} is
being used instead.
examples:
# Set the default levels
memory_win_default_levels = {
"memory" : (80.0, 90.0), # alert at 80%/90% usage
"pagefile" : (2048, 1024), # alert, if less then 2/1 GB free
"average" : 60, # apply levels on 60-min average
}
# Disable memory levels for all hosts with the tag "test"
check_parameters += [
( { "memory" : (101.0, 101.0) },
[ "test" ], ALL_HOSTS, [ "Memory and pagefile" ] ),
]
perfdata:
Two variables: {memory}: the current memory usage in MB, {pagefile}: the
current page file usage in MB.
[parameters]
parameters (dict): This check uses a dictionary as parameter. The following
keys are defined:
{"memory"}: Warning and critical levels of memory usage. Floating point values
(e.g. {80.0}) are interpreted as percentages of {used} space. Integer values
(e.g. {2048}) are interpreted as MB of {free} space.
{"pagefile"} Warning and critical levels for page file usage. The same
rules apply as for {memory}.
{"average"} This optional parameters sets a value in minutes for averaging.
In that case all warn/crit levels are applied to the averaged values.
[configuration]
memory_win_default_levels (dict): Levels used by
all checks that are created by inventory.
|