diff options
-rw-r--r--[-rwxr-xr-x] | plugins-scripts/check_sensors.sh | 1 | ||||
-rw-r--r-- | plugins/negate.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh index 866e0e0f..ba3581b1 100755..100644 --- a/plugins-scripts/check_sensors.sh +++ b/plugins-scripts/check_sensors.sh | |||
@@ -20,7 +20,6 @@ print_help() { | |||
20 | echo "This plugin checks hardware status using the lm_sensors package." | 20 | echo "This plugin checks hardware status using the lm_sensors package." |
21 | echo "" | 21 | echo "" |
22 | support | 22 | support |
23 | exit "$STATE_OK" | ||
24 | } | 23 | } |
25 | 24 | ||
26 | case "$1" in | 25 | case "$1" in |
diff --git a/plugins/negate.c b/plugins/negate.c index 7e52fe67..750c0bfb 100644 --- a/plugins/negate.c +++ b/plugins/negate.c | |||
@@ -133,11 +133,11 @@ static const char **process_arguments(int argc, char **argv) { | |||
133 | break; | 133 | break; |
134 | case 'h': /* help */ | 134 | case 'h': /* help */ |
135 | print_help(); | 135 | print_help(); |
136 | exit(EXIT_SUCCESS); | 136 | exit(STATE_UNKNOWN); |
137 | break; | 137 | break; |
138 | case 'V': /* version */ | 138 | case 'V': /* version */ |
139 | print_revision(progname, NP_VERSION); | 139 | print_revision(progname, NP_VERSION); |
140 | exit(EXIT_SUCCESS); | 140 | exit(STATE_UNKNOWN); |
141 | case 't': /* timeout period */ | 141 | case 't': /* timeout period */ |
142 | if (!is_integer(optarg)) | 142 | if (!is_integer(optarg)) |
143 | usage2(_("Timeout interval must be a positive integer"), optarg); | 143 | usage2(_("Timeout interval must be a positive integer"), optarg); |