From 21885d85d54ce2afe7b9bf962348dc60e31442e0 Mon Sep 17 00:00:00 2001 From: MisterMountain Date: Tue, 2 May 2023 09:40:35 +0200 Subject: also fixed the --help returns 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" -- cgit v0.10-9-g596f