[checkmk-commits] Check_MK Git: check_mk: jar_signature: make paths in plugin configurable

Mathias Kettner mk at mathias-kettner.de
Mon Aug 25 13:46:12 CEST 2014


Module: check_mk
Branch: master
Commit: 11ccbc7410c60cbe042f1d4b7b3c95bbfc8b6823
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=11ccbc7410c60cbe042f1d4b7b3c95bbfc8b6823

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Mon Aug 25 13:46:07 2014 +0200

jar_signature: make paths in plugin configurable

---

 agents/plugins/jar_signature |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/agents/plugins/jar_signature b/agents/plugins/jar_signature
index 257cac3..42a06b8 100755
--- a/agents/plugins/jar_signature
+++ b/agents/plugins/jar_signature
@@ -32,6 +32,11 @@
 JAVA_HOME=/home/oracle/bin/jdk_latest_version
 JAR_PATH=/home/oracle/fmw/11gR2/as_1/forms/java/*.jar
 
+# Let user override these defaults in a configuration file
+if [ -e $MK_CONFDIR/jar_signature.cfg ] ; then
+    . $MK_CONFDIR/jar_signature.cfg
+fi
+
 PATH=$JAVA_HOME/bin:$PATH
 
 echo "<<<jar_signature>>>"



More information about the checkmk-commits mailing list