/usr/share/check_mk/checks-man/cpu.threads 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 | title: Total number of current processes and threads
agents: linux, aix, freebsd, macosx, netbsd, openbsd, solaris
catalog: os/kernel
license: GPL
distribution: check_mk
description:
Monitor the number of processes and threads. If too many processes
and threads are found then the check results in a warning or critical
state. The default levels are set to {2000} and {4000}.
inventory:
A check of this type is created automatically on each Linux host.
The check parameter is set to {threads_default_levels}. If you
need individual levels for your hosts, please define this check
explicitely in {checks}.
perfdata:
On variable: the current number of threads and processes found on
the system.
examples:
checks += [
# set levels to 500 / 1000 on all hosts with tag "sap"
( ["sap"], ALL_HOSTS, "cpu.threads", None, (500, 1000) ),
# Exception for one specific host
( "megahost", "cpu.threads", None, (5000, 8000) ),
]
[parameters]
warn (int): Number of processes and threads at which a warning level
is triggered
crit (int): Number for a critical state
[configuration]
threads_default_levels (int, int): Levels used for all checks found
by inventory. This variable is preset to {(2000, 4000)}.
|