Skip to content

Commit 0ee1e6e

Browse files
eseyffarthMattias Schlenker
authored andcommitted
pick-24 specify code blocks as HTML to prevent rendering errors
1 parent ba3c4d2 commit 0ee1e6e

File tree

2 files changed

+41
-24
lines changed

2 files changed

+41
-24
lines changed

src/common/de/agent_deployment.asciidoc

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ Da der Agent Updater für *Windows-Hosts* direkt durch den Agenten selbst ausgef
436436

437437
// Diff zwischen onprem und saas: agent_updater_registration vs. api_user
438438
ifdef::onprem[]
439-
[{shell}]
439+
[{cmd}]
440+
[.copybutton]
440441
----
441442
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register
442443
Using previous settings from C:\ProgramData\checkmk\agent\config\cmk-update-agent.state.
@@ -454,7 +455,7 @@ Successfully registered agent of host "mywindowshost" for deployment.
454455
endif::[]
455456

456457
ifdef::saas[]
457-
[{shell}]
458+
[{cmd}]
458459
----
459460
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register
460461
Using previous settings from C:\ProgramData\checkmk\agent\config\cmk-update-agent.state.
@@ -475,32 +476,40 @@ Alternativ können Sie die Registrierung auch im nicht-interaktiven Modus durchf
475476
Der komplette Befehl zur Registrierung sieht wie folgt aus:
476477

477478
// Diff zwischen onprem und saas: agent_updater_registration vs. api_user
479+
// ES: HTML-Darstellung angelehnt an vorigen Block-Inhalt https://github.com/Checkmk/checkmk-docs/blob/5765a90fbd731ea099e6be2e9d29cc355f06c919/src/common/de/agent_deployment.asciidoc?plain=1#L435
480+
478481
ifdef::onprem[]
479-
[{shell}]
480-
----
481-
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register ^
482+
++++
483+
<div class="listingblock copybutton">
484+
<div class="content">
485+
<pre class="pygments highlight"><code data-lang="doscon"><span></span><span class="tok-gp">C:\WINDOWS\system32&gt;</span> <span class="tok-s2">"C:\Program Files (x86)\checkmk\service\check_mk_agent.exe"</span> updater register ^
482486
-s myserver.example.com ^
483487
-i mysite ^
484488
-H mywindowshost ^
485489
-p https ^
486490
-U agent_updater_registration ^
487491
-S mysecret ^
488-
-v
489-
----
492+
-v</code></pre>
493+
</div>
494+
</div>
495+
++++
490496
endif::[]
491497

492498
ifdef::saas[]
493-
[{shell}]
494-
----
495-
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register ^
499+
++++
500+
<div class="listingblock copybutton">
501+
<div class="content">
502+
<pre class="pygments highlight"><code data-lang="doscon"><span></span><span class="tok-gp">C:\WINDOWS\system32&gt;</span> <span class="tok-s2">"C:\Program Files (x86)\checkmk\service\check_mk_agent.exe"</span> updater register ^
496503
-s myserver.example.com ^
497504
-i mysite ^
498505
-H mywindowshost ^
499506
-p https ^
500507
-U api_user ^
501508
-S mysecret ^
502-
-v
503-
----
509+
-v</code></pre>
510+
</div>
511+
</div>
512+
++++
504513
endif::[]
505514

506515
Mit der Option `-S` wird das Automationspasswort des Automationsbenutzers übergeben.

src/common/en/agent_deployment.asciidoc

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ Enter the required information in sequence.
435435
As the agent updater for *Windows hosts* is integrated into the agent itself, the command for registering it looks like this:
436436

437437
ifdef::onprem[]
438-
[{shell}]
438+
[{cmd}]
439+
[.copybutton]
439440
----
440441
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register
441442
Using previous settings from C:\ProgramData\checkmk\agent\config\cmk-update-agent.state.
@@ -453,7 +454,8 @@ Successfully registered agent of host "mywindowshost" for deployment.
453454
endif::[]
454455

455456
ifdef::saas[]
456-
[{shell}]
457+
[{cmd}]
458+
[.copybutton]
457459
----
458460
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register
459461
Using previous settings from C:\ProgramData\checkmk\agent\config\cmk-update-agent.state.
@@ -474,31 +476,37 @@ Alternatively, you can perform the registration in non-interactive mode by enter
474476
The complete command for registration looks like this:
475477

476478
ifdef::onprem[]
477-
[{shell}]
478-
----
479-
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register ^
479+
++++
480+
<div class="listingblock copybutton">
481+
<div class="content">
482+
<pre class="pygments highlight"><code data-lang="doscon"><span></span><span class="tok-gp">C:\WINDOWS\system32&gt;</span> <span class="tok-s2">"C:\Program Files (x86)\checkmk\service\check_mk_agent.exe"</span> updater register ^
480483
-s myserver.example.com ^
481484
-i mysite ^
482485
-H mywindowshost ^
483486
-p https ^
484487
-U agent_updater_registration ^
485488
-S mysecret ^
486-
-v
487-
----
489+
-v</code></pre>
490+
</div>
491+
</div>
492+
++++
488493
endif::[]
489494

490495
ifdef::saas[]
491-
[{shell}]
492-
----
493-
C:\WINDOWS\system32> "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" updater register ^
496+
++++
497+
<div class="listingblock copybutton">
498+
<div class="content">
499+
<pre class="pygments highlight"><code data-lang="doscon"><span></span><span class="tok-gp">C:\WINDOWS\system32&gt;</span> <span class="tok-s2">"C:\Program Files (x86)\checkmk\service\check_mk_agent.exe"</span> updater register ^
494500
-s myserver.example.com ^
495501
-i mysite ^
496502
-H mywindowshost ^
497503
-p https ^
498504
-U api_user ^
499505
-S mysecret ^
500-
-v
501-
----
506+
-v</code></pre>
507+
</div>
508+
</div>
509+
++++
502510
endif::[]
503511

504512
The `-S` option is used to pass the automation password of the automation user.

0 commit comments

Comments
 (0)