Module: check_mk
Branch: master
Commit: ed0c6a285efafb944be53a462698fce6951551a7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ed0c6a285efafb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 20 13:41:55 2012 +0200
Fixed template for latency and ios in diskstat
---
pnp-templates/check_mk-diskstat.php | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pnp-templates/check_mk-diskstat.php b/pnp-templates/check_mk-diskstat.php
index accbfb5..5718346 100644
--- a/pnp-templates/check_mk-diskstat.php
+++ b/pnp-templates/check_mk-diskstat.php
@@ -106,14 +106,14 @@ if (isset($DS[2])) {
# IOs per second
if (isset($RRD["ios"])) {
- $opt[2] = "--vertical-label 'IO Operations / sec' -X0 --title
\"IOs / sec $hostname / $disk\" ";
- $def[2] = ""
- . "DEF:latency=$RRD[latency] "
- . "AREA:latency#aaccdd:\"Latency\" "
- . "LINE:latency#7799aa "
- . "GPRINT:latency:LAST:\"%6.1lf ms last\" "
- . "GPRINT:latency:AVERAGE:\"%6.1lf ms avg\" "
- . "GPRINT:latency:MAX:\"%6.1lf ms max\\n\" "
+ $opt[3] = "--vertical-label 'IO Operations / sec' -X0 --title
\"IOs/sec $hostname / $disk\" ";
+ $def[3] = ""
+ . "DEF:ios=$RRD[ios] "
+ . "AREA:ios#ddccaa:\"ios\" "
+ . "LINE:ios#aa9977 "
+ . "GPRINT:ios:LAST:\"%6.1lf/sec last\" "
+ . "GPRINT:ios:AVERAGE:\"%6.1lf/sec avg\" "
+ . "GPRINT:ios:MAX:\"%6.1lf/sec max\\n\" "
;
}