Skip to content

Commit 0903c17

Browse files
author
Mattias Schlenker
committed
pick-24 pick-25 formal changes, move all GitHub links to macros current-version (Checkmk repo) and gitbranch (User Guide repo)
1 parent e942b8d commit 0903c17

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/onprem/de/devel_check_plugins_snmp.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Legen Sie die Datei `flintstone_setup_check.py` für das Check-Plugin hier an.
217217
Konvention ist, dass der Dateiname den Namen des Check-Plugins wiedergibt, wie er bei der Erstellung des Check-Plugins als Instanz der Klasse `CheckPlugin` festgelegt wird.
218218
_Pflicht_ ist, dass die Datei mit `.py` endet, denn ab Version {v20} von {CMK} handelt es sich bei den Check-Plugins immer um echte Python-Module.
219219

220-
Ein lauffähiges Grundgerüst (link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstone_setup_check_bare_minimum.py[Download bei GitHub^]), das Sie im Folgenden Schritt für Schritt weiter ausbauen werden, sieht so aus:
220+
Ein lauffähiges Grundgerüst (link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstone_setup_check_bare_minimum.py[Download bei GitHub^]), das Sie im Folgenden Schritt für Schritt weiter ausbauen werden, sieht so aus:
221221

222222
.~/local/lib/python3/cmk_addons/plugins/flintstone/agent_based/flintstone_setup_check.py
223223
[{python}]
@@ -478,7 +478,7 @@ Damit dürfte es offensichtlich sein, dass wegen der Darstellung der Daten nur z
478478
479479
[TIP]
480480
====
481-
Auch das zuletzt gezeigte Beispiel zum Abruf von OID-Ästen ist Bestandteil unseres auf GitHub bereitgestellten link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP-Walks^], den Sie zur xref:simulation[Simulation] nutzen können.
481+
Auch das zuletzt gezeigte Beispiel zum Abruf von OID-Ästen ist Bestandteil unseres auf GitHub bereitgestellten link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP-Walks^], den Sie zur xref:simulation[Simulation] nutzen können.
482482
====
483483
484484
Doch nun zurück zum Beispiel, in dem die OID-Blätter zu Kontakt, Gerätename und Standort abgefragt werden:
@@ -566,7 +566,7 @@ def check_flintstone(section):
566566
567567
Mit der Erstellung der Check-Funktion ist das Check-Plugin fertig.
568568
569-
Das komplette Check-Plugin haben wir auf link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstone_setup_check.py[GitHub^] bereitgestellt.
569+
Das komplette Check-Plugin haben wir auf link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstone_setup_check.py[GitHub^] bereitgestellt.
570570
571571
572572
[#test]
@@ -650,7 +650,7 @@ Da die Fehlerbehebung bei xref:devel_check_plugins#errors[agentenbasierten Check
650650
651651
Im Artikel zur Überwachung via SNMP xref:snmp#simulation[zeigen wir detailliert,] wie Sie SNMP-Walks aus der GUI erstellen und wie Sie diese zur Simulation einsetzen können.
652652
So ist es auch möglich, Check-Plugins auf Testsystemen zu entwickeln, welche die SNMP-Hosts, für die Sie ein Plugin entwickeln, nicht erreichen können.
653-
In unserem GitHub-Repository finden Sie ein Beispiel eines link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP-Walks,^] den wir in diesem Artikel verwenden, und den Sie zur Entwicklung und zum Testen des Check-Plugins nutzen können.
653+
In unserem GitHub-Repository finden Sie ein Beispiel eines link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP-Walks,^] den wir in diesem Artikel verwenden, und den Sie zur Entwicklung und zum Testen des Check-Plugins nutzen können.
654654
655655
656656
[#dummydaemon]

src/onprem/en/devel_check_plugins_snmp.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Create the file `flintstone_setup_check.py` for the check plug-in here.
215215
The convention is that the file name reflects the name of the check plug-in as it is defined when the check plug-in is created as an instance of the `CheckPlugin` class.
216216
It is _mandatory_ that the file ends with `.py`, because from {CMK} version {v20} the check plug-ins are always real Python modules.
217217

218-
An executable basic framework (link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstone_setup_check_bare_minimum.py[Download at GitHub^]), which you will expand step by step in the following, looks like this:
218+
An executable basic framework (link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstone_setup_check_bare_minimum.py[Download at GitHub^]), which you will expand step by step in the following, looks like this:
219219

220220
.~/local/lib/python3/cmk_addons/plugins/flintstone/agent_based/flintstone_setup_check.py
221221
[{python}]
@@ -477,7 +477,7 @@ It should therefore be obvious that for the purposes of displaying the data, onl
477477
478478
[TIP]
479479
====
480-
The last example shown for retrieving OID branches is also a part of our link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP walk^] provided on GitHub, which you can use for xref:simulation[simulations].
480+
The last example shown for retrieving OID branches is also a part of our link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP walk^] provided on GitHub, which you can use for xref:simulation[simulations].
481481
====
482482
483483
But now back to the example in which the OID leaves for contact, device name and location are queried:
@@ -565,7 +565,7 @@ def check_flintstone(section):
565565
566566
Once the check function has been created, the check plug-in will be ready for use.
567567
568-
We have made this complete check plug-in available at link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstone_setup_check.py[GitHub^].
568+
We have made this complete check plug-in available at link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstone_setup_check.py[GitHub^].
569569
570570
571571
[#test]
@@ -648,7 +648,7 @@ As the troubleshooting in xref:devel_check_plugins#errors[agent-based check plug
648648
649649
In the article on monitoring via SNMP xref:snmp#simulation[we show in detail] how you can create SNMP walks from the GUI and how you can use them for simulation.
650650
This also makes it possible to develop check plug-ins on test systems that cannot access the SNMP hosts for which you are developing a plug-in.
651-
In our GitHub repository you will find an example of an link:https://github.com/Checkmk/checkmk-docs/blob/master/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP walk^], which we use in this article and which you can use to develop and test the check plug-in.
651+
In our GitHub repository you will find an example of an link:https://github.com/Checkmk/checkmk-docs/blob/{gitbranch}/examples/devel_check_plugins_snmp/flintstones_fred_router.txt[SNMP walk^], which we use in this article and which you can use to develop and test the check plug-in.
652652
653653
654654
[#dummydaemon]

0 commit comments

Comments
 (0)