Module: check_mk
Branch: master
Commit: 5e48fa815441715e759e918e71fb4ce5dec91094
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e48fa81544171…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 20 11:41:14 2011 +0200
FIX: local: fixed search for custom templates PNP template
---
ChangeLog | 1 +
pnp-templates/check_mk-local.php | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4833744..ee32a22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,7 @@
* Allow moving hosts from one to another config file
Checks & Agents:
+ * FIX: local: fixed search for custom templates PNP template
* FIX: if/if64: always generate unique items (in case ifAlias is used)
* FIX: ipmi: fix ugly ouput in case of warning and error
* FIX: vms_df: fix, was completely broken due to conversion to df.include
diff --git a/pnp-templates/check_mk-local.php b/pnp-templates/check_mk-local.php
index 1f3914f..9e55712 100644
--- a/pnp-templates/check_mk-local.php
+++ b/pnp-templates/check_mk-local.php
@@ -25,7 +25,7 @@
// try to find template matching a prefix of the service
// description first. Slashes are replaced by underscores.
-$template_dirs = array('.');
+$template_dirs = array('templates');
if (isset($this->config->conf['template_dirs'])) {
$template_dirs = $this->config->conf['template_dirs'];
}