diff options
| author | Jan Wagner <waja@cyconet.org> | 2014-10-19 22:58:47 +0200 |
|---|---|---|
| committer | Jan Wagner <waja@cyconet.org> | 2014-10-19 23:24:12 +0200 |
| commit | 40c870ed3aeb5971af7d4887bbf4c68da40805b5 (patch) | |
| tree | ef79d1ea5a9713c8e2f0ed34102cd7a61468f05b /plugins | |
| parent | bd56c4a2d08fb6bd6f50ed256c7f7d5d2013caac (diff) | |
| download | monitoring-plugins-40c870ed3aeb5971af7d4887bbf4c68da40805b5.tar.gz | |
Improving output when swap space has zero size
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_swap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 4a573c7b..25e0bacd 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
| @@ -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)); |
