Module: monitoring-plugins Branch: master Commit: 21885d85d54ce2afe7b9bf962348dc60e31442e0 Author: MisterMountain <bjoern.b...@netways.de> Date: Tue May 2 09:40:35 2023 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=21885d8
also fixed the --help returns --- plugins-scripts/check_log.sh | 2 +- plugins-scripts/check_oracle.sh | 4 ++-- plugins-scripts/check_sensors.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh index 10c56f1..8ecdd31 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh @@ -105,7 +105,7 @@ while test -n "$1"; do case "$1" in -h | --help) print_help - exit "$STATE_OK" + exit "$STATE_UNKNOWN" ;; -V | --version) print_revision "$PROGNAME" "$REVISION" diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index d58cfbe..5998138 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh @@ -87,11 +87,11 @@ esac case "$cmd" in --help) print_help - exit "$STATE_OK" + exit "$STATE_UNKNOWN" ;; -h) print_help - exit "$STATE_OK" + exit "$STATE_UNKNOWN" ;; --version) print_revision "$PROGNAME" "$REVISION" diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh index adbfc53..866e0e0 100755 --- a/plugins-scripts/check_sensors.sh +++ b/plugins-scripts/check_sensors.sh @@ -26,11 +26,11 @@ print_help() { case "$1" in --help) print_help - exit "$STATE_OK" + exit "$STATE_UNKNOWN" ;; -h) print_help - exit "$STATE_OK" + exit "$STATE_UNKNOWN" ;; --version) print_revision "$PROGNAME" "$REVISION"