diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-20 18:23:42 +0200 |
---|---|---|
committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-09-21 12:09:10 +0200 |
commit | 2f916675b3b0ecb7cdeac045304607265cc57065 (patch) | |
tree | 295f07b7f48da6c271950c2804fc4b95854f0235 | |
parent | 3e8fdf9b35ab750e3fe964ce289bbbdaffb3b800 (diff) | |
download | monitoring-plugins-2f916675b3b0ecb7cdeac045304607265cc57065.tar.gz |
check_disk: Mention -A and long options in error message about missing thresholds
-rw-r--r-- | plugins/check_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 6cb4cb2f..bd641480 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -798,7 +798,7 @@ process_arguments (int argc, char **argv) | |||
798 | crit_freespace_percent || warn_usedspace_units || crit_usedspace_units || | 798 | crit_freespace_percent || warn_usedspace_units || crit_usedspace_units || |
799 | warn_usedspace_percent || crit_usedspace_percent || warn_usedinodes_percent || | 799 | warn_usedspace_percent || crit_usedspace_percent || warn_usedinodes_percent || |
800 | crit_usedinodes_percent || warn_freeinodes_percent || crit_freeinodes_percent )) { | 800 | crit_usedinodes_percent || warn_freeinodes_percent || crit_freeinodes_percent )) { |
801 | die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set a threshold value before using -r/-R\n")); | 801 | die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set a threshold value before using -r/-R/-A (--ereg-path/--eregi-path/--all)\n")); |
802 | } | 802 | } |
803 | 803 | ||
804 | err = regcomp(&re, optarg, cflags); | 804 | err = regcomp(&re, optarg, cflags); |