Module: check_mk
Branch: master
Commit: 4c057669c6e2de60cb87b400e8875da65a2c4512
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c057669c6e2de…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Jul 22 16:54:37 2013 +0200
initial version of check manpage for statgrab_cpu and statgrab_load
---
checkman/statgrab_cpu | 7 +++++--
checkman/statgrab_load | 41 +++++++++++++++++++++++++++++++++--------
2 files changed, 38 insertions(+), 10 deletions(-)
diff --git a/checkman/statgrab_cpu b/checkman/statgrab_cpu
index 1a74d29..fbc06b6 100644
--- a/checkman/statgrab_cpu
+++ b/checkman/statgrab_cpu
@@ -5,9 +5,12 @@ license: GPL
distribution: check_mk
description:
This check measures the CPU utilization during the last check
- cycle. A level can be set only on {wait} (disk wait).
+ cycle.
- BERND: Hinweis auf statgrab-Plugin (HP) bzw. statgrab-Befehl (beide).
+ Make sure you have the statgrab binary available on the monitored
+ machine. Under HP-UX you also need to activate the hpux_statgrab agent plugin.
+
+ The check allways returns {OK} status.
perfdata:
Three variables: The percentage of time spent in {user}, {system} and {wait}
diff --git a/checkman/statgrab_load b/checkman/statgrab_load
index 1896dbb..009e4a9 100644
--- a/checkman/statgrab_load
+++ b/checkman/statgrab_load
@@ -4,16 +4,41 @@ catalog: os/kernel
license: GPL
distribution: check_mk
description:
- This check measures the CPU utilization during the last check
- cycle. A level can be set only on {wait} (disk wait).
+ This check measures and checks the averaged CPU load during the last check
+ cycle by using the statgrab tool of the operating system. The values
+ for 1, 5 and 15 minute average are sent, although the PNP template
+ shipped with check_mk only displays the 1 and 15 min average load.
- BERND: Hinweis auf statgrab-Plugin (HP) bzw. statgrab-Befehl (beide).
+ Make sure you have the statgrab binary available on the monitored
+ machine. Under HP-UX you also need to activate the hpux_statgrab agent plugin.
+ Note: The CPU load is the average number of processes that are
+ currently in the state "running". Do not mix this up with the
+ CPU "utiliziation" (which measures the current usage of the CPU
+ in percent).
+
+examples:
+ # Set default levels to a load of 4 and 8
+ cpuload_default_levels = (4.0, 8.0).
+
+ checks += [
+ # Use levels 4 (warning) and 8 (critical)
+ # on all hosts with the tag "unix"
+ (["unix"], ALL_HOSTS, "statgrab_load", None, (4, 8)),
+ ]
perfdata:
- Three variables: The percentage of time spent in {user}, {system} and {wait}
- (disk wait). The idle time can be computed by substracting those three values
- from 100%. The user value contains also {nice}.
+ Three values: The load average for 1, 5 and 15 minutes.
inventory:
- One check per host is created if the agent contains a {statgrab_cpu}
- section containing cpu information.
+ One check per host is created if the agent contains a {statgrab_load}
+ section.
+
+[parameters]
+warning (int): 15 minute average load at which a {WARN} is triggered.
+critical (int): 15 minute average load at which a {CRIT} state is triggered.
+
+[configuration]
+cpuload_default_levels (int, int): A pair of floats or integers: The default
+ levels. These levels are used for inventorized checks. This variable
+ is preset to {(5, 10)}
+