[checkmk-commits] Check_MK Git: check_mk: AIX Agent: add debug support - not yet tested

git version control git at mathias-kettner.de
Tue Nov 20 09:26:59 CET 2012


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

Author: Florian Heigl <fh at mathias-kettner.de>
Date:   Tue Nov 20 09:17:47 2012 +0100

AIX Agent: add debug support - not yet tested

---

 agents/check_mk_agent.aix |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index da7951f..7e38e74 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -39,6 +39,14 @@ LOCALDIR=$MK_LIBDIR/local
 #Avoid problems with wrong decimal separators in other language verions of aix
 export LC_NUMERIC="en_US"
 
+# close standard input (for security reasons) and stderr
+if [ "$1" = -d ]
+then
+    set -xv
+else
+    exec <&- 2>/dev/null
+fi
+
 echo '<<<check_mk>>>'
 echo Version: 1.2.1i3
 echo AgentOS: aix



More information about the checkmk-commits mailing list