Module: check_mk
Branch: master
Commit: 80595489c887187c0e15b6411ff5e5902f13e7ff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=80595489c88718…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 31 16:38:51 2016 +0200
3014 FIX windows_tasks.ps1: fixed incorrect text encoding for tasks with umlauts
---
.werks/3014 | 9 +++++++++
ChangeLog | 1 +
agents/windows/plugins/windows_tasks.ps1 | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3014 b/.werks/3014
new file mode 100644
index 0000000..943acb4
--- /dev/null
+++ b/.werks/3014
@@ -0,0 +1,9 @@
+Title: windows_tasks.ps1: fixed incorrect text encoding for tasks with umlauts
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1459435089
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 7ac1877..4490af2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -113,6 +113,7 @@
* 3306 FIX: docsis_channels_upstream: fixed missing channel handling
* 3307 FIX: dell_poweredge_netdev: does not discover disconnected network devices any
more
* 3309 FIX: zpool_status: fixed wrong error handling...
+ * 3014 FIX: windows_tasks.ps1: fixed incorrect text encoding for tasks with umlauts
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/windows/plugins/windows_tasks.ps1
b/agents/windows/plugins/windows_tasks.ps1
index c552f66..f77c1a1 100644
--- a/agents/windows/plugins/windows_tasks.ps1
+++ b/agents/windows/plugins/windows_tasks.ps1
@@ -2,7 +2,7 @@
# Monitor Windows Tasks
#
-Write-Host "<<<windows_tasks:sep(58)>>>"
+Write-Host "<<<windows_tasks:sep(58):encoding(cp437)>>>"
$lang = Get-UICulture | select -expand LCID
if ($lang -eq 1031){
$tasks = schtasks /query /fo csv -v | ConvertFrom-Csv