[Nagiosplug-devel] [ nagiosplug-Bugs-1029497 ] check_swap warning percentage should be more than critical

SourceForge.net noreply at sourceforge.net
Thu Sep 16 14:27:15 CEST 2004


Bugs item #1029497, was opened at 2004-09-16 21:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
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.)

----------------------------------------------------------------------

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