[Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped
SourceForge.net
noreply at sourceforge.net
Wed Dec 24 00:54:04 CET 2003
Bugs item #854817, was opened at 2003-12-05 15:56
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880
Category: Argument proccessing
Group: Release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: (ghelleks)
Assigned to: Ton Voon (tonvoon)
Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped
Initial Comment:
on AIX 3.4, using nagios-plugins-1.4beta1 tarball:
check_swap -a -w 50% -c 75%
Yields:
Warning percentage should be more than critical
percentage
on Solaris and Linux, the command works as expected.
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2003-12-24 08:53
Message:
Logged In: YES
user_id=664364
Updated help text for check_swap in v1.15. Have created a
CHANGES file to list major differences between releases.
Credited Gunnar Hellekson - thanks.
Closing this call.
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-12-18 08:26
Message:
Logged In: YES
user_id=664364
Ahh, I finally understand. There was a change to check_swap
to make it more consistent. The old 1.3 release help says this:
---
-w, --warning=INTEGER
Exit with WARNING status if less than INTEGER bytes of
swap space are free
-w, --warning=PERCENT%
Exit with WARNING status if more than PERCENT of swap
space has been used
---
Note the switch between checking against free swap for
absolute numbers, but against used for %. So the new 1.4
release considers the thresholds the same way. This also
makes it more consistent with check_disk.
I've also noticed that the help file for check_swap is wrong,
so I'll update that now.
You are right in pointing this out. Will get some text put
together about the significant changes between 1.3 and 1.4,
including syntax breakages like this.
I'll leave this open for now.
P.S. What is your full name? I can then add it to our list of
people to thank.
----------------------------------------------------------------------
Comment By: (ghelleks)
Date: 2003-12-17 20:35
Message:
Logged In: YES
user_id=18504
I thought so too, but the same command under version 1.3 of
check_swap on Solaris executes just fine. Syntax change? Bug?
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-12-11 10:17
Message:
Logged In: YES
user_id=664364
I don't think this is a problem; check_swap checks the
amount of free space so critical must be lower than warning,
hence the error message.
Unless I am missing something?
I will mark this call into pending state.
----------------------------------------------------------------------
Comment By: (ghelleks)
Date: 2003-12-07 14:21
Message:
Logged In: YES
user_id=18504
Mea culpa. The problem exists on Solaris as well. I imagine
Linux will have the problem as well.
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-12-05 16:32
Message:
Logged In: YES
user_id=664364
I've just tried this on Solaris and I get "Warning percentage
should be more than critical percentage". Have you done a
make clean on Solaris and Linux?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880
More information about the Devel
mailing list