Module: check_mk
Branch: master
Commit: eb95364d44c2b5f0393ee32921eea1584df0d049
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb95364d44c2b5…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Mar 13 11:04:02 2017 +0100
4495 FIX mk_mysql.vbs: Fixed missing command if DB process runs as mysqld-nt.exe
Change-Id: I87d10d218af5fae151bad71db9ca462d67cf3e07
---
.werks/4495 | 11 +++++++++++
agents/windows/plugins/mk_mysql.vbs | 2 ++
2 files changed, 13 insertions(+)
diff --git a/.werks/4495 b/.werks/4495
new file mode 100644
index 0000000..7e68574
--- /dev/null
+++ b/.werks/4495
@@ -0,0 +1,11 @@
+Title: mk_mysql.vbs: Fixed missing command if DB process runs as mysqld-nt.exe
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.4.0b4
+Date: 1489399150
+
+
diff --git a/agents/windows/plugins/mk_mysql.vbs b/agents/windows/plugins/mk_mysql.vbs
index 7999b41..f96691e 100644
--- a/agents/windows/plugins/mk_mysql.vbs
+++ b/agents/windows/plugins/mk_mysql.vbs
@@ -86,6 +86,7 @@ For Each instance In instances.Keys
' with the option --print-defaults
cmd = instances.Item(instance)
cmd = Replace(cmd, "mysqld.exe", "mysql.exe")
+ cmd = Replace(cmd, "mysqld-nt.exe", "mysql.exe")
cmd = Left(cmd, InStrRev(cmd, " ")) & " --print-defaults"
Set PROC = SHO.Exec(cmd)
PROC.StdIn.Close()
@@ -111,6 +112,7 @@ For Each instance In instances.Keys
' my.ini and instance name from the end of the command and add our config as
--defaults-extra-file.
cmd = instances.Item(instance)
cmd = Replace(cmd, "mysqld""", "mysql""")
+ cmd = Replace(cmd, "mysqld-nt""",
"mysql""")
cmd = Replace(cmd, "mysql""",
"mysql.exe""")
cmd = Left(cmd, InStr(cmd, "mysql.exe""")+9)
If cfg_file <> "" Then