on AIX 3.4, using nagios-plugins-1.4beta1 tarball:
check_swap -a -w 50% -c 75%
Warning percentage should be more than critical
on Solaris and Linux, the command works as expected.
Logged In: YES
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?
Logged In: YES
Mea culpa. The problem exists on Solaris as well. I imagine
Linux will have the problem as well.
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.
I thought so too, but the same command under version 1.3 of
check_swap on Solaris executes just fine. Syntax change? Bug?
Ahh, I finally understand. There was a change to check_swap
to make it more consistent. The old 1.3 release help says this:
Exit with WARNING status if less than INTEGER bytes of
swap space are free
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.
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.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.