You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/onprem/de/devel_check_plugins_snmp.asciidoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ Legen Sie die Datei `flintstone_setup_check.py` für das Check-Plugin hier an.
217
217
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.
218
218
_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.
219
219
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:
@@ -478,7 +478,7 @@ Damit dürfte es offensichtlich sein, dass wegen der Darstellung der Daten nur z
478
478
479
479
[TIP]
480
480
====
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.
482
482
====
483
483
484
484
Doch nun zurück zum Beispiel, in dem die OID-Blätter zu Kontakt, Gerätename und Standort abgefragt werden:
Mit der Erstellung der Check-Funktion ist das Check-Plugin fertig.
568
568
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.
570
570
571
571
572
572
[#test]
@@ -650,7 +650,7 @@ Da die Fehlerbehebung bei xref:devel_check_plugins#errors[agentenbasierten Check
650
650
651
651
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.
652
652
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.
Copy file name to clipboardExpand all lines: src/onprem/en/devel_check_plugins_snmp.asciidoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,7 @@ Create the file `flintstone_setup_check.py` for the check plug-in here.
215
215
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.
216
216
It is _mandatory_ that the file ends with `.py`, because from {CMK} version {v20} the check plug-ins are always real Python modules.
217
217
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:
@@ -477,7 +477,7 @@ It should therefore be obvious that for the purposes of displaying the data, onl
477
477
478
478
[TIP]
479
479
====
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].
481
481
====
482
482
483
483
But now back to the example in which the OID leaves for contact, device name and location are queried:
Once the check function has been created, the check plug-in will be ready for use.
567
567
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^].
569
569
570
570
571
571
[#test]
@@ -648,7 +648,7 @@ As the troubleshooting in xref:devel_check_plugins#errors[agent-based check plug
648
648
649
649
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.
650
650
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.
0 commit comments