Merge pull request #1923 from RincewindsHat/doc/check_disk

Doc/check disk
This commit is contained in:
Lorenz Kästle 2023-09-21 12:25:30 +02:00 committed by GitHub
commit 7f460dd60a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 76 additions and 12 deletions

View file

@ -798,7 +798,7 @@ process_arguments (int argc, char **argv)
crit_freespace_percent || warn_usedspace_units || crit_usedspace_units ||
warn_usedspace_percent || crit_usedspace_percent || warn_usedinodes_percent ||
crit_usedinodes_percent || warn_freeinodes_percent || crit_freeinodes_percent )) {
die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set a threshold value before using -r/-R\n"));
die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--all)\n"));
}
err = regcomp(&re, optarg, cflags);
@ -1008,13 +1008,21 @@ print_help (void)
printf (" %s\n", "-N, --include-type=TYPE");
printf (" %s\n", _("Check only filesystems of indicated type (may be repeated)"));
printf ("\n");
printf ("%s\n", _("General usage hints:"));
printf (" %s\n", _("- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the same as"));
printf (" %s\n", _("\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"."));
printf (" %s\n", _("- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} {thresholds b} ...\""));
printf ("\n");
printf ("%s\n", _("Examples:"));
printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /");
printf (" %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));
printf (" %s\n\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));
printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'");
printf (" %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex"));
printf (" %s\n", _("are grouped which means the freespace thresholds are applied to all disks together"));
printf (" %s\n\n", _("are grouped which means the freespace thresholds are applied to all disks together"));
printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /bar");
printf (" %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M"));
@ -1027,7 +1035,7 @@ void
print_usage (void)
{
printf ("%s\n", _("Usage:"));
printf (" %s {-w absolute_limit |-w percentage_limit% | -W inode_percentage_limit } {-c absolute_limit|-c percentage_limit% | -K inode_percentage_limit } {-p path | -x device}\n", progname);
printf (" %s {-w absolute_limit |-w percentage_limit%% | -W inode_percentage_limit } {-c absolute_limit|-c percentage_limit%% | -K inode_percentage_limit } {-p path | -x device}\n", progname);
printf ("[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n");
printf ("[-t timeout] [-u unit] [-v] [-X type] [-N type]\n");
}

View file

@ -9,10 +9,11 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n"
"POT-Creation-Date: 2023-09-05 00:31+0200\n"
"POT-Creation-Date: 2023-09-21 12:09+0200\n"
"PO-Revision-Date: 2004-12-23 17:46+0100\n"
"Last-Translator: \n"
"Language-Team: Monitoring Plugin Development Team <devel@monitoring-plugins.org>\n"
"Language-Team: Monitoring Plugin Development Team <devel@monitoring-plugins."
"org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -321,7 +322,9 @@ msgstr ""
msgid "Could not compile regular expression"
msgstr ""
msgid "Must set a threshold value before using -r/-R\n"
msgid ""
"Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--"
"all)\n"
msgstr ""
msgid "Regular expression did not match any path or disk"
@ -449,6 +452,22 @@ msgstr ""
msgid "Check only filesystems of indicated type (may be repeated)"
msgstr ""
msgid "General usage hints:"
msgstr "Allgemeine Nutzungshinweise:"
msgid ""
"- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the "
"same as"
msgstr ""
msgid "\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"."
msgstr ""
msgid ""
"- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} "
"{thresholds b} ...\""
msgstr ""
msgid "Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"
msgstr ""

View file

@ -10,10 +10,11 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n"
"POT-Creation-Date: 2023-09-05 00:31+0200\n"
"POT-Creation-Date: 2023-09-21 12:09+0200\n"
"PO-Revision-Date: 2010-04-21 23:38-0400\n"
"Last-Translator: \n"
"Language-Team: Monitoring Plugin Development Team <devel@monitoring-plugins.org>\n"
"Language-Team: Monitoring Plugin Development Team <devel@monitoring-plugins."
"org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -320,7 +321,9 @@ msgstr ""
msgid "Could not compile regular expression"
msgstr "Impossible de compiler l'expression rationnelle"
msgid "Must set a threshold value before using -r/-R\n"
msgid ""
"Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--"
"all)\n"
msgstr ""
msgid "Regular expression did not match any path or disk"
@ -469,6 +472,22 @@ msgstr ""
"Ignorer tout les systèmes de fichiers qui correspondent au type indiqué "
"(peut être utilisé plusieurs fois)"
msgid "General usage hints:"
msgstr ""
msgid ""
"- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the "
"same as"
msgstr ""
msgid "\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"."
msgstr ""
msgid ""
"- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} "
"{thresholds b} ...\""
msgstr ""
msgid "Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"
msgstr "Vérifie /tmp à 10% et /var à 5% et / à 100MB et 50MB"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: devel@monitoring-plugins.org\n"
"POT-Creation-Date: 2023-09-12 01:33+0200\n"
"POT-Creation-Date: 2023-09-21 12:09+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -305,7 +305,9 @@ msgstr ""
msgid "Could not compile regular expression"
msgstr ""
msgid "Must set a threshold value before using -r/-R\n"
msgid ""
"Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--"
"all)\n"
msgstr ""
msgid "Regular expression did not match any path or disk"
@ -427,6 +429,22 @@ msgstr ""
msgid "Check only filesystems of indicated type (may be repeated)"
msgstr ""
msgid "General usage hints:"
msgstr ""
msgid ""
"- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the "
"same as"
msgstr ""
msgid "\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"."
msgstr ""
msgid ""
"- The syntax is broadly: \"{thresholds a} {paths a} -C {thresholds b} "
"{thresholds b} ...\""
msgstr ""
msgid "Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"
msgstr ""