Module: check_mk
Branch: master
Commit: 3b8f33efc80c067b5b071dcf857577d3f3492aeb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3b8f33efc80c06…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jul 13 09:49:33 2015 +0200
#2401 windows agent: changed executionpolicy for powershell scripts to unrestricted
Powershell scripts were previously called with the execution policy
<i>RemoteSigned</i>
which did not work properly on certain windows systems.
---
.werks/2401 | 11 +++++++++++
ChangeLog | 1 +
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent-64.exe | Bin 302080 -> 302080 bytes
agents/windows/check_mk_agent-64.unversioned.exe | Bin 302080 -> 302080 bytes
agents/windows/check_mk_agent.cc | 2 +-
agents/windows/check_mk_agent.exe | Bin 183808 -> 183808 bytes
agents/windows/check_mk_agent.msi | Bin 734720 -> 734720 bytes
agents/windows/check_mk_agent.unversioned.exe | Bin 183808 -> 183808 bytes
agents/windows/install_agent-64.exe | Bin 179044 -> 179048 bytes
agents/windows/install_agent.exe | Bin 160003 -> 160001 bytes
11 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/2401 b/.werks/2401
new file mode 100644
index 0000000..bd23d03
--- /dev/null
+++ b/.werks/2401
@@ -0,0 +1,11 @@
+Title: windows agent: changed executionpolicy for powershell scripts to unrestricted
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1436773665
+Class: feature
+
+Powershell scripts were previously called with the execution policy
<i>RemoteSigned</i>
+which did not work properly on certain windows systems.
+
diff --git a/ChangeLog b/ChangeLog
index 3a93a3b..47d7f52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
* 2129 db_ checks: new mk_db2.linux agent supporting the existing db2_ checks
* 1269 esx_vsphere_counters.diskio: Check now uses the default diskstat
implementation...
NOTE: Please refer to the migration notes!
+ * 2401 windows agent: changed executionpolicy for powershell scripts to
unrestricted...
* 2315 FIX: windows agent: BOM replacement, fixed incorrect byte offset...
* 2316 FIX: windows agent: fix garbled output of cached agent plugins...
* 2358 FIX: check_mk_agent.solaris: more correct computation of zfs used space...
diff --git a/agents/windows/build_version b/agents/windows/build_version
index ca55a6c..8f897c8 100644
--- a/agents/windows/build_version
+++ b/agents/windows/build_version
@@ -1 +1 @@
-198
+202
diff --git a/agents/windows/check_mk_agent-64.exe b/agents/windows/check_mk_agent-64.exe
index 666b0f4..19646d0 100755
Binary files a/agents/windows/check_mk_agent-64.exe and
b/agents/windows/check_mk_agent-64.exe differ
diff --git a/agents/windows/check_mk_agent-64.unversioned.exe
b/agents/windows/check_mk_agent-64.unversioned.exe
index 3ca66e0..256dcef 100755
Binary files a/agents/windows/check_mk_agent-64.unversioned.exe and
b/agents/windows/check_mk_agent-64.unversioned.exe differ
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index 1c2cd52..7ff2878 100644
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -2783,7 +2783,7 @@ char *add_interpreter(char *path, char *newpath)
// 1.) The powershell interpreter needs to be in PATH
// 2.) The execution policy needs to allow the script execution
// -> Get-ExecutionPolicy / Set-ExecutionPolicy
- snprintf(newpath, 256, "powershell.exe -NoLogo -ExecutionPolicy RemoteSigned
\"& \'%s\'\"", path);
+ snprintf(newpath, 256, "powershell.exe -NoLogo -ExecutionPolicy Unrestricted
\"& \'%s\'\"", path);
return newpath;
}
else if (!strcmp(path + strlen(path) - 3, ".pl")) {
diff --git a/agents/windows/check_mk_agent.exe b/agents/windows/check_mk_agent.exe
index eedb2d9..5ab11c7 100755
Binary files a/agents/windows/check_mk_agent.exe and b/agents/windows/check_mk_agent.exe
differ
diff --git a/agents/windows/check_mk_agent.msi b/agents/windows/check_mk_agent.msi
index 3db52a5..ef72fa6 100755
Binary files a/agents/windows/check_mk_agent.msi and b/agents/windows/check_mk_agent.msi
differ
diff --git a/agents/windows/check_mk_agent.unversioned.exe
b/agents/windows/check_mk_agent.unversioned.exe
index 0573dc3..34c227c 100755
Binary files a/agents/windows/check_mk_agent.unversioned.exe and
b/agents/windows/check_mk_agent.unversioned.exe differ
diff --git a/agents/windows/install_agent-64.exe b/agents/windows/install_agent-64.exe
index 7ef306c..849a609 100755
Binary files a/agents/windows/install_agent-64.exe and
b/agents/windows/install_agent-64.exe differ
diff --git a/agents/windows/install_agent.exe b/agents/windows/install_agent.exe
index 1c31b2d..9c19565 100755
Binary files a/agents/windows/install_agent.exe and b/agents/windows/install_agent.exe
differ