Skip to content

Commit 84709f9

Browse files
KNW-1322 - done
1 parent 5e46c94 commit 84709f9

File tree

2 files changed

+2
-158
lines changed

2 files changed

+2
-158
lines changed

src/onprem/de/cmk_commandline.asciidoc

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// NONASCII ├ ─ └ │ …​ °
44
include::global_attr.adoc[]
55
= {CMK} auf der Kommandozeile
6-
:revdate: 28-Apr-2022
6+
:revdate: 2024-03-06
77
:title: {CMK} auf der Kommandozeile - Kommandozeilenbefehle verstehen und nutzen
88
:description: Wenn Sie {CMK} auf der Kommandozeile nutzen wollen, finden Sie hier die wichtigsten Befehle (z.B. cmk) und die zugehörigen Dateien und Verzeichnisse.
99

@@ -579,7 +579,6 @@ Hier folgt die Übersicht der Optionen, die wir in diesem Kapitel, aber auch an
579579
|`cmk -D myserver123` |xref:dump_host[Host-Konfiguration anzeigen]
580580
2+|*Information*
581581
|`cmk -V` |Zeigt die in der Instanz installierte {CMK}-Version an.
582-
|`cmk --paths` |xref:paths[{CMK} Pfadübersicht]: Was liegt in welchem Verzeichnis?
583582
|`cmk -L` |xref:info_plugins[Check-Plugins auflisten]
584583
|`cmk -m` |xref:info_plugins[Katalog der Check-Plugins aufrufen]
585584
|`cmk -M df` |xref:info_plugins[Manual Page eines Check-Plugins anzeigen] (hier des Plugins `df`)
@@ -743,52 +742,6 @@ Folgende Optionen beeinflussen den Befehl:
743742
|`--detect-plugins=df,uptime` |Beschränkt die Ausführung auf die Check-Plugins `df` und `uptime`. Im Falle von SNMP-Hosts werden auch nur die dafür benötigten Daten geholt. Diese Option ist praktisch, wenn Sie eigene Check-Plugins entwickeln und nur diese testen möchten.
744743
|===
745744

