Skip to content

Commit 63296e1

Browse files
SilkePaintnerMattias Schlenker
authored andcommitted
pick-24 content-sync Qualiwochen
1 parent 0b0f51f commit 63296e1

File tree

2 files changed

+71
-42
lines changed

2 files changed

+71
-42
lines changed

src/common/de/monitoring_mysql.asciidoc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ password=MyPassword
188188
Sollten Sie auf dem Host mehrere MySQL-Instanzen mit verschiedenen Nutzernamen
189189
und Passwörtern betreiben, erstellen Sie einfach pro Instanz eine `.ini`-Datei nach dem
190190
folgenden Namensschema: `mysql_INSTANZ-ID.ini`
191+
--
192+
====
191193

192194

193195
=== Services einrichten
@@ -197,8 +199,7 @@ diesen Host eine xref:hosts_setup#services[Service-Erkennung] durchführen. Der
197199
Screenshot zeigt dabei nur eine Auswahl der auffindbaren Services:
198200

199201
image::mysql_discovery.png[]
200-
--
201-
====
202+
202203

203204

204205
== Erweiterte Konfiguration
@@ -379,9 +380,11 @@ handelt, können diese leicht auch ohne den Agenten ausgeführt werden. Unabhän
379380
vom verwendeten Betriebssystem muss der Shell bzw. der Kommandozeile vorher
380381
nur das jeweilige Konfigurationsverzeichnis bekannt gemacht werden.
381382

382-
383-
=== Diagnosemöglichkeiten unter Linux
384-
383+
[.tabs]
384+
====
385+
Linux::
386+
+
387+
--
385388
Prüfen Sie zuerst die für Ihren jeweiligen Host gültigen Verzeichnisse.
386389
387390
[{shell}]
@@ -417,10 +420,10 @@ selbst in einer kleinen und frischen MySQL-Umgebung mehrere Hundert Zeilen
417420
Ausgabe sehen.
418421
419422
// MA: Und was mache ich, wenn nicht? Wenn ich diesen Abschnitt gezielt lese, dann ja, weil es eben nicht richtig funktioniert.
420-
421-
422-
=== Diagnosemöglichkeiten unter Windows
423-
423+
--
424+
Windows::
425+
+
426+
--
424427
Um das Check-Plugin auf einem Windows-Host manuell anführen zu können, öffnen Sie
425428
zuerst eine Kommandozeile mit Admin-Rechten. Setzen Sie in dieser
426429
Kommandozeile nun die Umgebungsvariable `MK_CONFDIR`. Diese wird benötigt,
@@ -441,7 +444,8 @@ Zu diesen Zwecks liefert Windows das Bordwerkzeug `cscript` mit.
441444
----
442445
PS> cscript c:\ProgramData\checkmk\agent\plugins\mk_mysql.vbs
443446
----
444-
447+
--
448+
====
445449

446450
=== Mögliche Fehler und Fehlermeldungen
447451

src/common/en/monitoring_mysql.asciidoc

Lines changed: 57 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ mysql> GRANT REPLICATION CLIENT ON *.* TO 'checkmk'@'localhost';
8181

8282
=== Installing the plug-in
8383

84-
==== Linux
85-
84+
[.tabs]
85+
====
86+
Linux::
87+
+
88+
--
8689
ifdef::onprem[]
8790
The required `mk_mysql` plug-in can be found on your {CMK} server via [guihint]#Setup > Linux, Solaris, AIX files > Plugins# or alternatively in the `~/share/check_mk/agents/plugins/` directory.
8891
endif::[]
@@ -100,9 +103,10 @@ As soon as the script is in the specified directory, make it executable:
100103
----
101104
102105
This plug-in can of course also be run xref:agent_linux#async_plugins[asynchronously] if required.
103-
104-
==== Windows
105-
106+
--
107+
Windows::
108+
+
109+
--
106110
The Agent for Windows comes with a number of plug-ins as standard.
107111
That is why you will also find the plug-in for monitoring MySQL on your host
108112
after installing the agent. Simply copy this into the correct directory for use.
@@ -111,16 +115,20 @@ after installing the agent. Simply copy this into the correct directory for use.
111115
----
112116
PS> copy "c:\Program Files (x86)\checkmk\service\plugins\mk_mysql.vbs" c:\ProgramData\checkmk\agent\plugins\
113117
----
118+
--
119+
====
114120

115121

116122
=== Creating the configuration file
117123

118124
The configuration file that you create below - or xref:bakery[via the Agent Bakery] - is used as the only source for the MySQL monitoring settings.
119125
Any other configuration settings that may exist locally are not taken into account by {CMK}.
120126

