diff options
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r-- | plugins/check_swap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 88a2a2ad..4d5a4071 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /***************************************************************************** | 1 | /***************************************************************************** |
2 | * | 2 | * |
3 | * Monitoring check_disk plugin | 3 | * Monitoring check_swap plugin |
4 | * | 4 | * |
5 | * License: GPL | 5 | * License: GPL |
6 | * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) | 6 | * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) |
@@ -352,6 +352,7 @@ main (int argc, char **argv) | |||
352 | percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb); | 352 | percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb); |
353 | } else { | 353 | } else { |
354 | percent_used = 100; | 354 | percent_used = 100; |
355 | status = "- Swap is either disabled, not present, or of zero size. "; | ||
355 | } | 356 | } |
356 | 357 | ||
357 | result = max_state (result, check_swap (percent_used, free_swap_mb)); | 358 | result = max_state (result, check_swap (percent_used, free_swap_mb)); |
@@ -469,10 +470,10 @@ process_arguments (int argc, char **argv) | |||
469 | break; | 470 | break; |
470 | case 'V': /* version */ | 471 | case 'V': /* version */ |
471 | print_revision (progname, NP_VERSION); | 472 | print_revision (progname, NP_VERSION); |
472 | exit (STATE_OK); | 473 | exit (STATE_UNKNOWN); |
473 | case 'h': /* help */ | 474 | case 'h': /* help */ |
474 | print_help (); | 475 | print_help (); |
475 | exit (STATE_OK); | 476 | exit (STATE_UNKNOWN); |
476 | case '?': /* error */ | 477 | case '?': /* error */ |
477 | usage5 (); | 478 | usage5 (); |
478 | } | 479 | } |