746-
////
747-
// TK: Überflüssig, in wato_services#commandline steht alles zum Thema.
748-
=== Service-Erkennung ausführen
749-
750-
Eine automatische Service-Erkennung können Sie mit `cmk -I` oder `cmk -II` und der Angabe von einem oder mehreren Hosts durchführen -- wie immer, so auch hier, zusätzlich mit der „Verbose“-Option `-v`:
751-
752-
[{shell}]
753-
----
754-
{c-omd} cmk -vI myserver123
755-
----
756-
757-
Dabei gibt es zwei Modi:
758-
759-
[cols="15,~"]
760-
|===
761-
|`cmk -I` |Findet und ergänzt fehlende Services.
762-
|`cmk -II` |Verwirft alle zuvor erkannten Services und führt die Erkennung komplett neu durch.
763-
|===
764-
765-
Alle Details dazu finden Sie im Artikel über die xref:wato_services#commandline[Services].
766-
////
767-
768-
////
769-
// TK: Ersetzt durch die allgemeine Tabelle oben in " Die Befehlsoptionen"
770-
[#utilities]
771-
=== Hilfsbefehle
772-
773-
Der Befehl `cmk` kennt auch einige Modi, die allgemein zur Diagnose und
774-
Fehlersuche nützlich sind. Hier ist eine Übersicht:
775-
776-
[cols="30,~"]
777-
|===
778-
|`cmk -d myserver123` |Daten vom {CMK}-Agenten holen und ausgeben.
779-
|`cmk -D myserver123` |Konfigurationsübersicht von einem oder mehreren Hosts anzeigen.
780-
|`cmk --paths` |Wichtige Verzeichnisse von {CMK}: Was liegt wo?
781-
|`cmk -l` |Namen aller konfigurierten Hosts ausgeben.
782-
|`cmk --list-tag mytag` |Namen aller konfigurierten Hosts mit dem Host-Merkmal `mytag` ausgeben.
783-
|`cmk -L` |Liste aller Check-Plugins ausgeben.
784-
|`cmk -m` |Katalog der Check-Plugin Dokumentation (_Man Pages_) interaktiv aufrufen.
785-
|`cmk -M df` |Dokumentation des Check-Plugins `df` anzeigen.
786-
|===
787-
788-
Im Folgenden zeigen wir, wie Sie die Befehle verwenden können. Die Beispielausgaben
789-
sind meist gekürzt dargestellt.
790-
////
791-
792745

793746
[#dump_agent]
794747
=== Agentenausgabe holen
@@ -930,37 +883,6 @@ Services:
930883
----
931884

932885

933-
[#paths]
934-
=== {CMK} Pfadübersicht
935-
936-
Der Befehl `cmk --paths` zeigt Ihnen, in welchen Verzeichnissen {CMK}
937-
welche Dinge erwartet. Diese Liste umfasst nicht das komplette
938-
{CMK}-System, sondern nur Dinge, mit denen das Kommandozeilentool `cmk`
939-
selbst arbeitet. Trotzdem hilft es manchmal, Dinge schneller zu finden:
940-
941-
[{shell}]
942-
----
943-
{c-omd} cmk --paths
944-
Files copied or created during installation
945-
Main components of check_mk : /omd/sites/mysite/share/check_mk/modules/
946-
Checks : /omd/sites/mysite/share/check_mk/checks/
947-
Notification scripts : /omd/sites/mysite/share/check_mk/notifications/
948-
Inventory plugins : /omd/sites/mysite/share/check_mk/inventory/
949-
Agents for operating systems : /omd/sites/mysite/share/check_mk/agents/
950-
Documentation files : /omd/sites/mysite/share/doc/check_mk/
951-
Check_MK's web pages : /omd/sites/mysite/share/check_mk/web/
952-
Check manpages (for check_mk -M) : /omd/sites/mysite/share/check_mk/checkman/
953-
Binary plugins (architecture specific) : /omd/sites/mysite/lib/
954-
Templates for PNP4Nagios : /omd/sites/mysite/share/check_mk/pnp-templates/
955-
Startscript for Nagios daemon : /omd/sites/mysite/etc/init.d/core
956-
Path to Nagios executable : /omd/sites/mysite/bin/nagios
957-
958-
Configuration files edited by you
959-
Directory that contains main.mk : /omd/sites/mysite/etc/check_mk/
960-
Directory containing further *.mk files : /omd/sites/mysite/etc/check_mk/conf.d/
961-
----
962-
963-
964886
[#info_plugins]
965887
=== Informationen zu den Check-Plugins
966888

src/onprem/en/cmk_commandline.asciidoc

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// NONASCII ├ ─ └ │ …​ ° ä ö ü
44
include::global_attr.adoc[]
55
= {CMK} on the command line
6-
:revdate: 28-Apr-2022
6+
:revdate: 2024-03-06
77
:title: {CMK} on the command line - Understanding and using command line commands
88
:description: If you want to use {CMK} on the command line, here you will find the most important commands (e.g. cmk) and the associated files and directories.
99

@@ -550,7 +550,6 @@ Here follows the overview of the options we will present in this chapter, but al
550550

551551
2+|*Information*
552552
|`cmk -V` |Displays the {CMK} version installed in the site.
553-
|`cmk --paths` |xref:paths[{CMK} path overview]: What is in which directory?
554553
|`cmk -L` |xref:info_plugins[Listing check plug-ins]
555554
|`cmk -m` |xref:info_plugins[Accessing the check plug-ins catalog]
556555
|`cmk -M df` |xref:info_plugins[Showing a check plug-in manual page] (here of plug-in `df`)
@@ -712,53 +711,6 @@ The following options influence the command:
712711
|===
713712

714713

715-
////
716-
[#execute_discovery]
717-
=== Executing a service discovery
718-
719-
An automatic service discovery can be started with `cmk -I` or `cmk -II`, and by specifying one or more hosts -- as always, so also here, additionally with the 'verbose' option `-v`:
720-
721-
[{shell}]
722-
----
723-
{c-omd} cmk -vI myserver123
724-
----
725-
726-
There are two modes for this:
727-
728-
[cols="15,~"]
729-
|===
730-
|`cmk -I` |Finds and adds missing services.
731-
|`cmk -II` |Deletes all previously discovered services, and runs a complete new discovery.
732-
|===
733-
734-
All of the applicable details for this theme can be found in the article on the xref:wato_services#commandline[services].
735-
////
736-
737-
////
738-
[#utilities]
739-
=== Auxiliary commands
740-
741-
The `cmk` command has a number of modes that are useful generally for
742-
diagnoses and troubleshooting. Here is an overview:
743-
744-
[cols="30,~"]
745-
|===
746-
|`cmk -d myserver123` |Retrieves and outputs data from {CMK}-agents.
747-
|`cmk -D myserver123` |Display the configuration overview of one or more hosts.
748-
|`cmk --paths` |Important {CMK} directories: what is located where?
749-
|`cmk -l` |Output the names of all configured hosts.
750-
|`cmk --list-tag mytag` |Output the names of all configured hosts with the tag `mytag`.
751-
|`cmk -L` |Output a list of all check plug-ins.
752-
|`cmk -m` |Open an interactive catalog of documentation for check plug-ins.
753-
|`cmk -M df` |Display documentation for the check plug-in `df`.
754-
|===
755-
756-
In the following section we will show how the commands can be used.
757-
The examples are mostly shown in an abbreviated form.
758-
////
759-
760-
761-
762714
[#dump_agent]
763715
=== Retrieving agent output
764716

@@ -898,36 +850,6 @@ Services:
898850
kernel.util None {}
899851
----
900852

901-
[#paths]
902-
=== {CMK} path overview
903-
904-
The `cmk --paths` command displays in which directories {CMK} expects
905-
which things. This list does not cover the complete {CMK} system,
906-
rather only those things that the command line tool `cmk` itself works with.
907-
Nonetheless it sometimes helps to locate things more quickly:
908-
909-
[{shell}]
910-
----
911-
{c-omd} cmk --paths
912-
Files copied or created during installation
913-
Main components of check_mk : /omd/sites/mysite/share/check_mk/modules/
914-
Checks : /omd/sites/mysite/share/check_mk/checks/
915-
Notification scripts : /omd/sites/mysite/share/check_mk/notifications/
916-
Inventory plugins : /omd/sites/mysite/share/check_mk/inventory/
917-
Agents for operating systems : /omd/sites/mysite/share/check_mk/agents/
918-
Documentation files : /omd/sites/mysite/share/doc/check_mk/
919-
Check_MK's web pages : /omd/sites/mysite/share/check_mk/web/
920-
Check manpages (for check_mk -M) : /omd/sites/mysite/share/check_mk/checkman/
921-
Binary plugins (architecture specific) : /omd/sites/mysite/lib/
922-
Templates for PNP4Nagios : /omd/sites/mysite/share/check_mk/pnp-templates/
923-
Startscript for Nagios daemon : /omd/sites/mysite/etc/init.d/core
924-
Path to Nagios executable : /omd/sites/mysite/bin/nagios
925-
926-
Configuration files edited by you
927-
Directory that contains main.mk : /omd/sites/mysite/etc/check_mk/
928-
Directory containing further *.mk files : /omd/sites/mysite/etc/check_mk/conf.d/
929-
----
930-
931853

932854
[#info_plugins]
933855
=== Information on the check plug-ins

0 commit comments

Comments
 (0)