121-
122-
==== Linux
123-
127+
[.tabs]
128+
====
129+
Linux::
130+
+
131+
--
124132
Then create a file with the name `mysql.cfg` in the
125133
xref:agent_linux#pluginconfig[configuration directory] (regular:
126134
`/etc/check_mk/`) for the {CMK} agent on the target host.
@@ -146,10 +154,10 @@ Saving the access data with the following command protects against unauthorized
146154
----
147155
{c-root} chmod 400 mysql.cfg
148156
----
149-
150-
151-
==== Windows
152-
157+
--
158+
Windows::
159+
+
160+
--
153161
On a Windows host, create a file named `mysql.ini` in the directory below:
154162
155163
.C:\ProgramData\checkmk\agent\config\mysql.ini
@@ -163,6 +171,9 @@ password=MyPassword
163171
If you run multiple MySQL instances with different usernames and passwords on
164172
the host, simply create one `.ini` file per instance using the following naming
165173
scheme: `mysql_INSTANCE-ID.ini`
174+
--
175+
====
176+
166177

167178
=== Creating services
168179

@@ -182,16 +193,20 @@ The plug-in for monitoring MySQL like so many others can be run
182193
asynchronously, for example to take longer runtimes into account for large
183194
MySQL instances.
184195

185-
==== Linux
186-
196+
[.tabs]
197+
====
198+
Linux::
199+
+
200+
--
187201
On a Linux host, the plug-in is only moved to a subdirectory of the plug-in
188202
directory. For example, if you only want to run the plug-in every 5 minutes,
189203
simply move the `mk_mysql` script to a subdirectory called `300`.
190204
Detailed instructions for the asynchronous execution of plugins can be found in
191205
the xref:agent_linux#async_plugins[article on the Linux agent].
192-
193-
==== Windows
194-
206+
--
207+
Windows::
208+
+
209+
--
195210
To run the plug-in asynchronously under Windows, adjust the configuration of
196211
the agent, and expand the `execution` section under `plugins`
197212
with the following entry:
@@ -209,6 +224,8 @@ plugins:
209224
You can find detailed instructions for the asynchronous execution of plug-ins
210225
on a Windows host in the article on the
211226
xref:agent_windows#customizeexecution[Windows agents].
227+
--
228+
====
212229

213230

214231
=== Additional options for the configuration files
@@ -346,10 +363,11 @@ Visual Basic scripts, they can easily be executed without the agent. Regardless
346363
of the operating system used, only the relevant configuration directory needs
347364
to be made known to the shell or to the command line.
348365

349-
350-
=== Diagnostic options under Linux
351-
352-
366+
[.tabs]
367+
====
368+
Linux::
369+
+
370+
--
353371
First check the applicable directories for your respective host.
354372
355373
[{shell}]
@@ -382,10 +400,10 @@ agent's plug-in directory.
382400
383401
If all rights have been granted to the database user correctly, you should now
384402
see several hundred lines of output even in a small and fresh MySQL environment.
385-
386-
387-
=== Diagnostic options under Windows
388-
403+
--
404+
Windows::
405+
+
406+
--
389407
In order to be able to run the Check plug-in on a Windows host manually, first
390408
open a command line with admin rights. Now set the `MK_CONFDIR`
391409
environment variable in this command line this is required so that the
@@ -406,7 +424,8 @@ Windows provides the on-board tool `cscript` for this purpose.
406424
----
407425
PS> cscript c:\ProgramData\checkmk\agent\plugins\mk_mysql.vbs
408426
----
409-
427+
--
428+
====
410429

411430
=== Possible errors and error messages
412431

@@ -456,8 +475,11 @@ xref:monitoring_mysql#benutzereinrichten[user setup] chapter.
456475

457476
=== On the MySQL host
458477

459-
==== Linux
460-
478+
[.tabs]
479+
====
480+
Linux::
481+
+
482+
--
461483
[cols="40,~",options="header"]
462484
|===
463485
|File path |Function
@@ -466,10 +488,10 @@ xref:monitoring_mysql#benutzereinrichten[user setup] chapter.
466488
|`/etc/check_mk/mysql.cfg` |The configuration file for the MySQL plug-in.
467489
|`/etc/check_mk/mysql.local.cfg` |Additional configuration file for specifying host-specific sockets.
468490
|===
469-
470-
471-
==== Windows
472-
491+
--
492+
Windows::
493+
+
494+
--
473495
[cols="40,~",options="header"]
474496
|===
475497
|File path |Function
@@ -479,6 +501,9 @@ xref:monitoring_mysql#benutzereinrichten[user setup] chapter.
479501
|`C:\Program Files (x86)\checkmk\agent\config\` |The usual configuration directory up to {CMK} version {v16}
480502
|`C:\Program Files (x86)\check_mk\plugins\` |The usual plug-ins directory up to {CMK} version {v16}
481503
|===
504+
--
505+
====
506+
482507

483508
ifdef::onprem[]
484509
=== On the {CMK} server

0 commit comments

Comments
 (0)