[Nagiosplug-devel] [ nagiosplug-Bugs-1029497 ] check_swap warning percentage should be more than critical
SourceForge.net
noreply at sourceforge.net
Thu Nov 18 15:49:02 CET 2004
Bugs item #1029497, was opened at 2004-09-16 22:26
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1029497&group_id=29880
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Submitted By: earl_3 (earl_3)
>Assigned to: Ton Voon (tonvoon)
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: Ton Voon (tonvoon)
Date: 2004-11-18 23:48
Message:
Logged In: YES
user_id=664364
Earl_3,
Thanks for the report, but I'm sure this is already fixed. Please try the
latest snapshot at http://nagiosplug.sf.net/snapshot and update this call
if it is still a problem.
Set to pending as we are trying to close as many calls as possible in
preparation for the next release.
Ton
----------------------------------------------------------------------
Comment By: M. Sean Finney (seanius)
Date: 2004-09-17 01: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