Module: check_mk
Branch: master
Commit: ad74fdd3e3f93b766f4e423134ff4b199bc67c49
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad74fdd3e3f93b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Apr 17 14:49:50 2018 +0200
Fixed local and plugins section
Change-Id: I2346093736716205276db93520e79a43ae72502c
---
agents/check_mk_agent.linux | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 1f58f8e..98d4063 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -1161,7 +1161,7 @@ function is_valid_plugin () {
# Local checks
echo '<<<local>>>'
if cd "$LOCALDIR" ; then
- for skript in *.dpkg-{old,new,temp}; do
+ for skript in ./*; do
if is_valid_plugin "$skript"; then
./"$skript"
fi
@@ -1176,9 +1176,9 @@ fi
# Plugins
if cd "$PLUGINSDIR"; then
- for skript in *.dpkg-{old,new,temp}; do
+ for skript in ./*; do
if is_valid_plugin "$skript"; then
- ./"skript"
+ ./"$skript"
fi
done
# Call some plugins only every Xth second