mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-18 18:17:50 -05:00
Fix wrong exit codes
This commit is contained in:
parent
b982e12ecf
commit
faacf5525b
2 changed files with 2 additions and 3 deletions
1
plugins-scripts/check_sensors.sh
Executable file → Normal file
1
plugins-scripts/check_sensors.sh
Executable file → Normal file
|
|
@ -20,7 +20,6 @@ print_help() {
|
|||
echo "This plugin checks hardware status using the lm_sensors package."
|
||||
echo ""
|
||||
support
|
||||
exit "$STATE_OK"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
|
|
|||
|
|
@ -133,11 +133,11 @@ static const char **process_arguments(int argc, char **argv) {
|
|||
break;
|
||||
case 'h': /* help */
|
||||
print_help();
|
||||
exit(EXIT_SUCCESS);
|
||||
exit(STATE_UNKNOWN);
|
||||
break;
|
||||
case 'V': /* version */
|
||||
print_revision(progname, NP_VERSION);
|
||||
exit(EXIT_SUCCESS);
|
||||
exit(STATE_UNKNOWN);
|
||||
case 't': /* timeout period */
|
||||
if (!is_integer(optarg))
|
||||
usage2(_("Timeout interval must be a positive integer"), optarg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue