diff options
| author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2023-05-02 10:39:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-02 10:39:20 +0200 |
| commit | 72d34baf718e12a88e978c69369b96baf63ef97a (patch) | |
| tree | 13cbafb4a2497a41cd83aa603006f8592614d855 /plugins-scripts/check_oracle.sh | |
| parent | a4be133f01a231dc45c98aabed35f96d6f826fd7 (diff) | |
| parent | 21885d85d54ce2afe7b9bf962348dc60e31442e0 (diff) | |
| download | monitoring-plugins-72d34baf718e12a88e978c69369b96baf63ef97a.tar.gz | |
Merge pull request #1861 from MisterMountain/fix_version_return_code
check_log: Fix return code on help and version
check_oracle: Fix return code on help and version
check_sensors: Fix return code on help and version
Diffstat (limited to 'plugins-scripts/check_oracle.sh')
| -rwxr-xr-x | plugins-scripts/check_oracle.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index b14ec50e..59981386 100755 --- a/plugins-scripts/check_oracle.sh +++ b/plugins-scripts/check_oracle.sh | |||
| @@ -86,20 +86,20 @@ esac | |||
| 86 | # Information options | 86 | # Information options |
| 87 | case "$cmd" in | 87 | case "$cmd" in |
| 88 | --help) | 88 | --help) |
| 89 | print_help | 89 | print_help |
| 90 | exit "$STATE_OK" | 90 | exit "$STATE_UNKNOWN" |
| 91 | ;; | 91 | ;; |
| 92 | -h) | 92 | -h) |
| 93 | print_help | 93 | print_help |
| 94 | exit "$STATE_OK" | 94 | exit "$STATE_UNKNOWN" |
| 95 | ;; | 95 | ;; |
| 96 | --version) | 96 | --version) |
| 97 | print_revision "$PROGNAME" "$REVISION" | 97 | print_revision "$PROGNAME" "$REVISION" |
| 98 | exit "$STATE_OK" | 98 | exit "$STATE_UNKNOWN" |
| 99 | ;; | 99 | ;; |
| 100 | -V) | 100 | -V) |
| 101 | print_revision "$PROGNAME" "$REVISION" | 101 | print_revision "$PROGNAME" "$REVISION" |
| 102 | exit "$STATE_OK" | 102 | exit "$STATE_UNKNOWN" |
| 103 | ;; | 103 | ;; |
| 104 | esac | 104 | esac |
| 105 | 105 | ||
