Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
monitoring-plugins.17068
monitoring-plugins-check_swap-fix_zero_output.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File monitoring-plugins-check_swap-fix_zero_output.patch of Package monitoring-plugins.17068
From 40c870ed3aeb5971af7d4887bbf4c68da40805b5 Mon Sep 17 00:00:00 2001 From: Jan Wagner <waja@cyconet.org> Date: Sun, 19 Oct 2014 22:58:47 +0200 Subject: [PATCH] Improving output when swap space has zero size 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) percent_used = 100 * ((double) used_swap_mb) / ((double) total_swap_mb); } else { percent_used = 100; + status = "- Swap is either disabled, not present, or of zero size. "; } result = max_state (result, check_swap (percent_used, free_swap_mb));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor