Module: check_mk
Branch: master
Commit: 8247fd0b8eea59cc73eb5b0584580236b038f301
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8247fd0b8eea59…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Jul 26 13:03:21 2013 +0200
initial version of check manpage for more statgrab_*
---
checkman/statgrab_disk | 4 ++--
checkman/statgrab_net.link | 16 ++++++++++++----
checkman/statgrab_net.params | 32 +++++++++++++++++++++++---------
3 files changed, 37 insertions(+), 15 deletions(-)
diff --git a/checkman/statgrab_disk b/checkman/statgrab_disk
index c4e0c33..4fba301 100644
--- a/checkman/statgrab_disk
+++ b/checkman/statgrab_disk
@@ -19,8 +19,8 @@ item:
examples:
# adding one service for Disk IO read and one for Disk IO write
checks += [
- ('statgrab', 'statgrab_disk', 'read', None),
- ('statgrab', 'statgrab_disk', 'write', None),
+ ('host1', 'statgrab_disk', 'read', None),
+ ('host1', 'statgrab_disk', 'write', None),
]
perfdata:
diff --git a/checkman/statgrab_net.link b/checkman/statgrab_net.link
index 3e7d618..5c73f69 100644
--- a/checkman/statgrab_net.link
+++ b/checkman/statgrab_net.link
@@ -4,22 +4,30 @@ catalog: os/network
license: GPL
distribution: check_mk
description:
- BERND, FIXME: where does it get target state from?
-
Checks the link state for an interface and compares it to it's target state.
Returns {OK} if link state is equal to the target state.
- Returns {WARN} if the link is UP and the target state is UNUSED.
+ Returns {WARN} if the link is UP and the target state is NO LINK.
- Returns {CRIT} if the state is NO LINK and the target state is UP.
+ Returns {CRIT} if the current state is NO LINK and the target state is UP.
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.
+examples:
+ # target state for interface bge0 on host1 is NO LINK
+ checks += [
+ ('host1', 'statgrab_net.link', 'bge0', False)
+ ]
+
item:
The interface name as defined in the operating system.
inventory:
Creates one check for each network interface.
+ When running inventory on a machine, the current state of an interface is
+ assumed to be the target state.
+[parameters]
+targetstate(bool): {true} for target state UP, {false} for target state NO LINK.
diff --git a/checkman/statgrab_net.params b/checkman/statgrab_net.params
index eaad10f..2bb60dc 100644
--- a/checkman/statgrab_net.params
+++ b/checkman/statgrab_net.params
@@ -4,16 +4,30 @@ catalog: os/network
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).
+ Checks the settings for speed and duplex of a network interface and compares
+ them to their target state.
- BERND: Hinweis auf statgrab-Plugin (HP) bzw. statgrab-Befehl (beide).
+ Returns {OK} if they are equal and {CRIT} if not.
-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}.
+ 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.
+
+examples:
+ # target settings for interface bge0 on host1 are a speed of 1000Mb/s
+ # and Unknown for the duplex state
+ checks += [
+ ('host1', 'statgrab_net.params', 'bge0',
('1000Mb/s', 'Unknown'))
+ ]
+
+item:
+ The interface name as defined in the operating system.
inventory:
- One check per host is created if the agent contains a {statgrab_cpu}
- section containing cpu information.
+ Creates one check for each network interface.
+ When running inventory on a machine, the current settings for speed and duplex
+ of an interface are assumed to be the target states.
+
+[parameters]
+targetstate(string, string): the target state for interface speed and the
+ target duplex state
+