Module: check_mk
Branch: master
Commit: 939152f4368ce775f04b8fec955d56b06befe322
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=939152f4368ce7…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Sat Jan 10 00:09:49 2015 +0100
#1848 FIX df: title of pnp graphs for filesystem checks fixed
The title of pnp graphs for filesystem checks (df...) where broken since the new service
description
of these checks ("Filesystem ...") was introduced. This has been fixed now.
---
.werks/1848 | 12 ++++++++++++
ChangeLog | 1 +
pnp-templates/check_mk-df.php | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/1848 b/.werks/1848
new file mode 100644
index 0000000..86f453f
--- /dev/null
+++ b/.werks/1848
@@ -0,0 +1,12 @@
+Title: df: title of pnp graphs for filesystem checks fixed
+Level: 2
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1420844843
+
+The title of pnp graphs for filesystem checks (df...) where broken since the new service
description
+of these checks ("Filesystem ...") was introduced. This has been fixed now.
+
diff --git a/ChangeLog b/ChangeLog
index a1e1075..c484f00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -55,6 +55,7 @@
* 1463 FIX: juniper_screenos_mem, juniper_trpz_mem: pnp template fixed
* 1806 FIX: services check was not recognizing configured state when no service was
found
* 1840 FIX: oracle_tablespaces: fix implementation of magic factor
+ * 1848 FIX: df: title of pnp graphs for filesystem checks fixed...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/pnp-templates/check_mk-df.php b/pnp-templates/check_mk-df.php
index ae1645e..8e6e8a1 100644
--- a/pnp-templates/check_mk-df.php
+++ b/pnp-templates/check_mk-df.php
@@ -41,7 +41,7 @@ foreach ($NAME as $i => $n) {
# RRDtool Options
#$servicedes=$NAGIOS_SERVICEDESC
-$fsname = str_replace("_", "/", substr($servicedesc, 3));
+$fsname = str_replace("_", "/", substr($servicedesc,11));
$fstitle = $fsname;
# Hack for windows: replace C// with C:\