[Nagiosplug-devel] [ nagiosplug-Bugs-1029497 ] check_swap warning percentage should be more than critical
SourceForge.net
noreply at sourceforge.net
Thu Sep 16 17:03:01 CEST 2004
Bugs item #1029497, was opened at 2004-09-16 14:26
Message generated for change (Comment added) made by seanius
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1029497&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: earl_3 (earl_3)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap warning percentage should be more than critical
Initial Comment:
In check_swap, warning and critical percentages are
expressed as percentage of swap used, so the warning
percentage should be less than the critical percentage.
(You might want to be warned when swap is 60% used, and
get a critical alarm when it's 80% used.)
However, when you try to enter a warning percentage
that's less than the critical percentage you get the
error "warning percentage should be more than critical
percentage":
> ./check_swap -w 90% -c 95%
Warning percentage should be more than critical percentage
Usage:
check_swap [-a] -w <used_percentage>% -c
<used_percentage>%
check_swap [-a] -w <bytes_free> -c <bytes_free>
check_swap (-h | --help) for detailed help
check_swap (-V | --version) for version information
> ./check_swap -w 98% -c 95%
SWAP OK: -2147483548% free (0 MB out of 0 MB)
|swap=0MB;0;0;0;0
> ./check_swap -V
check_swap (nagios-plugins 1.4.0alpha1) 1.24
> uname -a
Linux XXXX 2.6.4-52-smp #1 SMP Wed Apr 7 02:11:20 UTC
2004 i686 i686 i386 GNU/Linux
(The "-2147483548% free" error is already covered in
bug request #905971.)
----------------------------------------------------------------------
Comment By: M. Sean Finney (seanius)
Date: 2004-09-16 17:02
Message:
Logged In: YES
user_id=226838
i think this is already fixed in 1.4.0alpha2:
gingko[~]19:59:11$ /usr/local/nagios/libexec/check_swap -h
<snip>
Usage:
check_swap [-av] -w <percent_free>% -c <percent_free>%
<snip>
/me grumbles that is was flip-flopped in the first place :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1029497&group_id=29880
More information about the Devel
mailing list